Tuesday, June 06, 2006

Launch a Process on A Remote Machine With Custom Credentials via WMI

Steve Schofield Weblog - WMI - start a process on remote machine and passing custom credentials.

"I use System.Management in .NET 2.0 to connect, pass custom credentials to a remote machine and query with WMI frequently. This is straight forward and there are many examples showing the syntax how to do this. However, while working with remote IIS7 installs, I wanted to execute a command on a remote machine while passing custom credentials. I couldn’t find an example that provided this functionality, hopefully this will save someone time searching for the syntax.  This sample starts an instance of ’calc.exe’ on a remote machine. 
 
..."

I’ve had a like need paused on a low priority background thread... This will be useful when I resume that thread.

2 comments:

Anonymous said...

I have to say Greg this is pretty cool you linked to my WMI article. Cool blog name!

Steve Schofield

Greg said...

Thanks... ;)