Clean up all prerequisites
This commit is contained in:
parent
934742f023
commit
cf065edc4f
1 changed files with 6 additions and 0 deletions
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue