Root cause fix: runner.go passed config as unevaluated PS expression via -File mode - scripts received a literal string instead of parsed object. Changed to -ConfigPath; scripts load JSON themselves via shared common.ps1 (Write-Log, Get-Feature, Load-Config). GUI now regenerates runtime config before run so user selections actually reach the scripts. Merged 04-default-profile + 05-personalization into single script (one hive load/unload, no Explorer restart, no hive contention). Deleted Deploy-Windows.ps1 (xetup.exe is sole entry point), 06-scheduled-tasks.ps1 (tasks caused more harm than good), 07-desktop-info.ps1 (replaced by BackInfo long ago). Step ordering: activation moved early, pcIdentity before WU (exit 9 on rename only when rename actually happened). Edge policies split into mandatory (telemetry, first-run) vs recommended (UI preferences user can override). Atera install uses Start-Process -Wait instead of fragile sleep. Updated config.json, tests, DefaultConfig to match current state. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
62 lines
1.4 KiB
JSON
62 lines
1.4 KiB
JSON
{
|
|
"deployment": {
|
|
"pcName": "",
|
|
"pcDescription": "",
|
|
"timezone": "Central Europe Standard Time",
|
|
"profileType": "default"
|
|
},
|
|
"adminAccount": {
|
|
"username": "adminx9"
|
|
},
|
|
"activation": {
|
|
"productKey": ""
|
|
},
|
|
"software": {
|
|
"install": [
|
|
{ "name": "7-Zip", "wingetId": "7zip.7zip" },
|
|
{ "name": "Adobe Acrobat Reader", "wingetId": "Adobe.Acrobat.Reader.64-bit" },
|
|
{ "name": "OpenVPN Connect", "wingetId": "OpenVPNTechnologies.OpenVPNConnect" }
|
|
]
|
|
},
|
|
"steps": {
|
|
"adminAccount": true,
|
|
"activation": true,
|
|
"bloatware": true,
|
|
"software": true,
|
|
"systemRegistry": true,
|
|
"defaultProfile": true,
|
|
"backinfo": true,
|
|
"network": true,
|
|
"dellUpdate": true,
|
|
"pcIdentity": true,
|
|
"windowsUpdate": true
|
|
},
|
|
"features": {
|
|
"software": {
|
|
"wingetInstalls": true,
|
|
"pdfDefault": true,
|
|
"ateraAgent": true
|
|
},
|
|
"systemRegistry": {
|
|
"systemTweaks": true,
|
|
"edgePolicies": true,
|
|
"oneDriveUninstall": true,
|
|
"powercfg": true,
|
|
"proxyDisable": true
|
|
},
|
|
"defaultProfile": {
|
|
"taskbarTweaks": true,
|
|
"startMenuTweaks": true,
|
|
"explorerTweaks": true
|
|
},
|
|
"dellUpdate": {
|
|
"drivers": true,
|
|
"bios": true
|
|
}
|
|
},
|
|
"bloatware": {
|
|
"keepPackages": [
|
|
"Microsoft.WindowsCalculator"
|
|
]
|
|
}
|
|
}
|