From d79572a14eff7fd7cec20341b9b8381eb09b7c3f Mon Sep 17 00:00:00 2001 From: root Date: Wed, 28 Jul 2021 04:45:02 -0400 Subject: [PATCH 1/2] SIO-3402 modified: debian/solus-debian-10.json --- debian/solus-debian-10.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/debian/solus-debian-10.json b/debian/solus-debian-10.json index a4150f3..291d26c 100644 --- a/debian/solus-debian-10.json +++ b/debian/solus-debian-10.json @@ -2,7 +2,7 @@ "variables": { "user": "root", "password": "root", - "disk_size": "1000", + "disk_size": "3000", "output_directory": "output/debian", "output_image_name": "solus-debian-10" }, @@ -13,7 +13,7 @@ "vm_name": "{{user `output_image_name`}}.qcow2", "type": "qemu", "qemuargs": [ - [ "-m", "2048m" ] + [ "-m", "3072m" ] ], "format": "qcow2", "headless": true, From 7c21eb69cae98594953d535701ae95732997d30b Mon Sep 17 00:00:00 2001 From: root Date: Tue, 9 Nov 2021 07:36:12 -0500 Subject: [PATCH 2/2] added script removing password complexity requirements from Windows images new file: windows/scripts/disable-password-complexity.ps1 modified: windows/windows-2019.json modified: windows/windows-2022.json --- windows/scripts/disable-password-complexity.ps1 | 6 ++++++ windows/windows-2019.json | 3 ++- windows/windows-2022.json | 3 ++- 3 files changed, 10 insertions(+), 2 deletions(-) create mode 100644 windows/scripts/disable-password-complexity.ps1 diff --git a/windows/scripts/disable-password-complexity.ps1 b/windows/scripts/disable-password-complexity.ps1 new file mode 100644 index 0000000..c631241 --- /dev/null +++ b/windows/scripts/disable-password-complexity.ps1 @@ -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 diff --git a/windows/windows-2019.json b/windows/windows-2019.json index 3c3a3fe..343cb40 100644 --- a/windows/windows-2019.json +++ b/windows/windows-2019.json @@ -67,7 +67,8 @@ "provisioners": [ { "scripts": [ - "windows/scripts/debloat-windows.ps1" + "windows/scripts/debloat-windows.ps1", + "windows/scripts/disable-password-complexity.ps1" ], "type": "powershell" }, diff --git a/windows/windows-2022.json b/windows/windows-2022.json index 1172bad..695a0f9 100644 --- a/windows/windows-2022.json +++ b/windows/windows-2022.json @@ -68,7 +68,8 @@ "provisioners": [ { "scripts": [ - "windows/scripts/debloat-windows.ps1" + "windows/scripts/debloat-windows.ps1", + "windows/scripts/disable-password-complexity.ps1" ], "type": "powershell" },