How to delete password policy on windows 10 pro workgroup computer

Federico Coppola 1,116 Reputation points

Hi all,
I have a Windows 10 Pro computer that In the past this computer was Active Directory joined.
Inside domain there were some password policies as lockout password or password complexity.

This computer is not joined anymore and it is a WORKGROUP computer, but password policies still exist on this computer.
Employe uses this computer with a local account that I created before remove this computer from company AD domain.
This local user is a local administrator user.

What can I do?
Can I reset all password policy settings on this computer?

I can not reset this Windows PC in this moment.

Thanks a lot

Windows 10
Windows 10
A Microsoft operating system that runs on personal computers and tablets.
6,747 questions
Windows 10 Security
Windows 10 Security
Windows 10: A Microsoft operating system that runs on personal computers and tablets.Security: The precautions taken to guard against crime, attack, sabotage, espionage, or another threat.
2,226 questions
No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Shane Walsh 26 Reputation points

    You could try run these PowerShell Commands which could remove the enforced policies:

    Remove-item C:\Windows\System32\GroupPolicyUsers* -Recurse -force

    Remove-item C:\Windows\System32\GroupPolicy* -Recurse –force

    Make sure you restart after.

  2. Limitless Technology 37,646 Reputation points

    Hello @Federico Coppola

    Step 1
    Click on "Start," type "regedit" in the search box and press "Enter." Once the registry opens, right-click on "Computer" at the top and select "Export." Depending on how many registry keys you have this may take a few minutes.

    Step 2
    Save the backup that you created to a removable storage device in the event that you need to access it. Click on "Start," type "regedit" in the search box and press "Enter." Click the arrow next to the primary registry key labeled "HKEY_LOCAL_MACHINE" to expand the registry key.

    Step 3
    Navigate to the "Software" folder and click on the arrow next to the folder to expand the contents. Click on the arrow next to the "Policies" folder. Scroll down to the "Microsoft" folder under "Policies," click on the folder to highlight the folder and press the "Delete" key on your keyboard.

    Step 4
    Click on the arrow next to the "HKEY_LOCAL_MACHINE" to collapse the folders. Navigate registry key folder labeled "HKEY_CURRENT_USER" and click on the arrow to expand the folder. Locate the "Software" folder and click the arrow to expand it. Double-click the "Policies" folder, click to highlight the folder labeled "Microsoft" and delete the folder.

    Step 5
    Click the arrow to expand the "Microsoft" folder located in the "Software" folder of the "HKEY_CURRENT_USER" registry folder. Click the arrow to expand the "Windows" folder. Double-click the "CurrentVersion" folder to show "Group Policy Objects" and "Policies." Delete both of these folders.

    Step 6
    Exit the Registry Editor and restart the computer. After the computer restarts, the Domain Group Policy will no longer be in effect.

    Hope this helps with your query,


    --If the reply is helpful, please Upvote and Accept as answer--