Remove modules before uninstalling
This commit is contained in:
parent
bfd9b8c0b2
commit
113389beca
|
@ -414,6 +414,9 @@ class Context {
|
||||||
}
|
}
|
||||||
|
|
||||||
Write-Information "Removing PowerShell Modules";
|
Write-Information "Removing PowerShell Modules";
|
||||||
|
Remove-Module "PSWindowsUpdate";
|
||||||
|
Remove-Module "KnownFolders";
|
||||||
|
Remove-Module "PinnedItem";
|
||||||
Uninstall-Module -Force "PSWindowsUpdate";
|
Uninstall-Module -Force "PSWindowsUpdate";
|
||||||
Uninstall-Module -Force "KnownFolders";
|
Uninstall-Module -Force "KnownFolders";
|
||||||
powershell -c "Uninstall-Module -Force 'PinnedItem'";
|
powershell -c "Uninstall-Module -Force 'PinnedItem'";
|
||||||
|
|
Loading…
Reference in a new issue