fix connection params
This commit is contained in:
parent
3d90d912ee
commit
b99d308b82
@ -177,7 +177,7 @@ function Connect-To {
|
|||||||
switch ($Type) {
|
switch ($Type) {
|
||||||
"CiscoUcs" {
|
"CiscoUcs" {
|
||||||
try {
|
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)
|
$ExecutionContext.SessionState.PSVariable.Set('DefaultUcs', $handle)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user