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 IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Create a Token using VBScript

Status
Not open for further replies.

DaveNamou

IS-IT--Management
Feb 7, 2002
175
US
Hi,
I'm trying to write a script that will change the password for an account on a remote machine (LABSERVER).
The problem I'm having is that the account I'm running under might not have access LABSERVER.

How can I authenticate (or just create a token) to the Remote server.
If I map a drive to LABSERVER using an admin ID prior to running the script, then it works fine..but I'm trying to avoid doing that.

Code:
strComputer = "LABSERVER"
Set objUser = GetObject("WinNT://" & strComputer & "/USER01, user")

objUser.SetPassword "Pass2word"
objUser.SetInfo

Thanks for any help in advance...

Dave Namou, MCSE CCEA
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top