![]()
Ensure that an Account will not Expire
Description
Configures a user account so that it wil not expire. This is done by setting the expiration date to 1/1/1970.Script Code
Set objUser = GetObject _ ("LDAP://cn=myerken,ou=management,dc=fabrikam,dc=com") objUser.AccountExpirationDate = "01/01/1970" objUser.SetInfo
The System Administration Scripting Guide, part of the Windows .NET Server Resource Kit. For more information, contact scripter@microsoft.com.