Home All Groups Group Topic Archive Search About

What DOS command to unlock acct?

Author
27 May 2005 5:10 PM
ME
We have developers got their acct locked out after they uploaded a .NET
project.  It seems to be a bug and we found no fix for it so far.  Usually
we must unlock the acct manually.  Is there a DOS command line that can
unlock an account that I can use instead.  Thanks.

PS. We have Windows 2003 AD.

Author
28 May 2005 2:20 AM
Pegasus (MVP)
"ME" <M*@hotmail.com> wrote in message
news:ernTI8tYFHA.3280@TK2MSFTNGP09.phx.gbl...
> We have developers got their acct locked out after they uploaded a .NET
> project.  It seems to be a bug and we found no fix for it so far.  Usually
> we must unlock the acct manually.  Is there a DOS command line that can
> unlock an account that I can use instead.  Thanks.
>
> PS. We have Windows 2003 AD.
>
>

From the help screen of "net user" (net help user):

NET USER [username [password | *] [options]] [/DOMAIN]

   /ACTIVE:{YES | NO}         Activates or deactivates the account.

In other words: net user JSmith /active:Yes /domain

By the way, DOS is an operating system, same as Linux. There is
no DOS under Windows Server.
Are all your drivers up to date? click for free checkup

Author
28 May 2005 3:07 AM
ME
from my XP box I see no /ACTIVE  when I type NET USER /?

I will give it a try later.  Thx.

Show quoteHide quote
"Pegasus (MVP)" <I.***@fly.com> wrote in message
news:OHzODvyYFHA.2996@TK2MSFTNGP10.phx.gbl...
>
> "ME" <M*@hotmail.com> wrote in message
> news:ernTI8tYFHA.3280@TK2MSFTNGP09.phx.gbl...
>> We have developers got their acct locked out after they uploaded a .NET
>> project.  It seems to be a bug and we found no fix for it so far.
>> Usually
>> we must unlock the acct manually.  Is there a DOS command line that can
>> unlock an account that I can use instead.  Thanks.
>>
>> PS. We have Windows 2003 AD.
>>
>>
>
> From the help screen of "net user" (net help user):
>
> NET USER [username [password | *] [options]] [/DOMAIN]
>
>   /ACTIVE:{YES | NO}         Activates or deactivates the account.
>
> In other words: net user JSmith /active:Yes /domain
>
> By the way, DOS is an operating system, same as Linux. There is
> no DOS under Windows Server.
>
>
Author
28 May 2005 3:28 AM
Pegasus (MVP)
What you report is at variance with what I see. Here is the full
text I get when I type "net help user" on my WinXP Professional
box:

The syntax of this command is:

NET USER

[username [password | *] [options]] [/DOMAIN]
         username {password | *} /ADD [options] [/DOMAIN]
         username [/DELETE] [/DOMAIN]

NET USER creates and modifies user accounts on computers. When used
without switches, it lists the user accounts for the computer. The
user account information is stored in the user accounts database.

This command works only on servers.


username     Is the name of the user account to add, delete, modify, or
             view. The name of the user account can have as many as
             20 characters.
password     Assigns or changes a password for the user's account.
             A password must satisfy the minimum length set with the
             /MINPWLEN option of the NET ACCOUNTS command. It can have as
             many as 14 characters.
*            Produces a prompt for the password. The password is not
             displayed when you type it at a password prompt.
/DOMAIN      Performs the operation on a domain controller of
             the current domain.
/ADD         Adds a user account to the user accounts database.
/DELETE      Removes a user account from the user accounts database.

Options      Are as follows:

   Options                    Description
   --------------------------------------------------------------------
   /ACTIVE:{YES | NO}         Activates or deactivates the account. If
                              the account is not active, the user cannot
                              access the server. The default is YES.
   /COMMENT:"text"            Provides a descriptive comment about the
                              user's account (maximum of 48 characters).
                              Enclose the text in quotation marks.
   /COUNTRYCODE:nnn           Uses the operating system country code to
                              implement the specified language files for a
                              user's help and error messages. A value of
                              0 signifies the default country code.
   /EXPIRES:{date | NEVER}    Causes the account to expire if date is
                              set. NEVER sets no time limit on the
                              account. An expiration date is in the
                              form mm/dd/yy or dd/mm/yy, depending on the
                              country code. Months can be a number,
                              spelled out, or abbreviated with three
                              letters. Year can be two or four numbers.
                              Use slashes(/) (no spaces) to separate
                              parts of the date.
   /FULLNAME:"name"           Is a user's full name (rather than a
                              username). Enclose the name in quotation
                              marks.
   /HOMEDIR:pathname          Sets the path for the user's home directory.
                              The path must exist.
   /PASSWORDCHG:{YES | NO}    Specifies whether users can change their
                              own password. The default is YES.
   /PASSWORDREQ:{YES | NO}    Specifies whether a user account must have
                              a password. The default is YES.
   /PROFILEPATH[:path]        Sets a path for the user's logon profile.
   /SCRIPTPATH:pathname       Is the location of the user's logon
                              script.
   /TIMES:{times | ALL}       Is the logon hours. TIMES is expressed as
                              day[-day][,day[-day]],time[-time][,time
                              [-time]], limited to 1-hour increments.
                              Days can be spelled out or abbreviated.
                              Hours can be 12- or 24-hour notation. For
                              12-hour notation, use am, pm, a.m., or
                              p.m. ALL means a user can always log on,
                              and a blank value means a user can never
                              log on. Separate day and time entries with
                              a comma, and separate multiple day and time
                              entries with a semicolon.
   /USERCOMMENT:"text"        Lets an administrator add or change the User
                              Comment for the account.
   /WORKSTATIONS:{computername[,...] | *}
                              Lists as many as eight computers from
                              which a user can log on to the network. If
                              /WORKSTATIONS has no list or if the list is *,
                              the user can log on from any computer.

NET HELP command | MORE displays Help one screen at a time.




Show quoteHide quote
"ME" <M*@hotmail.com> wrote in message
news:OzmliJzYFHA.2520@TK2MSFTNGP09.phx.gbl...
> from my XP box I see no /ACTIVE  when I type NET USER /?
>
> I will give it a try later.  Thx.
>
> "Pegasus (MVP)" <I.***@fly.com> wrote in message
> news:OHzODvyYFHA.2996@TK2MSFTNGP10.phx.gbl...
> >
> > "ME" <M*@hotmail.com> wrote in message
> > news:ernTI8tYFHA.3280@TK2MSFTNGP09.phx.gbl...
> >> We have developers got their acct locked out after they uploaded a .NET
> >> project.  It seems to be a bug and we found no fix for it so far.
> >> Usually
> >> we must unlock the acct manually.  Is there a DOS command line that can
> >> unlock an account that I can use instead.  Thanks.
> >>
> >> PS. We have Windows 2003 AD.
> >>
> >>
> >
> > From the help screen of "net user" (net help user):
> >
> > NET USER [username [password | *] [options]] [/DOMAIN]
> >
> >   /ACTIVE:{YES | NO}         Activates or deactivates the account.
> >
> > In other words: net user JSmith /active:Yes /domain
> >
> > By the way, DOS is an operating system, same as Linux. There is
> > no DOS under Windows Server.
> >
> >
>
>
Author
28 May 2005 6:19 PM
Torgeir Bakken (MVP)
ME wrote:

> We have developers got their acct locked out after they
> uploaded a .NET project.  It seems to be a bug and we found no
> fix for it so far.  Usually we must unlock the acct manually.
> Is there a DOS command line that can unlock an account that I
> can use instead.  Thanks.
>
> PS. We have Windows 2003 AD.
Hi,

You can use the free Unlock tool listed here:

http://www.joeware.net/win/free/index.htm


Also you don't need to have extensive rights like you do with the
NET USER command:
http://groups.google.co.uk/group/microsoft.public.win2000.cmdprompt.admin/msg/82b64746dd8750c6?hl=en


--
torgeir, Microsoft MVP Scripting and WMI, Porsgrunn Norway
Administration scripting examples and an ONLINE version of
the 1328 page Scripting Guide:
http://www.microsoft.com/technet/scriptcenter/default.mspx

Bookmark and Share