diff --git a/src/Connection/Connect-To.ps1 b/src/Connection/Connect-To.ps1 index b7e1abb..e587c6a 100644 --- a/src/Connection/Connect-To.ps1 +++ b/src/Connection/Connect-To.ps1 @@ -175,7 +175,7 @@ function Connect-To { switch ($Type) { "CiscoUcs" { try { - $handle = Connect-Ucs -Name $RemoteHost -Credential $creds -ErrorAction Stop + $handle = Connect-Ucs -Name $RemoteHost -Credential $creds -ErrorAction Stop -NotDefault $ExecutionContext.SessionState.PSVariable.Set("DefaultUcs", $handle) }