Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Silently turning off a service that requires password

Status
Not open for further replies.

JustScriptIt

Technical User
Oct 28, 2011
73
0
0
US
I am testing a vbscript to turn off a service that requires a password:

Code:
'Stop smc.exe service 
objWMISvc.Create(strPath & "\smc.exe -stop our_secret_password")

This works really well, but here's the problem. On the test computer where I am stopping smc.exe, I see a pop-up that prompts the end user for a password before continuing.

I need to run this script silently, in the background.

What should I incorporate into this script so that it runs silently, without interrupting the end user?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top