Re: How to change PASSWORD expiration settings with command line?
- From: "Richard Mueller [MVP]" <rlmueller-nospam@xxxxxxxxxxxxxxxxxxxx>
- Date: Wed, 4 Jun 2008 12:47:25 -0500
FB wrote:
I Have a WIn2003SP1 Std Citrix PS4 Server joined to a Win2003 R2 Domain
I have several LOCAL accounts created and i wanna to disable PASSWORD
expiration via Script
I´ve heard abou a NET USER paramater, "/pwnexp " but i think this
parameter
is invalid in Win2003 Servers.
How can i do that? Can i do it with NET USE commands? .VBS? Batch?
I found a Script (Modify a Local User Account So It Never Expires) in
http://www.microsoft.com/technet/scriptcenter/scripts/default.mspx?mfr=true
Can be used for that?
Pasting links from the Microsoft site is a pain. You have to copy the
shortcut from the toc at the left. If the VBScript you refer to is linked
here:
http://www.microsoft.com/technet/scriptcenter/scripts/ds/local/users/lousvb14.mspx
then yes, you can use this to modify local accounts so the password never
expires. Of course, if the server is joined to a domain I would expect you
to use domain accounts rather than local accounts.
As far as I know, net user can be used, but I cannot find the syntax to make
the password not expire. It can be used to configure the user so they cannot
change their own password. One issue is that Domain Controllers do not have
local accounts. Servers that are not DC's do have local accounts.
--
Richard Mueller
MVP Directory Services
Hilltop Lab - http://www.rlmueller.net
--
.
- Follow-Ups:
- Prev by Date: Re: Finding out What groups a user is in
- Next by Date: Re: Looking for a way to do this
- Previous by thread: Re: Finding out What groups a user is in
- Next by thread: Re: How to change PASSWORD expiration settings with command line?
- Index(es):
Relevant Pages
|