Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Adds a route to be plumbed for a VPN profile.
Syntax
uint32 Add(
[in] string ConnectionName,
[in] string DestinationPrefix,
[in] uint32 RouteMetric,
[in] boolean PassThru,
[in] boolean AllUserConnection,
[out] MSFT_NetRoute cmdletOutput
);
Parameters
-
ConnectionName [in]
-
The name of the VPN connection profile to modify.
-
DestinationPrefix [in]
-
The destination prefix of the route.
-
RouteMetric [in]
-
The route metric.
-
PassThru [in]
-
true to return the MSFT_NetRoute object; otherwise false.
-
AllUserConnection [in]
-
True if the VPN connection profile is for all users; false if it is for a single user.
-
cmdletOutput [out]
-
When this method returns, contains the MSFT_NetRoute object. The destination prefix and metric field are populated.
Requirements
| Minimum supported client |
Windows 8 |
| Minimum supported server |
Windows Server 2012 |
| Namespace |
Root\Microsoft\Windows\RemoteAccess\Client |
| MOF |
|
| DLL |
|