Fantastic article! I really need to figure out how to use WiX Toolset. I was able to modify your Branding.ps1 script to include more modifications to HKLM and NTUSER.DAT
Write-Host "Setting Registry Settings"
reg.exe add "HKLM\SOFTWARE\Policies\Microsoft\Windows\CloudContents" /V DisableWindowsConsumerFeatures /T REG_DWORD /D 1 /f | Out-Host
reg.exe add "HKLM\SOFTWARE\Policies\Microsoft\Internet Explorer\Main" /V DisableFirstRunCustomize /T REG_DWORD /D 1 /f | Out-Host
reg.exe add "HKLM\SOFTWARE\Policies\Microsoft\Windows\Personalization" /V LockScreenImage /T REG_EXPAND_SZ /D "%SystemRoot%\Web\Screen\[removed]BG.jpg" /f | Out-Host
reg.exe add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System\CredSSP\Parameters" /V AllowEncryptionOracle /T REG_DWORD /D 2 /f | Out-Host
reg.exe add "HKLM\SOFTWARE\Policies\Microsoft\OneDrive" /V SilentAccountConfig /T REG_DWORD /D 1 /f | Out-Host
reg.exe add "HKLM\SOFTWARE\Policies\Microsoft\OneDrive" /V KFMSilentOptIn /T REG_SZ /D [removed] /f | Out-Host
reg.exe add "HKLM\SOFTWARE\Policies\Microsoft\OneDrive" /V KFMSilentOptInWithNotification /T REG_DWORD /D 0 /f | Out-Host
reg.exe add "HKLM\SOFTWARE\Policies\Microsoft\OneDrive" /V FilesOnDemandEnabled /T REG_DWORD /D 1 /f | Out-Host
reg.exe load HKLM\TempUser "C:\Users\Default\NTUSER.DAT" | Out-Host
reg.exe add "HKLM\TempUser\SOFTWARE\Microsoft\Windows\CurrentVersion\Run" /v MapDrive /t REG_EXPAND_SZ /d "PowerShell.exe -ExecutionPolicy Bypass -windowstyle hidden -command C:\ProgramData\[removed]\MapDrive.ps1" /f | Out-Host
reg.exe add "HKLM\TempUser\SOFTWARE\Microsoft\Windows\CurrentVersion\Themes" /v InstallTheme /t REG_EXPAND_SZ /d "%SystemRoot%\resources\OEM Themes\Autopilot.theme" /f | Out-Host
reg.exe add "HKLM\TempUser\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced\People" /v PeopleBand /t REG_DWORD /d 0 /f | Out-Host
reg.exe add "HKLM\TempUser\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced" /v LaunchTo /t REG_DWORD /d 1 /f | Out-Host
reg.exe add "HKLM\TempUser\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer" /v ShowFrequent /t REG_DWORD /d 0 /f | Out-Host
reg.exe add "HKLM\TempUser\SOFTWARE\Microsoft\Windows\CurrentVersion\Search" /v SearchboxTaskbarMode /t REG_DWORD /d 1 /f | Out-Host
reg.exe add "HKLM\TempUser\SOFTWARE\Microsoft\Windows\CurrentVersion\Ext\Settings\{31D09BA0-12F5-4CCE-BE8A-2923E76605DA}" /v Flags /t REG_DWORD /d 1 /f | Out-Host
reg.exe add "HKLM\TempUser\Control Panel\Desktop" /v LogPixels /t REG_DWORD /d 96 /f | Out-Host
reg.exe add "HKLM\TempUser\Control Panel\Desktop" /v Win8DpiScaling /t REG_DWORD /d 1 /f | Out-Host
reg.exe unload HKLM\TempUser | Out-Host
The OneDrive updater portion is brilliant. I'll be using that again!
Because I'm not familiar with WiX, I have to XCOPY files using a Win32 app, targeting the machine. This includes a logon script (mapped drives) and a folder containing the images for the desktop slideshow.