Clean up all prerequisites

This commit is contained in:
Manuel Thalmann 2023-08-01 13:19:27 +02:00
parent 934742f023
commit cf065edc4f

View file

@ -412,5 +412,11 @@ class Context {
Write-Information "Reset power plan to original state";
powercfg /S $originalScheme;
}
Write-Information "Removing PowerShell Modules";
Uninstall-Module -Force "PSWindowsUpdate";
Uninstall-Module -Force "KnownFolders";
powershell -c "Uninstall-Module -Force 'PinnedItem'";
Remove-Item -Force ((Get-PackageProvider NuGet).ProviderPath);
}
}