Share via


DisconnectByUserName method of the PS_VpnUserLocal class

Disconnects the specified user.

Syntax

uint32 DisconnectByUserName(
  [in]  string UserName[],
  [out] uint32 StatusCodes[]
);

Parameters

UserName [in]

Array of user names to disconnect

StatusCodes [out]

Error codes returned by the internal RPC APIs

Requirements

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

See also

PS_VpnUserLocal