mirror of
https://github.com/MengMengCode/CLICD.git
synced 2026-08-05 05:36:07 +08:00
Compare commits
2 Commits
bae028ade4
...
a28ae727f3
| Author | SHA1 | Date | |
|---|---|---|---|
| a28ae727f3 | |||
| 57d6b19c05 |
@@ -1906,7 +1906,7 @@ func windowsAutounattendXML(hostname, adminPassword string, windows11 bool) stri
|
|||||||
hostname = "clicd-win"
|
hostname = "clicd-win"
|
||||||
}
|
}
|
||||||
hostname = sanitizeWindowsComputerName(hostname)
|
hostname = sanitizeWindowsComputerName(hostname)
|
||||||
setupCommand := `cmd.exe /c if exist C:\CLICD\FirstLogon.ps1 (powershell.exe -NoProfile -ExecutionPolicy Bypass -File C:\CLICD\FirstLogon.ps1) else (for %%d in (D E F G H I J K L M N O P Q R S T U V W X Y Z) do @if exist %%d:\FirstLogon.ps1 powershell.exe -NoProfile -ExecutionPolicy Bypass -File %%d:\FirstLogon.ps1)`
|
setupCommand := `cmd.exe /c if exist C:\CLICD\FirstLogon.ps1 (powershell.exe -NoProfile -ExecutionPolicy Bypass -File C:\CLICD\FirstLogon.ps1) else (for %d in (D E F G H I J K L M N O P Q R S T U V W X Y Z) do @if exist %d:\FirstLogon.ps1 powershell.exe -NoProfile -ExecutionPolicy Bypass -File %d:\FirstLogon.ps1)`
|
||||||
compatibilityCommands := ""
|
compatibilityCommands := ""
|
||||||
if windows11 {
|
if windows11 {
|
||||||
compatibilityCommands = `
|
compatibilityCommands = `
|
||||||
|
|||||||
Reference in New Issue
Block a user