Open Sirove opened 7 years ago
Why wait 30 seconds? Usually defined wait times aren't as reliable or cause excessive waits instead of checking for what you really want to be ready in a back off approach. Example testing a network connection is active, a service is started, or a some other catalyst to kick off the next step.
You can accomplish the user login trigger with numerous methods:
Restart-Computer in powershell will bounce the box as will shutdown command.
HTH.
Hi, I want to write a little script (one double klick) that automatically installs a predefined set of Software from Chocolatey but with some controlled reboots between the install commands to prevent interdependencies. How to accomplish that? :)
Example: