Disable removal of PowerShell modules
This commit is contained in:
parent
6fbacee204
commit
7549d99514
1 changed files with 0 additions and 9 deletions
|
@ -411,14 +411,5 @@ class Context {
|
||||||
Write-Information "Reset power plan to original state";
|
Write-Information "Reset power plan to original state";
|
||||||
powercfg /S $originalScheme;
|
powercfg /S $originalScheme;
|
||||||
}
|
}
|
||||||
|
|
||||||
Write-Information "Removing PowerShell Modules";
|
|
||||||
Remove-Module "PSWindowsUpdate";
|
|
||||||
Remove-Module "KnownFolders";
|
|
||||||
Remove-Module "PinnedItem";
|
|
||||||
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