Removed onedrivesetup removal from Invoke-WinUtilISOScript.ps1 (#4350)

* Removed onedrivesetup removal Invoke-WinUtilISOScript.ps1

* Added OneDrive removal to autounattend.xml
This commit is contained in:
Gabi
2026-04-14 18:04:16 +03:00
committed by GitHub
parent eb08eae357
commit 8378fd5377
2 changed files with 6 additions and 9 deletions

View File

@@ -459,6 +459,9 @@ $scripts = @(
Start-Process -FilePath (Join-Path $viveDir 'ViVeTool.exe') -ArgumentList '/disable /id:47205210' -Wait -NoNewWindow;
Remove-Item -Path $viveDir -Recurse -Force;
};
{
Start-Process C:\Windows\System32\OneDriveSetup.exe -ArgumentList /uninstall
};
{
if( (Get-BitLockerVolume -MountPoint $Env:SystemDrive).ProtectionStatus -eq 'On' ) {
Disable-BitLocker -MountPoint $Env:SystemDrive;