The Get-MDMServercmdlet returns a collection of System Center Mobile Device Manager (MDM) servers.
Syntax
Get-MDMServer [[-Identity] <String[]>] [<CommonParameters>] Get-MDMServer [-ServerRole <MDMServerRole[]>] [<CommonParameters>] |
Parameters
The following describes the Get-MDMServercmdlet parameters.
- Identity <String[]>
-
The name of a specific MDM server.
- ServerRole <MDMServerRole[]>
-
Specifies the type of server to return. Possible values are DeviceManagement, Enrollment, Gateway, SelfService, and All.
- CommonParameters
-
This cmdlet supports the common parameters: -Verbose, -Debug, -ErrorAction, -ErrorVariable, and -OutVariable. For more information, at the MDM Shell prompt, type get-help about_commonparameters.
Input Type
The Get-MDMServercmdlet accepts a string through the pipeline that identifies a server or an object that has the property, identity.
Output Type
The Get-MDMServercmdlet returns a collection of MDMServerobjects. To see all the properties for this object, at the MDM Shell prompt, type Get-MDMServer | Get-Member.
Examples
This Get-MDMServercommand example returns information about the server, Gateway01.
![]() |
|
---|---|
C:\PS>Get-MDMServer -identity Gateway01 |
Cmdlet Help
To view this information online, at the MDM Shell prompt, type:
get-help Get-MDMServer -detailed, or get-help Get-MDMServer -full