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: ,

 

Read the complete post at http://richardsiddaway.spaces.live.com/Blog/cns!43CFA46A74CF3E96!1543.entry

Published Tue, Jul 15 2008 14:16 by Richard Siddaway's Blog
Filed under: