forked from OCram85/PSCredentialStore
Implement NetAppSGWS
This commit is contained in:
parent
1747bb24a8
commit
2399f227c9
@ -17,6 +17,7 @@ function Disconnect-From {
|
|||||||
- ExchangeHTTPS
|
- ExchangeHTTPS
|
||||||
- FTP
|
- FTP
|
||||||
- NetAppFAS
|
- NetAppFAS
|
||||||
|
- NetAppSGWS
|
||||||
- SCP
|
- SCP
|
||||||
- VMware
|
- VMware
|
||||||
- VMwareCisServer
|
- VMwareCisServer
|
||||||
@ -75,6 +76,7 @@ function Disconnect-From {
|
|||||||
'ExchangeHTTPS',
|
'ExchangeHTTPS',
|
||||||
'FTP',
|
'FTP',
|
||||||
'NetAppFAS',
|
'NetAppFAS',
|
||||||
|
'NetAppSGWS',
|
||||||
'SCP',
|
'SCP',
|
||||||
'VMware',
|
'VMware',
|
||||||
'VMwareCisServer'
|
'VMwareCisServer'
|
||||||
@ -150,6 +152,18 @@ function Disconnect-From {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
'NetAppSGWS' {
|
||||||
|
try {
|
||||||
|
$null = Disconnect-SgwServer -Server $RemoteHost
|
||||||
|
$null = Remove-Variable -Name CurrentSgwServer -Scope Global -ErrorAction 'SilentlyContinue'
|
||||||
|
}
|
||||||
|
|
||||||
|
catch {
|
||||||
|
# Write a error message to the log.
|
||||||
|
Write-Error -Message ('Unable to disconnect from {0} using Type {1}.' -f $RemoteHost, $Type)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
'SCP' {
|
'SCP' {
|
||||||
if ($global:WinSCPSession.Opened) {
|
if ($global:WinSCPSession.Opened) {
|
||||||
Remove-WinSCPSession -WinSCPSession $global:WinSCPSession
|
Remove-WinSCPSession -WinSCPSession $global:WinSCPSession
|
||||||
|
Loading…
Reference in New Issue
Block a user