Welcome to ThePowerShellGuy.com Sign in | Join | Help

Browse by Tags

All Tags » powershell » wmi   (RSS)

Comparing Win32_PingStatus vs [System.Net.NetworkInformation.Ping]

Back again with another comparison between .NET and WMI performance. While WMI can be very useful and often the only way to accomplish some remote oriented tasks, you will rarely hear anyone that has worked with WMI classes for long brag about its performance.
Posted by Gaurhoth | (Comments Off)
Filed under: , ,

New-TaskPool.ps1 - Threading the Powershell way

For a while now I've been trying to perfect a script that will let me simulate having multiple threads in powershell. Here's what I've come up with. The entire script is attached to the post. I'll only be discussing a few bits and pieces today. Feel free
Posted by Gaurhoth | (Comments Off)
Filed under: ,

Attachment(s): new-taskpool.txt

Listing Remote Services without using WMI

WMI seems to get recommended for most "remote" queries in powershell. This is due in large part because the get-wmiobject cmdlet includes built in support for querying remote machines. However, I've found that WMI can be slow and whenever I find a dotnet
Posted by Gaurhoth | (Comments Off)
Filed under: , , ,