1
0
mirror of https://github.com/dockur/windows.git synced 2026-07-27 21:42:36 +07:00

fix: Remove local account command from domain installs (#1931)

This commit is contained in:
Kroese
2026-07-21 20:36:00 +02:00
committed by GitHub
parent 603fe5e491
commit 742f0bddee
+12
View File
@@ -574,6 +574,18 @@ updateXML() {
return 1
fi
if ! sed -i -E '
/<SynchronousCommand([[:space:]>])/ {
:command
N
/<\/SynchronousCommand>/!b command
/<Description>Password Never Expires<\/Description>/d
}
' "$asset"; then
error "Failed to remove local account commands from answer file!"
return 1
fi
elif [ -n "$workgroup" ]; then
if ! updateWorkgroup "$asset" "$workgroup"; then