[wpkg-users] A few quick questions

Peter Gough pmgough at gmail.com
Fri Jul 2 10:08:44 CEST 2010


If you're running Active Directory then you might want to check out Group
Policy Preferences. Far and away the easiest way to manage local accounts
(including resetting local user passwords). It relies on your workstations
having the Group Policy Preference Extensions installed and you'll need at
least one Vista/WIndows 7 or Server 2008 machine to manage the new
extensions.

Lots more info here:

http://www.gpoguy.com/Portals/0/Group%20Policy%20Preferences%20Overview.pdf

On 2 July 2010 16:13, <heiko.helmle at horiba.com> wrote:

> > 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 at lists.wpkg.org
> http://lists.wpkg.org/mailman/listinfo/wpkg-users
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.wpkg.org/pipermail/wpkg-users/attachments/20100702/adc05163/attachment-0002.html>


More information about the wpkg-users mailing list