在開機時,按下F8進入
"帶命令提示符的安全"模式
輸入 NET USER USERID 123456
可把某使用者的密碼強行設置為123456
"帶命令提示符的安全"模式
輸入 NET USER USERID 123456
可把某使用者的密碼強行設置為123456
2.
知道Administrator的密碼的情況下
可用 net user USERID/add 增加一帳號
並用 net localgroup administrators USERID/add 將該帳號放入
Administrators的群組內,就可用該帳號作修改其他帳號密碼的工作
知道Administrator的密碼的情況下
可用 net user USERID/add 增加一帳號
並用 net localgroup administrators USERID/add 將該帳號放入
Administrators的群組內,就可用該帳號作修改其他帳號密碼的工作
方法二:使用電腦的本機電腦群組原則「啟動腳本」
編寫一個a.bat批次檔,內容為 net user USERID password
用CMD指令為
echo net user USERID password > a.bat
放到以下位址
X:\Windows\System32\GroupPolicy\Machine\Scripts\Startup
How to Enable or Disable a User Account in Windows 7 and Windows 8
Information
This tutorial will show you how to enable (unlock) or disable (lock) a domain, local, or Microsoft user account in Windows 7 and Windows 8.
You must be logged in as an administrator to be able to do the steps in this tutorial.
You must be logged in as an administrator to be able to do the steps in this tutorial.
Note
When a user account is disabled, the user account will no longer be listed in User Accounts in the Control Panel, Parental Controls, log on screens, and can no longer be logged in to.
An administrator account will still be able to navigate to and access the contents of the C:\Users\(user-name) folder of a disabled user account using Windows Explorer.
OPTION ONE
1. Open Local Users and Groups, and click/tap on the Users folder in the left pane to open it. (see screenshot below)2. In the middle pane of Users, double click/tap on the user account name (ex: Example-Account) that you want to enable or disable. (see screenshot above)
3. Do step 4 or 5 below depending on if you would like to enable or disable the user account.
4. To Enable and Unlock a User Account
NOTE: This is the default setting.A) In the General tab, uncheck the Account is disabled box, click/tap on OK, and go to step 6 below. (see screenshot below)5. To Disable and Lock a User AccountA) In the General tab, check the Account is disabled box, click/tap on OK, and go to step 6 below. (see screenshot above)6. When finished, close the Local Users and Groups window.
OPTION TWO
NOTE: This option will use the net user command to enable or disable a user account or domain account.
1. Open an elevated command prompt in Windows 7 or Windows 8.
2. To See if a User Account is Disabled or Enabled in a Command PromptA) In the elevated command prompt, type either command below and press Enter.3. Do step 4 or 5 below depending on if you would like to enable or disable the user account.
NOTE: This will give you a list of all users accounts either on your local computer or on the domain.(Accounts on your computer) - Net userB) In the elevated command prompt, type either command below for the user account (ex: Example Account) that you want to see is enabled or disable, and press Enter.
(Accounts on domain) - Net user /domain
NOTE: This will allow you to see the Account active details and more of the user account. Yes = enabled and No = disabled. Substitute User Name in the command below with the user name (ex: Example Account) of the user account (ex: Example Account) within quotes.(Account on your computer) - Net user "User Name"
(Account on domain) - Net user "User Name" /domain
4. To Enable a Local or Domain User Account
NOTE: This is the default setting.A) In the elevated command prompt, type either command below for the user account (ex: Example Account) that you want to enable, and press Enter.5. To Disable a Local or Domain User Account
NOTE: Substitute User Name in the command below with the user name (ex: Example Account) of the user account (ex: Example Account) within quotes.(Enable local account)
Net user "User Name" /active:yes
(Enable domain account)
Net user "User Name" /active:yes /domainA) In the elevated command prompt, type either command below for the user account (ex: Example Account) that you want to disable, and press Enter.
NOTE: Substitute User Name in the command below with the user name (ex: Example Account) of the user account (ex: Example Account) within quotes.(Disable local account)
Net user "User Name" /active:no
(Disable domain account)
Net user "User Name" /active:no /domain
沒有留言:
張貼留言