User Tools

Site Tools


computing:windows:add_hidden_users

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
computing:windows:add_hidden_users [2018/05/01 13:04]
jcooper
computing:windows:add_hidden_users [2018/05/01 13:24] (current)
jcooper
Line 3: Line 3:
 This is to create a user that does not show in **Control Panel -> User Accounts** or on the **Sign In Screen** This is to create a user that does not show in **Control Panel -> User Accounts** or on the **Sign In Screen**
  
-===== PowerShell ===== +=====  Create User =====
- +
-https://www.youtube.com/watch?v=Wc-WQrvw2fE +
- +
-https://msdn.microsoft.com/en-us/powershell/reference/4.0/microsoft.powershell.utility/import-csv +
- +
-Create a ''users.csv'' file to import from with the first line:+
  
 +At an **Administrative Command Prompt**
 <file> <file>
-GivenName,Surname,Name,DisplayName,SamAccountName,UserPrincipalName+net user UserName PassWord /add (hit enter) 
 +</file> 
 +<file> 
 +net localgroup Administrators UserName /add (hit enter)
 </file> </file>
  
-{{ :computing:windows:users_add_csv.png?750 |users.csv}}+:!**UserName** and **PassWord** are replaced with your chosen values
  
-:!: Be sure to install the Windows Feature named ''Windows PowerShell Integrated Scripting Environment (ISE)''.+===== Make the user hidden =====
  
-:!: Run the ''Active Directory Module for Windows PowerShell'' with admin privileges.+https://www.windowscentral.com/how-hide-specific-user-accounts-sign-screen-windows-10
  
-**Start -> Administrative Tools -Right-Click on Active Directory Module for Windows PowerShell -> Run as Administrator**+  - Use the Windows key + R keyboard shortcut to open the Run command, type regedit, and click OK to open the Windows Registry. 
 +  - Browse the following path: **HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon** 
 +  Right-click the Winlogon, select New, and click Key. 
 +  - Name the new key SpecialAccounts. 
 +  - Right-click the SpecialAccounts key, select new, and click Key. 
 +  Name the new key UserList. 
 +  - Inside of UserList, right-click, select New, and click DWORD (32-bit) Value. 
 +  - Name the new DWORD key with the name of the account you're trying to hide. 
 +  - Double-click the new DWORD key and make sure its data value is set to 0.
  
-Test the import:+===== Set Password To Never Expire =====
  
 +At an **Administrative Command Prompt**
 <file> <file>
-PS C:\Users\Administrator> Import-Csv .\users.csv+wmic UserAccount where name='UserName' set PassWordExpires=false (hit enter)
 </file> </file>
 +:!: Replace **UserName** with the user account you want to hide.
  
-Import the users: 
- 
-<file> 
-PS C:\Users\Administrator> Import-Csv .\users.csv | New-ADUser -Enabled $True -AccountPassword (ConvertTo-SecureString Pass123 -AsPlainText -force) -ChangePasswordAtLogon $True -City Tucson -State AZ 
-</file> 
- 
-===== AD Bulk Admin Tool ===== 
- 
-https://sourceforge.net/projects/adbulkadmin/ 
- 
-This is a bulk administration tool for an AD administrator to administer a large number of Active Directory users. 
- 
-You can use it to: 
- 
-  * Check a large number of users 
-  * Create a large number of users 
-  * Reset a large number of users' passwords 
-  * Enable or disable a large number of users 
-  * Set a large number of users' properties 
-  * Check groups 
-  * Add users to group or remove users from group 
computing/windows/add_hidden_users.1525201471.txt.gz · Last modified: 2018/05/01 13:04 by jcooper