Remove modules before uninstalling
This commit is contained in:
parent
310d0e7733
commit
b7d87d1861
1 changed files with 3 additions and 0 deletions
|
@ -414,6 +414,9 @@ class Context {
|
|||
}
|
||||
|
||||
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'";
|
||||
|
|
Loading…
Reference in a new issue