About 24,200 results
Open links in new tab
  1. powershell - Is `Restart-Computer -Force` equivalent to `shutdown /r /t ...

    Sep 11, 2024 · Restart-Computer -Force does more than set the timer to zero (the linked issue is only for the macOS version of powershell). You can verify this by attempting to restart while a user is …

  2. Restart a computer at a given time with PowerShell - Super User

    I'm looking for a way to restart a computer with PowerShell (Restart-Computer), at a given time (Example: 03:00AM). The PS-Script itself will run at a random time, when the user executes it, so it's …

  3. powershell - Using "restart-computer" Cmdlet for remote computers …

    Nov 7, 2023 · I want to reboot several computers remotely using PowerShell and wait until the reboot is completed, before continuing the script. I've stumbled across the "restart-computer" cmdlet and its …

  4. powershell - Restart-Computer and hold script - Super User

    Nov 4, 2014 · I'm rebooting the computer with Restart-Computer, and the reboot start immediately. However, the first commands after the reboot command will be executed to! So the reboot is started, …

  5. PowerShell - Restart-Computer doesn't work as scheduled task

    Sep 27, 2016 · 3 I have a Windows Server 2012 R2 (PowerShell 4). There is a ps1 file with a PowerShell script, which contains among other things the command restart-computer. I also created …

  6. Reboot Windows 10 PC remotely - Super User

    Feb 11, 2016 · 1. Open Powershell on your host computer 2. Type this Restart-Computer remote-ip -Force -Credential domain\username 3. Enter password

  7. Automating installing all Windows Updates and restart right now

    Mar 5, 2021 · The PowerShell method uses the following commands as Administrator: Install Windows Update Module (one time command) : Install-Module PSWindowsUpdate Check and Download the …

  8. Use PowerShell to conditionally restart a service on remote computers ...

    Oct 21, 2020 · 1 You could put the computer names from the file to an array and then use Invoke-Command and pass the array to the -ComputerName parameter and run the Get-Service conditional …

  9. powershell - Programmatically restart computer and boot into flash ...

    Basically the flow is, computer is reset using recovery, then while on language screen a tester runs the program via command prompt (Which gathers hardware, does some tests, and displays UPC and …

  10. Powershell Scheduled Task Restart Every Hour if Fails

    Feb 7, 2020 · I want to write a powershell script that creates a scheduled task in Windows, but if it fails, it will try again in an hour. Essentially, I want the equivalent of these boxes: How would I modify th...