Quantcast
Channel: PowerShell.com – PowerShell Scripts, Tips, Forums, and Resources
Viewing all articles
Browse latest Browse all 6937

start-sleep ??

$
0
0

I need to write a script that will do the following.

 

Run 7 days after each reboot.

Prompt the user if they want to reboot now. If they answer "no" give them the option to delay 2 hours, 4 hours or 6 hours.   If they choose to reboot then the system will of course reboot.

In order to do the 2,4,6 hour delay is the best option to use Start-Sleep?   Or is there a different/better delay tool within PowerShell?

 

 


Viewing all articles
Browse latest Browse all 6937

Trending Articles