Windows Server · Risk: Low · Documentation Verified
Last verified: 2026-10-26
Microsoft Hyper-V reference: Gets members of a routing domain. The syntax and selected example below are adapted from the pinned Windows Server 2025 reference. Module availability, target configuration and delegated permissions determine whether it can run in your environment. Documentation and parameter text: Microsoft, CC BY 4.0; formatting adapted by Cmdlet World. No execution testing is claimed.
Use an account with the target resource permissions documented for Get-VMNetworkAdapterRoutingDomainMapping. Modifying administrative cmdlets may require elevation or delegated administration. This catalog does not assert that ordinary users can execute the command.
Supported environments
Windows / Hyper-V · Windows Server 2025 documentation; feature/module prerequisites apply
Parameters
-CimSession
Runs the cmdlet in a remote session or on a remote computer. Enter a computer name or a session object, such as the output of a New-CimSession or Get-CimSession cmdlet. The default is the current session on the local computer.
-ComputerName
Specifies an array of Hyper-V hosts. The cmdlet gets the members of a routing domain on the Hyper-V hosts that you specify.
-Credential
Specifies one or more user accounts that have permission to perform this action. The default is the current user.
-ManagementOS (required)
Indicates that the cmdlet operates on the parent partition or host operating system.
-RoutingDomainID
Specifies the ID of a routing domain. The ID of a routing domain is a system-assigned GUID. The cmdlet gets the members of the routing domain that you specify.
-RoutingDomainName
Specifies the name of a routing domain. The cmdlet gets the members of the routing domain that you specify.
-VM (required)
Specifies an array of virtual machine objects. The cmdlet gets the members of the routing domain from the network interfaces that belong to the virtual machines that you specify. To obtain a virtual machine object, use the Get-VM cmdlet.
-VMName
Specifies an array of friendly names of virtual machines. The cmdlet gets the members of the routing domain from the network interfaces that belong to the virtual machines that you specify.
-VMNetworkAdapter (required)
Specifies an array of virtual network adapters as a VMNetworkAdapterBase object. The cmdlet gets the members of the routing domain on the adapters that you specify. To obtain a network adapter, use the Get-VMNetworkAdapter cmdlet.
-VMNetworkAdapterName
Specifies the name of a virtual network adapter. The cmdlet gets the members of the routing domain on the adapter that you specify.
-VMSnapshot (required)
Specifies a snapshot as a VMSnapshot object. The cmdlet gets the members of the routing domain for network adapters that belong to the snapshot that you specify. To obtain a snapshot object, use the Get-VMSnapshot cmdlet.
Prerequisites
Windows with the Hyper-V module and the Windows feature or management tools that provide it. Confirm target connectivity and version compatibility using the linked Microsoft reference.
Security considerations
This is a read-oriented cmdlet; protect any sensitive results and check the documented effects of your selected parameters.
This command gets the members of the routing domain from the network adapter named Internal NIC that belongs to the virtual machine named Gateway01. Source: Microsoft, CC BY 4.0; transcript prompt/output removed. This example was not executed.