Tag Archives: PowerShell

PowerShell Tips Poster

Looking for some great tips on writing better PowerShell? Here’s a poster that you can use as a quick reference online or on your cube or office wall. It’s 36 inches by 24 inches! I gave out printed copies at the Research Triangle PowerShell Saturday event in Raleigh, NC this past weekend and they were […]

Running Remote Commands And Actually Getting The Output Using Only WMI

If you’ve worked with WMI for any amount of time, you may have run into the following problem: “Creating a remote Windows process using the Win32_Process class is relatively easy, but how do I get the console output?” Have no fear. Win32_Process to the rescue. Wait… no. 🙁 The Create method of the Win32_Process class […]

WMI Performance Tip: Reduce Connections By Reusing Objects in PowerShell

I was about to share this little performance tip with a friend and figured it would be good to show some actual data to back it up. Querying the same WMI class on a remote host multiple times creates multiple connections and multiple queries. Reuse objects to increase performance. Here’s an example of two WMI […]