13 lines
329 B
PowerShell
13 lines
329 B
PowerShell
function Disconnect-GpfsServer {
|
|
[CmdletBinding()]
|
|
param()
|
|
|
|
if (-not $script:GpfsSession) {
|
|
Write-Warning 'No active GPFS session.'
|
|
return
|
|
}
|
|
|
|
$server = $script:GpfsSession.Server
|
|
$script:GpfsSession = $null
|
|
Write-Host "Disconnected from GPFS server: $server" -ForegroundColor Yellow
|
|
}
|