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:

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

    Steve Schofield

    ReplyDelete

NOTE: Anonymous Commenting has been turned off for a while... The comment spammers are just killing me...

ALL comments are moderated. I will review every comment before it will appear on the blog.

Your comment WILL NOT APPEAR UNTIL I approve it. This may take some hours...

I reserve, and will use, the right to not approve ANY comment for ANY reason. I will not usually, but if it's off topic, spam (or even close to spam-like), inflammatory, mean, etc, etc, well... then...

Please see my comment policy for more information if you are interested.

Thanks,
Greg

PS. I am proactively moderating comments. Your comment WILL NOT APPEAR UNTIL I approve it. This may take some hours...