Update StackMonkey.ps1
This commit is contained in:
@@ -221,7 +221,7 @@
|
||||
|
||||
# Attempt to uninstall all versions of SVSMSP
|
||||
try {
|
||||
Uninstall-Module -Name SVSMSP -AllVersions -Force -Confirm:$false -ErrorAction Stop
|
||||
Uninstall-Module -Name SVSMSP -AllVersions -Force -ErrorAction Stop
|
||||
Write-LogHybrid "SVSMSP module uninstalled from system." "Success" "SVSModule"
|
||||
}
|
||||
catch {
|
||||
@@ -237,7 +237,7 @@
|
||||
# Remove the custom repository if registered
|
||||
if (Get-PSRepository -Name SVS_Repo -ErrorAction SilentlyContinue) {
|
||||
try {
|
||||
Unregister-PSRepository -Name SVS_Repo -Confirm:$false -ErrorAction Stop
|
||||
Unregister-PSRepository -Name SVS_Repo -ErrorAction Stop
|
||||
Write-LogHybrid "SVS_Repo repository unregistered." "Success" "SVSModule"
|
||||
}
|
||||
catch {
|
||||
@@ -248,7 +248,7 @@
|
||||
# Finally, remove it from the current session if loaded
|
||||
if (Get-Module -Name SVSMSP) {
|
||||
try {
|
||||
Remove-Module SVSMSP -Force -Confirm:$false -ErrorAction Stop
|
||||
Remove-Module SVSMSP -Force -ErrorAction Stop
|
||||
Write-LogHybrid "SVSMSP module removed from current session." "Success" "SVSModule"
|
||||
}
|
||||
catch {
|
||||
|
||||
Reference in New Issue
Block a user