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 / Active Directory / How to Find AD Users with Blank Passwords (Password-Not-Required)

August 21, 2025

How to Find AD Users with Blank Passwords (Password-Not-Required)

One often-overlooked security risk in Active Directory is the ability to create user accounts without a password (with a blank password). In this article, we’ll explore whether it’s possible to create domain user accounts without a password, how to find such accounts, and to disable them.

Many Active Directory administrators may be surprised to learn that domain accounts with blank passwords can exist, even when the Default Domain Password policy that enforces Minimum password length is enabled.

If the PASSWD_NOTREQD attribute is enabled for a user account, that account may be able to set a blank password despite the domain’s password policy requiring a minimum password length. The PASSWD_NOTREQD attribute is not a separate attribute of the user class in Active Directory (AD). It is stored in the value of the composite attribute userAccountControl (is a bitmask where each bit is a flag representing a specific user account property like disabled, locked, password never expires, etc.).

First, let’s look at how to set an empty password for an AD user account.  Use the Set-ADUser PowerShell cmdlet to enable the PasswordNotRequired attribute for a user.

Get-ADUser novach | Set-ADUser -PasswordNotRequired $true

Now let’s check that a password is no longer required for the account.

Get-ADUser novach -Properties *| select name,PasswordNotRequired

Enable PasswordNotRequired for user in AD with PowerShell

The Active Directory Users and Computers graphical snap-in (dsa.msc) can also be used to disable the password requirement for a user. Open the user properties in ADUC. Go to the Attribute Editor tab and edit the value of the UserAccountControl attribute. Enable the PASSWD_NOT_REQD option by adding 32 (in decimal) to the current value of the attribute.

For example, this attribute’s initial value was 66048. This value is the sum of the NORMAL_ACCOUNT attribute (512) and the DONT_EXPIRE_PASSWORD attribute (65536). Add 32 to the current value to enable the PASSWD_NOT_REQD flag for this account. The result is 66080.

Add PASSWD_NOT_REQD flag to UserAccountControl attribute

Once the PASSWD_NOT_REQD attribute is enabled for a user, he will not be able to set an empty password for himself (using the standard user password change procedure). However, a Domain Admin, a member of the Account Operators group, or a user with delegated AD administrative permissions to change passwords for other accounts can reset a user’s password to blank.

Open the ADUC snap-in, right-click on the user, then select Reset Password. Do not enter a new password and leave the password fields blank.

Set a blank password for Active Directory account

In this case, the AD password policy will not prevent the creation of a blank password. The user will now be able to sign in to a Windows domain-joined computer using a blank password by selecting their account on the logon screen and pressing Enter

sign-in Windows domain without a password

Domain security can be compromised by users with blank passwords because they are easy to detect.

To prevent the creation of users without passwords, administrators must monitor the domain for users who have the PASSWD_NOTREQD attribute enabled. Use the following PowerShell one-liner to list all such users:

Get-ADUser -Filter {PasswordNotRequired -eq $true} -properties LastLogonTimestamp, PasswordNotRequired | ft SamAccountName,enabled, PasswordNotRequired , @{n=’LastLogonTimestamp’;e={[DateTime]::FromFileTime($_.LastLogonTimestamp)}}

PowerShell: find AD users with blank passwords

Reset the passwords and disable the Password Not Required option for the found users.

Set-ADAccountPassword novach -Reset
Get-ADUser -Identity novach | Set-ADUser -PasswordNotRequired $false -ChangePasswordAtLogon $true

Improve the security of Active Directory password policies by implementing additional filters that prohibit weak passwords.
0 comment
0
Facebook Twitter Google + Pinterest
Active DirectoryPowerShell
previous post
PowerShell: The Module Could Not Be Loaded
next post
Windows Has Reached End of Service but Won’t Update

Related Reading

Refresh AD Groups Membership without Reboot/Logoff

March 15, 2024

How to Find the Source of Account Lockouts...

March 12, 2024

Configuring Windows Firewall Rules Using Group Policy

March 15, 2024

Allow Non-admin Users RDP Access to Windows Server

March 16, 2024

Copy Files and Folders to User Computers via...

March 15, 2024

How to Disable NTLM Authentication in Windows Domain

March 16, 2024

Extend an Expired User Password in Active Directory

December 23, 2024

How to Install the PowerShell Active Directory Module...

March 15, 2024

Leave a Comment Cancel Reply

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

Recent Posts

  • Proxmox: Share a Host Directory with VMs via VirtioFS

    August 18, 2025
  • How to Find AD Users with Blank Passwords (Password-Not-Required)

    July 24, 2025
  • Run Elevated Commands with Sudo on Windows 11

    July 16, 2025
  • Find a Process Causing High Disk Usage on Windows

    July 15, 2025
  • Fix: Microsoft Defender Not Updating Automatically in Windows

    July 8, 2025
  • Create a Windows Server VM on Proxmox (Step-by-Step)

    July 7, 2025
  • How to Detect Which User Installed or Removed a Program on Windows

    June 23, 2025
  • Encrypt Any Client-Server App Traffic on Windows with Stunnel

    June 12, 2025
  • Failed to Open the Group Policy Object on a Computer

    June 2, 2025
  • Remote Desktop Printing with RD Easy Print Redirection

    June 2, 2025

Follow us

  • Facebook
  • Twitter
  • Telegram
Popular Posts
  • Check Windows 11 Hardware Readiness with PowerShell Script
  • Extend an Expired User Password in Active Directory
  • Best Practices: Changing the IP Address on a Domain Controller
  • AD Domain Join: Computer Account Re-use Blocked
  • Configure DNS Scavenging to Clean Up Stale DNS Records in AD
  • Collecting Windows and Active Directory Event Logs with Graylog
  • Exclude a Specific User or Computer from Group Policy
Footer Logo

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


Back To Top