The Stop-MDMVPNServicecmdlet stops the virtual private network (VPN) service on the specified Mobile Device Manager (MDM) Gateway Server.
All VPN connections close when the VPN service state stops. You can still manage the specified MDM Gateway Server remotely.
Syntax
Stop-MDMVPNService [-Name] <String> [-WhatIf] [-Confirm] [<CommonParameters>] |
Parameters
The following describes the Stop-MDMVPNServicecmdlet parameters.
- Name <String>
-
Specifies the name of the computer that is running MDM Gateway Server for which the VPN service is to be stopped. The nameparameter can be the logical name or the fully qualified domain name (FQDN).
- WhatIf
-
Informs you of what changes would be made if the action were to be performed (the cmdlet is not executed).
- Confirm
-
Prompts you for confirmation before the cmdlet executes.
- 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 Stop-MDMVPNServicecmdlet accepts a string through the pipeline, or an object that has the property, name, that specifies the name of the computer that is running MDM Gateway Server.
Output Type
None
Examples
This Stop-MDMVPNServicecommand example stops the VPN service for MDM Gateway Server, Gateway1.
Copy Code | |
---|---|
C:\PS>Stop-MDMVPNService -Server Gateway1 |
Cmdlet Help
To view this information online, at the MDM Shell prompt, type:
get-help Stop-MDMVPNService -detailed, or get-help Stop-MDMVPNService -full