Tools
Log in
English

Learn to codeSecurity check

Guest account is enabled

MediumW06Windows PCs and servers

Turn off the Guest account, which lets people in without a password.

What is the risk

Guest is meant for anyone, so it usually has no password. If it is on, strangers can reach shared folders or remote access.

How to check

Windows PowerShell (admin)

Get-LocalUser | Where-Object { $_.SID -like '*-501' } | Select-Object Name, Enabled

This finds it by the 501 ending even if it was renamed.

How to fix

Windows PowerShell (admin)

Get-LocalUser | Where-Object { $_.SID -like '*-501' } | Disable-LocalUser

How to prevent it

  • Disable or delete accounts you do not use.
  • Make sure no shared folder gives Everyone write access.

Check again after fixing

Windows PowerShell (admin)

Get-LocalUser | Where-Object { $_.SID -like '*-501' } | Select-Object Name, Enabled

Enabled should be False.

Run the downloaded check again and make sure this item passes.

Security check home