diff --git a/assets/win11x64-enterprise-eval.xml b/assets/win11x64-enterprise-eval.xml
index 39caac30..a3548014 100644
--- a/assets/win11x64-enterprise-eval.xml
+++ b/assets/win11x64-enterprise-eval.xml
@@ -358,7 +358,7 @@
5
- cmd /C wmic useraccount where name="Docker" set PasswordExpires=false
+ powershell.exe -ExecutionPolicy Unrestricted -NoLogo -NoProfile -NonInteractive set-localuser -name "Docker" -passwordneverexpires 1
Password Never Expires
diff --git a/assets/win11x64-enterprise.xml b/assets/win11x64-enterprise.xml
index 1c18bf74..99d86a5c 100644
--- a/assets/win11x64-enterprise.xml
+++ b/assets/win11x64-enterprise.xml
@@ -361,7 +361,7 @@
5
- cmd /C wmic useraccount where name="Docker" set PasswordExpires=false
+ powershell.exe -ExecutionPolicy Unrestricted -NoLogo -NoProfile -NonInteractive set-localuser -name "Docker" -passwordneverexpires 1
Password Never Expires
diff --git a/assets/win11x64-iot.xml b/assets/win11x64-iot.xml
index 3ee4107e..699d1763 100644
--- a/assets/win11x64-iot.xml
+++ b/assets/win11x64-iot.xml
@@ -361,7 +361,7 @@
5
- cmd /C wmic useraccount where name="Docker" set PasswordExpires=false
+ powershell.exe -ExecutionPolicy Unrestricted -NoLogo -NoProfile -NonInteractive set-localuser -name "Docker" -passwordneverexpires 1
Password Never Expires
diff --git a/assets/win11x64-ltsc.xml b/assets/win11x64-ltsc.xml
index 5bc51871..20cbfd49 100644
--- a/assets/win11x64-ltsc.xml
+++ b/assets/win11x64-ltsc.xml
@@ -361,7 +361,7 @@
5
- cmd /C wmic useraccount where name="Docker" set PasswordExpires=false
+ powershell.exe -ExecutionPolicy Unrestricted -NoLogo -NoProfile -NonInteractive set-localuser -name "Docker" -passwordneverexpires 1
Password Never Expires
diff --git a/assets/win11x64.xml b/assets/win11x64.xml
index f3fc68c4..4919df1e 100644
--- a/assets/win11x64.xml
+++ b/assets/win11x64.xml
@@ -361,7 +361,7 @@
5
- cmd /C wmic useraccount where name="Docker" set PasswordExpires=false
+ powershell.exe -ExecutionPolicy Unrestricted -NoLogo -NoProfile -NonInteractive set-localuser -name "Docker" -passwordneverexpires 1
Password Never Expires
diff --git a/assets/win2025-eval.xml b/assets/win2025-eval.xml
index d86f1522..d781af70 100644
--- a/assets/win2025-eval.xml
+++ b/assets/win2025-eval.xml
@@ -257,7 +257,7 @@
5
- cmd /C wmic useraccount where name="Docker" set PasswordExpires=false
+ powershell.exe -ExecutionPolicy Unrestricted -NoLogo -NoProfile -NonInteractive set-localuser -name "Docker" -passwordneverexpires 1
Password Never Expires
diff --git a/assets/win2025.xml b/assets/win2025.xml
index d488ae2d..f6974f65 100644
--- a/assets/win2025.xml
+++ b/assets/win2025.xml
@@ -260,7 +260,7 @@
5
- cmd /C wmic useraccount where name="Docker" set PasswordExpires=false
+ powershell.exe -ExecutionPolicy Unrestricted -NoLogo -NoProfile -NonInteractive set-localuser -name "Docker" -passwordneverexpires 1
Password Never Expires
diff --git a/src/install.sh b/src/install.sh
index dc8cc0a8..46bc3fd0 100644
--- a/src/install.sh
+++ b/src/install.sh
@@ -790,6 +790,7 @@ updateXML() {
user=$(echo "$USERNAME" | sed 's/[^[:alnum:]@!._-]//g')
if [ -n "$user" ]; then
+ sed -i "s/-name \"Docker\"/-name \"$user\"/g" "$asset"
sed -i "s/Docker<\/Name>/$user<\/Name>/g" "$asset"
sed -i "s/where name=\"Docker\"/where name=\"$user\"/g" "$asset"
sed -i "s/Docker<\/FullName>/$user<\/FullName>/g" "$asset"