About 50 results
Open links in new tab
  1. powershell - how to restart (planned) a computer? - Stack Overflow

    Oct 24, 2018 · Restart-Computer is the command but the thing is i have two types of restarts on the server: planned unplanned how can i specify the type so that its something like:

  2. Powershell - Reboot and Continue Script - Stack Overflow

    Mar 1, 2013 · I'm looking for a way to continue a Powershell script from where it left off after calling a reboot in the script. For example, I am building a DC via Powershell automation, and after renaming …

  3. Powershell cmd to restart machine isn't working - Stack Overflow

    Mar 27, 2015 · powershell.exe restart-computer EXIT Powershell is working as other commands work. The task returns 0x1 which I believe means a failure relating to permissions? I run the task with the …

  4. Powershell Workflow to reboot computers - Stack Overflow

    You can try the Restart-Computer cmdlet with the -Protocol WSMan parameter instead of the default DCOM over RPC protocol (-Protocol DCOM). This would confirm that your RPC network packets are …

  5. How to restart or shutdown a remote computer with comment from …

    Sep 3, 2017 · I have been looking for a way to restart/shutdown a remote computer with comment from powershell. The traditional Restart-Computer Cmdlet does not have these options. then somewhere …

  6. powershell - Restart-Computer Access Denied Error - Stack Overflow

    Oct 6, 2017 · 0 You need to self elevate the script to run the command as Administrator. PowerShell: Running a command as Administrator

  7. powershell - restart-computer with logs or result - Stack Overflow

    Feb 9, 2024 · I need to restart 5 or 6 computers at the same time. It works nice with the command restart-computer. But I want to add -wait to be sure each server has restarted. So, of course, I can …

  8. powershell - restart computer on all hosts at the same time - Stack ...

    Dec 12, 2017 · 2 Restart-Computer will accept multiple entries for ComputerName so you can perform the restart on more than one host at a time. Using this you can initiate the restart in batches, say …

  9. powershell - Is there a way to warn remote computer of pending …

    Why not run invoke-command on the computers you intend to restart to show the pending restart message with msg.exe? Then just run restart-computer as you have in the question. Invoke …

  10. powershell - Returning success and then restarting computer - Stack ...

    Aug 7, 2018 · 2 This will host a seperate command prompt that runs async from the powershell script and restarts the computer in 3 seconds, enough time for powershell to return the exit code to jenkins.