About 5,880 results
Open links in new tab
  1. Infinite PowerShell loop using too much memory

    Jan 3, 2020 · This is only needed in aggressive systems with many PowerShell users or instances where we don't want PowerShell to consume too many resources. For almost all normal usage …

  2. Powershell - Hashtable - Deleting Items

    The usual way to address that problem in a .NET app is to built a list of items you want to delete in the first loop, then enumerate that list in a second loop to do the actual removal, like this:

  3. how to powershell gui start-job to update form controls

    I've created a powershell gui to do a perpetual ping check against a host, and updates a text box with the results. The problem is that when i have the ping loop executing, the whole becomes …

  4. Powershell closing seperate runspaces - social.technet.microsoft.com

    Basically I want a progress bar loop as shown in the demo above to launch and loop while the script continues to run. What I also got working was while the script is running push update …

  5. Double foreach and Runspaces - social.technet.microsoft.com

    Nov 30, 2015 · If you keep iterating over each runspace without a rest you'll max out one core while waiting. Add a sleep call to that loop if like your computer's cooling ventilators. To Test …

  6. Convert Functions to Powershell from VBScript

    The code I posted does exactly the same thing as the vbscript function. The functions are badly written. You want to know when a process has terminated. In PowerShell the process …

  7. Error while moving user using Powershell

    My colleague when tried to move user using SFB Powershell, he is getting different error: Failed while updating destination pool.

  8. Wait for process to start then loop start-process for another …

    I am trying to wait for a process to start, once started, then loop start-process again for a second process until it starts, then wait until the first process has stopped and exit script.

  9. How to log in foreach loop - social.technet.microsoft.com

    Jul 13, 2010 · I have been trying to create a IIS log management script that zips the logfiles for the previous month, checks if all files are in the zip and shows the size of the final zip file and after …

  10. Reducing Powershell CPU Usage During Start?

    One single PowerShell process is up-and-running at all times. Your management software simply signals it to take action (e.g. by creating a semaphore-file, or by inter-process communication, …