Monthly Archives: April 2011

PowerShell Deep Dive: IV Formatting script

During Jeff Hicks’ talk about formatting he did the usual demo of taking an extract of a format file and modify it to create a new default format.  Jim Truher mentioned that he had a script that would generate the … Continue reading

Posted in Deep Dive, PowerShell V2 | 1 Comment

PowerShell Deep Dive III: WQL query speed

One topic that came up during my talk at Deep Dive was the speed of running a WQL vs using –Filter in Get-WmiObject.  I’d never tested it so its time to find out. PowerShell v2 has a handy cmdlet called … Continue reading

Posted in Deep Dive, PowerShell and WMI | Leave a comment

Scripting Games commentary: VI Get-Process

One of the events involved getting some information about a file running in a particular process. On a local machine we can use Get-Process powershell –FileVersionInfo   Get-Process has a computername parameter so we can work remotely.    WRONG. If … Continue reading

Posted in PowerShell V2 | 1 Comment

PowerShell Deep Dive: II Win32_Volume

One question that I was asked at the deep dive – Is there a way to link a disk volume back to the physical disk it resides on? There doesn’t seem to be. If we test the WMI classes associated … Continue reading

Posted in Deep Dive, PowerShell V2 | 1 Comment

Scripting Games Commentary: V – Remoting

In PowerShell we have a number of ways to perform actions on remote machines. Many of the scenarios in the Scripting Games introduced the need to perform some action on a remote machine. Many of the solutions involved creating sessions, … Continue reading

Posted in PowerShell V2, Scripting | Leave a comment

Scripting Games 2012

Next years Scripting Games will be April 2-13 Looking forward to it already

Posted in Scripting | Leave a comment

Scripting Games Commentary: IV Whatif

PowerShell cmdlets that change the system state have a –whatif parameter to test what would happen for example PS> Get-Service sp* | Stop-Service -WhatIfWhat if: Performing operation “Stop-Service” on Target “Print Spooler (Spooler)”.What if: Performing operation “Stop-Service” on Target “Software … Continue reading

Posted in PowerShell V2 | Leave a comment