Public/Get-bConnectServerState.ps1

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
Function Get-bConnectServerState() {
    <#
        .Synopsis
            Get baramundi server and sub services state.
        .Outputs
            ServerState object representing the current state of the baramundi server and its sub services
    #>


    $_connectVersion = Get-bConnectVersion
    If($_connectVersion -ge "1.0") {
        return Invoke-bConnectGet -Controller "ServerState" -Version $_connectVersion
    } else {
        return $false
    }
}