mirror of
https://github.com/dockur/windows.git
synced 2026-08-03 12:37:20 +01:00
fix: Remove local account command from domain installs (#1931)
This commit is contained in:
@@ -574,6 +574,18 @@ updateXML() {
|
|||||||
return 1
|
return 1
|
||||||
fi
|
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
|
elif [ -n "$workgroup" ]; then
|
||||||
|
|
||||||
if ! updateWorkgroup "$asset" "$workgroup"; then
|
if ! updateWorkgroup "$asset" "$workgroup"; then
|
||||||
|
|||||||
Reference in New Issue
Block a user