The Get-MDMGatewayServercmdlet returns a collection of MDMGatewayServerobjects that represent the current gateway-specific settings and the last known configuration status.
You can return the settings for a single computer that is running Mobile Device Manager (MDM) Gateway Server by specifying the gateway name. If you do not specify a name, the command returns the current settings for all computers that are running MDM Gateway Server.
Syntax
Get-MDMGatewayServer [[-Name] <String>] [<CommonParameters>]  | 
Parameters
The following describes the Get-MDMGatewayServercmdlet parameters.
- Name <String>
 - 
Specifies the name of the gateway. The name parameter can be the logical name or the fully qualified domain name (FQDN). If you do not specify a name, the current settings for all computers that are running MDM Gateway Server are returned.
 
- CommonParameters
 - 
This cmdlet supports the common parameters: -Verbose, -Debug, -ErrorAction, -ErrorVariable, and -OutVariable. For more information, at the Mobile Device Manager (MDM) Shell prompt, type get-help about_commonparameters.
 
Input Type
The Get-MDMGatewayServercmdlet accepts a string through the pipeline, or an object that has the property, name, that identifies the specified MDM Gateway Server.
Output Type
The Get-MDMGatewayServercmdlet returns an MDMGatewayServerobject. To see all the properties of this object, at the MDM Shell prompt, type Get-MDMGatewayServer | Get-Member.
Examples
This Get-MDMGatewayServercommand example returns the current settings for all computers that are running MDM Gateway Server.
 Copy Code
 | 
|
|---|---|
C:\PS>Get-MDMGatewayServer  | 
|
This Get-MDMGatewayServercommand example returns the current settings for MDM Gateway Server, Gateway1.
 Copy Code
 | 
|
|---|---|
C:\PS>Get-MDMGatewayServer -name Gateway1  | 
|
Cmdlet Help
To view this information online, at the MDM Shell prompt, type:
get-help Get-MDMGatewayServer -detailed, or get-help Get-MDMGatewayServer -full
See Also