Login | |
|
 |
Re: How to stop/start a service on a local machine - 2/20/2005 7:30:56 AM
|
|
 |
|
| |
token
Posts: 1917
Score: 0
Joined: 1/14/2005
From:
Status: offline
|
tnoonan: Kewl, I'll check it out. Thanks again. bushmen: There are a couple problems with this. First of all, WMI doesn't allow you to use alternative credentials when connecting to the local machine, so that's not even an option (unless there are other ways around it). Secondly, if vbscript itself can't do this, another method will be through the help of cmd line. However, as you know, runas doesn't accept stdin. I spent 4 hours last night trying alternative methods of piping the password to the runas cmd but with no success (either throught vbscript itself or by cmd line). When that is solved, I'll need to find a way to hide userID and password. What I want to achieve is to do this using only vbscripts or built-in 2K/XP cmds, if possible. Due to company policies (which is controlled by the states), using 3rd party utilities *might* be difficult and I try to avoid that (again if possible).
|
|
| |
|
|
|
|
|