The following article lists the steps that you must follow to run the attached bin files to remove the Windows Updates and to remove the provisioned Apps before you create a clean Sysprep image for Windows 10 or Windows 8.1 managed computers for Ghost Solutions Suite3.x
Set-up: Ghost Solution Suite version 3.x, Imaging for Windows 10 or 8.1
Following are the ways to disable updates and remove Apps:
DisableWindowsAppsUpdates.bin
” into the Ghost Solution Suite console.Import the“RemoveAppsForSysprep.bin
” into the Ghost Solution Suite console.
Run the imported job on managed client using “Specific user” option on Client Run Environment while the respective “Specific user” should be logged-in while run.
Repeat Step 2 for all users on the client by changing “Specific user” for every run with respective user logged-in.
PowerShell -NoProfile -ExecutionPolicy Unrestricted -Command "& {Start-Process PowerShell -ArgumentList '-NoProfile -ExecutionPolicy Unrestricted -Command ""Set-ItemProperty -Path REGISTRY::HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Policies\System -Name ConsentPromptBehaviorAdmin -Value 0""' -Verb RunAs | Out-Null}";
PowerShell -NoProfile -ExecutionPolicy Unrestricted -Command "& {Start-Process PowerShell -ArgumentList '-NoProfile -ExecutionPolicy Unrestricted -Command ""New-Item -Path Registry::HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\WindowsStore""' -Verb RunAs | Out-Null}";
PowerShell -NoProfile -ExecutionPolicy Unrestricted -Command "& {Start-Process PowerShell -ArgumentList '-NoProfile -ExecutionPolicy Unrestricted -Command ""Set-ItemProperty -Path Registry::HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\WindowsStore -Name AutoDownload -Value 2 -Type DWORD -Force""' -Verb RunAs | Out-Null}";
PowerShell -NoProfile -ExecutionPolicy Unrestricted -Command "& {Start-Process PowerShell -ArgumentList '-NoProfile -ExecutionPolicy Unrestricted -Command ""Get-AppxPackage -AllUsers | Remove-AppxPackage""' -Verb RunAs | Out-Null}";
PowerShell -NoProfile -ExecutionPolicy Unrestricted -Command "& {Start-Process PowerShell -ArgumentList '-NoProfile -ExecutionPolicy Unrestricted -Command ""Get-AppXProvisionedPackage -Online | Remove-AppxProvisionedPackage -Online""' -Verb RunAs | Out-Null}";