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.
Thanks for any help in advance...
Dave Namou, MCSE CCEA
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