From: Virtual_Ron on 16 Nov 2006 21:35 Hi, Windows 2000 & 2003 servers (not active directorys) I'm trying to set the "password never expires" on users, via the command line. I read the help file on the command, and type the following: "net users username /expires:NEVER" and it replys "The command completed successfully". Yet, in the user properties, in computer management... the "Password Never Expires" box is not checked. Is what I'm trying to do possible? I have many users on many servers that need this prompt set... I want to do it via batch program. Doing it thru the windows interface will take weeks. Thanks! Ron
From: Pegasus (MVP) on 16 Nov 2006 22:43 "Virtual_Ron" <Virtual_Ron(a)discussions.microsoft.com> wrote in message news:698EEFD6-C22E-44CF-BFEC-857DD1FA5436(a)microsoft.com... > Hi, > > Windows 2000 & 2003 servers (not active directorys) > > I'm trying to set the "password never expires" on users, via the command > line. I read the help file on the command, and type the following: > "net users username /expires:NEVER" > and it replys "The command completed successfully". Yet, in the user > properties, in computer management... the "Password Never Expires" box is not > checked. > > Is what I'm trying to do possible? I have many users on many servers that > need this prompt set... I want to do it via batch program. Doing it thru the > windows interface will take weeks. > > Thanks! > Ron The help text for your command says " /EXPIRES:{date | NEVER} Causes the account to expire if date is set. NEVER sets no time limit on the" Note how it speaks about the "account" expiring, not the "password"? If you're in a domain environment than you can set the password expiry rule via a domain policy. No need for a command line option.
From: Virtual_Ron on 17 Nov 2006 07:36 "Pegasus (MVP)" wrote: > > "Virtual_Ron" <Virtual_Ron(a)discussions.microsoft.com> wrote in message > news:698EEFD6-C22E-44CF-BFEC-857DD1FA5436(a)microsoft.com... > > Hi, > > > > Windows 2000 & 2003 servers (not active directorys) > > > > I'm trying to set the "password never expires" on users, via the command > > line. I read the help file on the command, and type the following: > > "net users username /expires:NEVER" > > and it replys "The command completed successfully". Yet, in the user > > properties, in computer management... the "Password Never Expires" box is > not > > checked. > > > > Is what I'm trying to do possible? I have many users on many servers that > > need this prompt set... I want to do it via batch program. Doing it thru > the > > windows interface will take weeks. > > > > Thanks! > > Ron > > The help text for your command says > > " /EXPIRES:{date | NEVER} Causes the account to expire if date is > set. NEVER sets no time limit on the" > > Note how it speaks about the "account" expiring, not the "password"? > > If you're in a domain environment than you can set the > password expiry rule via a domain policy. No need for > a command line option. > > > Oh, man.... thanks. I never noticed that it was for the "account" and not the password.
From: Jerold Schulman on 17 Nov 2006 08:11 On Thu, 16 Nov 2006 18:35:01 -0800, Virtual_Ron <Virtual_Ron(a)discussions.microsoft.com> wrote: > Hi, > >Windows 2000 & 2003 servers (not active directorys) > >I'm trying to set the "password never expires" on users, via the command >line. I read the help file on the command, and type the following: >"net users username /expires:NEVER" >and it replys "The command completed successfully". Yet, in the user >properties, in computer management... the "Password Never Expires" box is not >checked. > >Is what I'm trying to do possible? I have many users on many servers that >need this prompt set... I want to do it via batch program. Doing it thru the >windows interface will take weeks. > >Thanks! >Ron See tip 0570 ? Freeware command line / batch account rename. 17-Jun-98 in the 'Tips & Tricks' at http://www.jsifaq.com netuser UserName /pwnexp:Y Jerold Schulman Windows Server MVP JSI, Inc. http://www.jsiinc.com http://www.jsifaq.com
From: Virtual_Ron on 17 Nov 2006 08:59 > See tip 0570 ยป Freeware command line / batch account rename. 17-Jun-98 > in the 'Tips & Tricks' at http://www.jsifaq.com > > netuser UserName /pwnexp:Y > > > > Jerold Schulman > Windows Server MVP > JSI, Inc. > http://www.jsiinc.com > http://www.jsifaq.com > Thanks!!! Thats EXACTLY what I need! You The Man!
|
Pages: 1 Prev: WMI Performance Adapter service fills up the log Next: AladinHasp |