Windows OS Hub
  • Windows
    • Windows 11
    • Windows 10
    • Windows Server 2025
    • Windows Server 2022
    • Windows Server 2019
    • Windows Server 2016
  • Microsoft
    • Active Directory (AD DS)
    • Group Policies (GPOs)
    • Exchange Server
    • Azure and Microsoft 365
    • Microsoft Office
  • Virtualization
    • VMware
    • Hyper-V
    • Proxmox
  • PowerShell
  • Linux
  • Home
  • About

Windows OS Hub

  • Windows
    • Windows 11
    • Windows 10
    • Windows Server 2025
    • Windows Server 2022
    • Windows Server 2019
    • Windows Server 2016
  • Microsoft
    • Active Directory (AD DS)
    • Group Policies (GPOs)
    • Exchange Server
    • Azure and Microsoft 365
    • Microsoft Office
  • Virtualization
    • VMware
    • Hyper-V
    • Proxmox
  • PowerShell
  • Linux

 Windows OS Hub / Windows 11 / How to Create a User Account Without a Password on Windows

December 16, 2025

How to Create a User Account Without a Password on Windows

Although security best practices strongly discourage passwordless user accounts, they may be necessary in certain operational scenarios. In this article, we’ll look at how to create a new user with a blank password in Windows.

Contents:
  • Create a New User with a Blank Password on a Windows Workstation
  • Active Directory Domain User Without a Password

 Here are some more secure alternatives for creating a user account with a blank password:

  • If you need a passwordless user account to run one or two specific apps on a public computer, it is probably more secure to configure Windows to run in kiosk mode.
  • To enable automatic logon to Windows without a password prompt, it is more secure to store the user’s password in the registry than to create an account with an empty password field. (see the linked article for details).

Create a New User with a Blank Password on a Windows Workstation

To create a new user without a password on a computer running Windows 10 or 11, open a command prompt window and run the following command:

net user test_usr /add *

Press Enter twice at the new password prompt to indicate that you want to leave the password blank.

However, the following error will most likely appear:

The password does not meet the password policy requirements. Check the minimum password length, password complexity and password history requirements. More help is available by typing NET HELPMSG 2245.

net use: set empty password - The password does not meet the password policy requirements

This is because the default security policies in Windows require passwords to be at least 7 characters long.

You can check your current local password policy settings in Windows using the command:

net accounts

net accounts: check minimum pass length

The minimum password length on my Windows device is 7 characters. To temporarily disable the minimum password length requirement, change it to 0 with the command:

net accounts /minpwlen:0

Also, you can change this setting in the Minimum password length option in the local GPO editor: Computer Configuration -> Windows Settings -> Security settings -> Account policies -> Password policy.

Minimum password length in local GPO

You will now be able to create a user with a blank password using the net use command. Then, restore the password policy to its previous configuration:

net accounts /minpwlen:7

After creation, the new user will appear in the list of local user accounts on the Windows login screen. To sign in as a new user, click on the account icon.

sigin Windows with empty password

If you try to run a program (using runas) or a scheduler task under a user with a blank password, an error will appear:

1327: Account restrictions are preventing this user from signing in. For example: blank passwords aren't allowed, sign-in times are limited, or a policy restriction has been enforced.

runas under account without password -1327: Account restrictions are preventing this user from signing in

This occurs because the default Windows security policy prevents the use of passwordless accounts for all operations except for local logon (It cannot be used for remote logon via RDP, FTP, etc).

Open the local Group Policy Editor snap-in (gpedit.msc) and navigate to Computer Configuration -> Windows Settings -> Security Settings -> Local Policies -> Security Options. Find the option Accounts: Limit local account use of blank passwords to console logon only (this policy is disabled by default).

To allow running apps in batch job mode and allow the passwordless remote login, change the policy value to Disabled. Update the local Group Policy settings by running: gpupdate /force

GPO: Accounts: Limit local account use of blank passwords to console logon only

You can also enable or disable this policy through the registry. To restrict a user’s passwordless login to only the local (physical) computer console, run:

reg add "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Lsa" /v LimitBlankPasswordUse /t REG_DWORD /d 1 /f

Now you can run programs on behalf of a new user account without entering a password:

runas /user:test_usr cmd

using runas user with no password

It is also possible to restrict local and remote logins, network access, and the use of this account in task schedulers through the local security policies

  • Allow or Deny log on through Remote Desktop Services
  • Allow or Deny log on locally
  • Log on as a batch job

To prevent a user from changing their password, enable the User cannot change password option for them. This option can be enabled from the lusmgr.msc graphical snap-in, or use this PowerShell command to change the local user settings:

Get-LocalUser test_usr| Set-LocalUser –PasswordNeverExpires $True -UserMayChangePassword $False

If the computer is joined to the Active Directory domain, the domain’s security policies will take precedence over local settings. This means that it will not be possible to create a local user account with an empty password on such a workstation.

Active Directory Domain User Without a Password

By default, the AD domain security policies also prevent the creation of domain user accounts without a password. However, there is a workaround that allows administrators to create a passwordless user account without changing the domain password policy settings.

First, enable the PASSWD_NOTREQD attribute for the target user account. To do this, you will need either Domain Admin or Account Operator permissions.

Get-ADUser j.smith | Set-ADUser -PasswordNotRequired $true

PASSWD_NOTREQD attribute in AD

The administrator will then be able to set a blank password for this AD account. Run this command (press Enter twice when prompted to set a new password):

net user j.smith *

set a blank password for AD user via net use

This is explained in more detail in the article “Finding AD users with the PasswordNotRequired option enabled“.
0 comment
0
Facebook Twitter Google + Pinterest
Active DirectoryQuestions and AnswersWindows 11
previous post
Windows: Create (Install) a Service Manually

Related Reading

Configuring RemoteApps Hosted on Windows 10/11 (without Windows...

January 25, 2025

Fix: Windows Update Tab (Button) is Missing from...

December 16, 2024

How to Prefer IPv4 over IPv6 in Windows...

April 15, 2025

Change BIOS from Legacy to UEFI without Reinstalling...

April 23, 2025

How to Detect Which User Installed or Removed...

June 25, 2025

Find a Process Causing High Disk Usage on...

July 16, 2025

Map a Network Drive over SSH (SSHFS) in...

May 13, 2025

Unable to Select Edition During Windows 10/11 Installation

February 4, 2025

Leave a Comment Cancel Reply

join us telegram channel https://t.me/woshub
Join WindowsHub Telegram channel to get the latest updates!

Recent Posts

  • Windows: Auto Switch to Strongest Wi-Fi Network

    December 10, 2025
  • How to Enable or Disable VBScript in Windows after Deprecation

    December 10, 2025
  • Start Menu Not Working (Unresponsive) on Windows Server RDS

    November 27, 2025
  • AppLocker: Configure Application Restriction Policies in Windows

    November 19, 2025
  • Enable/Disable Random Hardware (MAC) Address for Wi-Fi on Windows

    November 14, 2025
  • Automate Software and Settings Deployment with WinGet Configure (DSC)

    November 13, 2025
  • SMB over QUIC: Mount File Share over Internet without VPN on Windows Server 2025

    November 4, 2025
  • How to Find a Previous Computer Name in Windows

    October 28, 2025
  • Stop Windows Server from Auto-Shutdown Every Hour

    October 22, 2025
  • How to Delete a Windows Service via CMD or PowerShell

    October 16, 2025

Follow us

  • Facebook
  • Twitter
  • Telegram
Popular Posts
  • Extend an Expired User Password in Active Directory
  • Check Windows 11 Hardware Readiness with PowerShell Script
  • Collecting Windows and Active Directory Event Logs with Graylog
  • Exclude a Specific User or Computer from Group Policy
  • Error: The Specified Domain Doesn’t Exist or Couldn’t Be Contacted
  • Unlocking Active Directory User Accounts
  • How to Block Common (Weak) Passwords in Active Directory
Footer Logo

@2014 - 2024 - Windows OS Hub. All about operating systems for sysadmins


Back To Top