Remove module gracefully
This commit is contained in:
parent
990c9eb249
commit
74eae2fd11
1 changed files with 1 additions and 2 deletions
|
@ -216,9 +216,8 @@ $backup.actions | % {
|
|||
if ( Test-Path "$($net_default_letter):" ){
|
||||
Remove-PSDrive -Name $net_default_letter
|
||||
}
|
||||
|
||||
# Remove Module
|
||||
Remove-Module -Name $_.type -Force
|
||||
Get-Module -Name "backupscript-$($_.type)" | Remove-Module -Force
|
||||
}
|
||||
}
|
||||
Set-Message "Backup operation done"
|
||||
|
|
Reference in a new issue