Permalink
Browse files

Added line to remove old omdule from session

  • Loading branch information...
1 parent 196127c commit 4eeff36c5759d750471b8b76f3826c345473d1b8 @chelnak chelnak committed Apr 15, 2016
Showing with 3 additions and 0 deletions.
  1. +3 −0 Get-PowervRA.ps1
View
@@ -120,6 +120,9 @@
if ($PSBoundParameters.ContainsKey('ImportAfterInstall')) {
+ Write-Verbose -Message "Attempting to remove old module from session"
+ Remove-Module -Name "PowervRA" -Force -ErrorAction SilentlyContinue
+
Write-Verbose -Message "Importing module"
Import-Module -Name "PowervRA" -Force

0 comments on commit 4eeff36

Please sign in to comment.