Question : How to change local admin password at Client PCs

Hi,

I have a Win 2K domain controller with moslty XP client PCs.
I was wondering if there is a way to reset all local admin passwords remotely. Not with remote desktop, maybe with scripts or group policies.
or with any otger way you may know of course.

thanks,

Answer : How to change local admin password at Client PCs

whoops, remember to put spaces between each comma in the LDAP strinng as well....Here you go:

On Error Resume Next
Set objOU = GetObject("LDAP://OU=ClientComputers, DC=gap, DC=ad, DC=,university, DC=edu")
objOU.Filter = Array("Computer")

For Each objItem in objOU
    strComputer = objItem.CN
    Set objUser = GetObject("WinNT://" & strComputer & "/Administrator")
    objUser.SetPassword("Password")
Next

Wscript.Echo "Tada! passwords changed!"
Random Solutions  
 
programming4us programming4us