To add a guest account on Windows 11, open Settings > Accounts > Other users and create a standard local account for your visitor. You can name it Visitor and set it up without a Microsoft account. These steps use Windows 11 menus.
The short version
- Create the account: Open Settings > Accounts > Other users and select Add account to begin.
- Keep standard permissions: Keep the visitor account a standard user throughout setup.
- Switch accounts: After creating the account, press Windows + L and select it on the sign-in screen.
- Keep it between visits: The account and its files remain after sign-out, and you can disable future sign-in when needed.
| Method | When to use it | Requirements |
|---|---|---|
| Settings | Start here for a standard local visitor account | Administrator access on Home, Pro, Enterprise or Education |
| User Accounts dialog | Create a local account through an alternative dialog | Administrator access on Windows 11 |
| Command Prompt | Create the account with a command | Administrator access and permitted command execution |
| Windows PowerShell | Create the account and assign Users membership | Administrator access and the LocalAccounts module |
| Computer Management | Create the account through local user management | Administrator access on Pro, Enterprise or Education |
Create the visitor account in Settings
Sign in with an administrator account. Open Settings, select Accounts, then choose Other users. Under Add other user, select Add account.
When Windows asks for sign-in details, select I don't have this person's sign-in information. Next, select Add a user without a Microsoft account. This opens local account setup.
Follow the on-screen instructions to finish setting up the account, using a username such as Visitor, and keep the account a standard user. This method works on Windows 11 Home, Pro, Enterprise and Education.
Keep standard permissions and persistent files
Retain standard-user permissions whichever account creation method you choose. Do not promote the visitor account to an administrator or add it to the Administrators group. For the methods that involve group membership, retain ordinary Users membership.
Naming the account Visitor does not make it temporary. Its files remain after sign-out, and you can use the same account again on a later visit. You only need to complete one account creation method.
Sign in to the guest account
Save your work before signing out of your own account. Select Start, select your user picture or the Accounts icon, then select Sign out. On the sign-in screen, choose the visitor account and enter its credentials. On Microsoft Entra joined and domain joined devices, local accounts aren't shown on the sign-in screen by default; an administrator can display them by enabling the Enumerate local users on domain-joined computers policy.
To keep your current session open, press Windows + L instead. This locks your account and opens the sign-in screen without ending your session. Select the visitor account there and enter its credentials; locking the PC does not create an account.
Use the User Accounts dialog instead
The User Accounts dialog gives you another graphical way to create a local account. While signed in as an administrator, press Windows + R. Enter the following command, then select OK.
netplwizSelect Add, then select Sign in without a Microsoft account (not recommended). Choose Local account. Supply a username and, optionally, a password and password hint.
Select Next, then select Finish to complete setup. Retain standard-user permissions. You can then choose the new account on the Windows sign-in screen.
Create the account with Command Prompt
Open Command Prompt using Run as administrator. You need administrator rights and permission to execute commands on the PC. If command execution is restricted, use the Settings method with an administrator account.
Visitor is the example username in the following command. Replace it with your chosen account name if needed, then run the command.
net user Visitor * /addEnter a password when prompted, then enter it again to confirm it. Retain the account's ordinary user permissions, and do not add it to Administrators. Once the account is created, you can select it on the sign-in screen.
Create the account with Windows PowerShell
Open 64-bit Windows PowerShell using Run as administrator. This method requires the Microsoft.PowerShell.LocalAccounts module. You will create the local account, then add it to the built-in Users group.
First, run the following command to collect the visitor's password as a secure string. Type the password when prompted.
$Password = Read-Host -AsSecureStringNext, create the account using that password. The following command names it Visitor; replace that name if you want a different username.
New-LocalUser -Name "Visitor" -Password $PasswordAdd the new account to the built-in Users group with the following command. If you chose a different username, replace Visitor here with the same name you used when creating the account.
Add-LocalGroupMember -SID 'S-1-5-32-545' -Member "$env:COMPUTERNAME\Visitor"The LocalAccounts module is unavailable in 32-bit PowerShell on a 64-bit system. If you opened that version, switch to 64-bit Windows PowerShell before running these commands. If the required module is unavailable, use Settings to create the account instead.
Use Computer Management on supported editions
You can use Computer Management on Windows 11 Pro, Enterprise and Education. Its Local Users and Groups snap-in is unavailable in Windows 11 Home. On Home, use Settings or the User Accounts dialog instead.
Open Computer Management with administrator rights. Navigate to System Tools > Local Users and Groups > Users. Right-click Users and select New User.
Enter the visitor's username and password, then select Create. Retain ordinary Users membership. The account is then ready to access from the Windows sign-in screen.
Disable the account between visits
When the visitor no longer needs access, you can disable future sign-in while retaining the account. Open Command Prompt using Run as administrator. Run the following command, replacing Visitor with the account's actual username.
net user Visitor /active:noTo let the visitor sign in again, open Command Prompt using Run as administrator. Run the following command with the same username to reactivate the existing account.
net user Visitor /active:yesFrequently Asked Questions
Should you enable the built-in Guest account instead?
Microsoft recommends leaving the built-in Guest account disabled unless needed. Activating it alone does not ensure that you can sign in to the desktop, because local security policy and device configuration affect access. Use a separate standard local account for ordinary visitor access.
Can a returning visitor use their own Microsoft account?
Yes, open Settings > Accounts > Other users, select Add account, enter the visitor's Microsoft-account email address and complete setup. Keep standard-user permissions for their Microsoft-connected Windows profile. Sign in only through Microsoft’s own app or website, and never share a code, password, or remote access with someone who contacts you.
Is Microsoft Edge guest browsing enough for a visitor?
You can open a temporary browser profile in Microsoft Edge by selecting the Profile icon, then selecting Browse as guest, subject to organizational browser policies. This does not create a Windows account or isolate access to the Windows desktop and local files.
Can you restrict a visitor to a single application?
Yes, you can use a single-app kiosk on Windows 11 Pro, Enterprise, Education and IoT Enterprise, including supported LTSC editions. Home does not support this kiosk option. User Account Control must be enabled, and the kiosk session requires console sign-in.
Can Windows remove a guest account automatically at sign-out?
Yes, accounts created through the Guest sign-in option in a configured Shared PC setup are removed at sign-out. This device-wide configuration requires administrative deployment on Windows 11 Pro, Enterprise, Education or supported IoT Enterprise editions. Home does not support Shared PC mode.