Actually, if you want to set local user account expiration date, this isn't a policy option, but rather an attribute on the local SAM account. You can set it using a script like this:
 
Set usr = GetObject("WinNT://machinename/darren")
usr.AccountExpirationDate = "06/06/2005"
usr.SetInfo
 
 


From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of SysPro Support
Sent: Friday, March 26, 2004 6:17 PM
To: [EMAIL PROTECTED]
Subject: Re: [ActiveDir] Domian VS Local

I think you can go in to Local Group policy on the machine and set it. However, if the machine is on the domain, you will need to take steps to ensure the global policy doesn't override it (e.g. make the machine a member of a group and then make the group No Apply for the Domain policy)
 
I haven't tried it, but give it a go
Alan C 
----- Original Message -----
Sent: Saturday, March 27, 2004 8:41 AM
Subject: [ActiveDir] Domian VS Local

Does anyone know how to set an account expiration date on a local system saccount like you can with a domain accout?
 
Thanks,
 
Mike
 
 

Reply via email to