Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Password complexity requirements disabling #39

Open
wants to merge 4 commits into
base: public
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions windows/scripts/disable-password-complexity.ps1
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
secedit /export /cfg c:\new.cfg #carriage return
#start-sleep -s 5 #carriage return
((get-content c:\new.cfg) -replace ('PasswordComplexity = 1', 'PasswordComplexity = 0')) | Out-File c:\new.cfg #carriage return
secedit /configure /db $env:windir\security\new.sdb /cfg c:\new.cfg /areas SECURITYPOLICY #carriage return
Rename-Item c:\new.cfg c:\new.cfg.txt #carriage return
rm c:\new.cfg.txt
3 changes: 2 additions & 1 deletion windows/windows-2019.json
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,8 @@
"provisioners": [
{
"scripts": [
"windows/scripts/debloat-windows.ps1"
"windows/scripts/debloat-windows.ps1",
"windows/scripts/disable-password-complexity.ps1"
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We will no use it by default.

],
"type": "powershell"
},
Expand Down
3 changes: 2 additions & 1 deletion windows/windows-2022.json
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,8 @@
"provisioners": [
{
"scripts": [
"windows/scripts/debloat-windows.ps1"
"windows/scripts/debloat-windows.ps1",
"windows/scripts/disable-password-complexity.ps1"
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We will no use it by default.

],
"type": "powershell"
},
Expand Down