hysel Posted June 3, 2004 Share Posted June 3, 2004 hi alli am going to be in charge of upgrading 5000 workstations in in one of the biggest cell phone company in israel.i need a script that change the user and password for the NOVEL NAL service.the service will runas this username: zenservice@pelephone.co.il i have a registry key the change the runas option for the service to zenservice@pelephone.co.ilbut i need a script the also define the password for this user.can anyone help me please?10x in advance Link to comment Share on other sites More sharing options...
hysel Posted June 5, 2004 Author Share Posted June 5, 2004 well....i got it have a look:strComputer = "."Set objWMIService = GetObject("winmgmts:" _& "{impersonationLevel=impersonate}!\\" & strComputer & "\root\cimv2")Set colServiceList = objWMIService.ExecQuery _("Select * from Win32_Service")For Each objservice in colServiceListIf objService.Startname = ".\Your User name Here" ThenerrReturn = objService.Change( , , , , , , , "Your Password Here") End If Nexthelped myself Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now