<tt><font size=2>> Also, what is the best way to use wpkg to change
the administrator <br>
> account password on windows xp and vista?<br>
</font></tt>
<br><tt><font size=2>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.</font></tt>
<br>
<br><tt><font size=2>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':</font></tt>
<br>
<br><tt><font size=2>dim PW</font></tt>
<br><tt><font size=2>PW = "myPassword"</font></tt>
<br><tt><font size=2>Const ADS_UF_DONT_EXPIRE_PASSWD = &h10000</font></tt>
<br><tt><font size=2>dim objUser, objUserFlags, objPasswordExpirationFlag</font></tt>
<br><tt><font size=2>set objUser = GetObject("WinNT://./Administrator")</font></tt>
<br><tt><font size=2>objUser.AccountDisabled = false</font></tt>
<br><tt><font size=2>objUserFlags = objUser.Get("UserFlags")</font></tt>
<br><tt><font size=2>objPasswordExpirationFlag = objUserFlags OR ADS_UF_DONT_EXPIRE_PASSWD</font></tt>
<br><tt><font size=2>objUser.Put "userFlags", objPasswordExpirationFlag
</font></tt>
<br>
<br><tt><font size=2>objUser.SetPassword PW</font></tt>
<br><tt><font size=2>objUser.SetInfo</font></tt>