Get-SCSMManagementGroupConnection
Gets all management group connections.
Get-SCSMManagementGroupConnection []
Get-SCSMManagementGroupConnection
[-ComputerName] <String[]>
[<CommonParameters>]
Get-SCSMManagementGroupConnection
[-Id] <Guid[]>
[<CommonParameters>]
Get-SCSMManagementGroupConnection
[-ManagementGroupName] <String[]>
[<CommonParameters>]
The Get-SCSMManagementGroupConnection cmdlet retrieves all management group connections, including the IsActive state of these connections. Only one connection will have its IsActive state set to True, because only one connection can be active at any time.
PS C:\>Get-SCSMManagementGroupConnection
ManagementServerName ManagementGroupName Domain UserName IsActive
-------------------- ------------------- ------ -------- --------
localhost MyManagementGroup True
This command retrieves all the available management group connections.
Specifies a computer with which to establish a connection. The computer must be running the System Center Data Access service. The default value is the computer for the current management group connection.
Valid formats include a NetBIOS name, an IP address, or a fully qualified domain name (FQDN). To specify the local computer, type the computer name, "localhost", or a dot (.).
Type: | System.String[] |
Position: | 1 |
Default value: | Localhost |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Specifies the ID of a management group for which to retrieve connections.
Type: | System.Guid[] |
Position: | 1 |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Specifies the names of the management groups for which to retrieve connections.
Type: | System.String[] |
Position: | 1 |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
System.String
You can pipe a computer name to the ComputerName parameter of the Get-SCSMManagementGroupConnection cmdlet.
SessionObject
This cmdlet generates a SessionObject object.