> Also, what is the best way to use wpkg to change the administrator
> account password on windows xp and vista?
I don't know the best way - i used a variant of a vbscript Dr.Google found
for me. If you have powershell installed on XP I'd suggest you use that
instead - it's much more readable. But VBScript has the advantage on being
installed on every supported PC-Windows by default.
It also activates the administrator and disabled expiration. Note that
this snippet only works on Windows-Versions where the admin-user is called
"Administrator". If you use French, for example, you have to use
'Administrateur':
dim PW
PW = "myPassword"
Const ADS_UF_DONT_EXPIRE_PASSWD = &h10000
dim objUser, objUserFlags, objPasswordExpirationFlag
set objUser = GetObject("WinNT://./Administrator")
objUser.AccountDisabled = false
objUserFlags = objUser.Get("UserFlags")
objPasswordExpirationFlag = objUserFlags OR ADS_UF_DONT_EXPIRE_PASSWD
objUser.Put "userFlags", objPasswordExpirationFlag
objUser.SetPassword PW
objUser.SetInfo
-------------------------------------------------------------------------
wpkg-users mailing list archives >> http://lists.wpkg.org/pipermail/wpkg-users/
_______________________________________________
wpkg-users mailing list
wpkg-users@lists.wpkg.org
http://lists.wpkg.org/mailman/listinfo/wpkg-users