About 55,000 results
Open links in new tab
  1. windows - How to sleep in a batch file? - Server Fault

    Sep 26, 2012 · How to pause execution for a while in a Windows batch file between a command and the next one?

  2. One-Liner: Countdown Timer in PowerShell – PowerShell.org

    Mar 16, 2008 · Here's a quick one for ya. Perfect kitchen timer. Who doesn't have a laptop with PowerShell on it in their kitchen? start-sleep (60*9); write-host (" a"*4) Start-Sleep works in seconds, …

  3. Why does this PowerShell script hang? - Server Fault

    I would just add that order of commands causes that alias sleep takes precedence before function sleep - thus you would eventually get your prompt back (after 300 secs in first run).

  4. How to put laptop to sleep with powershell/vbs/wmi/...?

    I'd like to be able to put my laptop to sleep from the command line. According to Microsoft, the Win32_Battery WMI class has a SetPowerState method that looks like it should be able to do this, …

  5. Need to add a "Wait" command to a Powershell script

    I don't use Exchange, so I am not familiar with cmdlets regarding this, but what I would do is trying to find a command that checks if the resource exists and if not, goes into a holding cycle until it exists. …

  6. Sometimes PowerShell stops sending output until I press enter. Why?

    Nov 20, 2010 · 162 Periodically I notice PowerShell seems to take forever to finish doing whatever it is I told it to do until it occurs to me to "wake it up" by pressing enter.

  7. How do I run my PowerShell scripts in parallel without using Jobs?

    Sep 6, 2014 · If I have a script that I need to run against multiple computers, or with multiple different arguments, how can I execute it in parallel, without having to incur the overhead of spawning a new …

  8. How do I prevent RDP sessions from idle-locking? - Server Fault

    Sep 17, 2020 · I am replacing some Windows Server 2008 R2 boxes with new Windows Server 2019 boxes. Both sets are mostly administered over RDP. The new 2019 set kicks RDP sessions back to …

  9. windows - PowerShell just Hangs - Server Fault

    Sometimes PowerShell stops sending output until I press enter. Why? (2 answers) Closed 10 years ago. Anyone else have problems when running a PowerShell script, where the script just hangs in one …

  10. windows - How to run a batch script completely and automatically on ...

    I have scheduled the script to execute using task scheduler on events such as sleep/hibernate (kernel power event id 42) and shutdown (user32 event id 1074). The script is initiating on these events but it …