Share via


Uninstall method of the PS_RemoteAccess class

This cmdlet uninstalls DirectAccess and VPN service (both remote access VPN and site-to-site VPN).

Syntax

uint32 Uninstall(
  [in] string  VpnType,
  [in] string  EntrypointName,
  [in] string  ComputerName,
  [in] boolean Force
);

Parameters

VpnType [in]

The type of VPN to uninstall. You can set this value to Vpn or VpnS2S.

EntrypointName [in]

Entrypoint refers to the identity of a site in a multi-site deployment where VPN needs to be uninstalled. It is not applicable to DA. If entrypoint is not specified then the entrypoint to which the server on which the cmdlet is executed belongs is used. The server could also be represented using the ComputerName parameter. If both entrypoint and computername are specified and the ComputerName doesn't belong to the site represented by the entrypoint then the entrypoint takes precedence and VPN is uninstalled at the site indicated by it. Note that in a multi-site deployment case VPN can only be uninstalled one site at a time.

ComputerName [in]

The IP address or hostname of the machine on which the remote access server machine specific tasks should be executed.

Force [in]

Switch parameter used to suppress user confirmation prompts for the following conditions. When suppressed the cmdlet assumes user confirmation for the below mentioned changes 1. Uninstall of Remote Access after which users will not be able to connect remotely to corpnet. 2. If NLS is on DA server then uninstallation will lead to decommissioning of the NLS URL and clients that have not received updated policies will always be detected to be outside corpnet and will not be able to access corp resources when inside corpnet.

Requirements

Minimum supported client
None supported
Minimum supported server
Windows Server 2012
Namespace
Root\Microsoft\Windows\RemoteAccess
MOF
RAMgmtPSProvider.mof
DLL
RAMgmtPSProvider.dll

See also

PS_RemoteAccess