Monthly Archive

Categories

Invoke-WmiMethod

In this post http://richardsiddaway.spaces.live.com/blog/cns!43CFA46A74CF3E96!1525.entry I showed how to use the [WMIClass] accelerator to create a new WMI Object - in this case a process running notepad.

CTP2 streamlines the process to a degree in that the Invoke-WmiMethod can do it all in one line

Invoke-WmiMethod -Class Win32_Process -Name Create -ArgumentList "notepad.exe"

Straight forward single cmdlet that does the job.  Very easy.

 

Share this post :

Technorati Tags: PowerShell,WMI

Leave a Reply