Skip to content

Get SdnVMNetworkAdapter

Adam Rudell edited this page Jun 21, 2023 · 4 revisions

Get-SdnVMNetworkAdapter

SYNOPSIS

Retrieves the virtual machine network adapters that are allocated on a hyper-v host

SYNTAX

Local (Default)

Get-SdnVMNetworkAdapter [-VmState <VMState>] [<CommonParameters>]

Remote

Get-SdnVMNetworkAdapter [-ComputerName <String[]>] [-VmState <VMState>] [-Credential <PSCredential>] [-AsJob]
 [-PassThru] [-Timeout <Int32>] [<CommonParameters>]

DESCRIPTION

{{ Fill in the Description }}

EXAMPLES

EXAMPLE 1

Get-SdnVMNetworkAdapter -ComputerName 'Server01','Server02'

EXAMPLE 2

Get-SdnVMNetworkAdapter -ComputerName 'Server01','Server02' -Credential (Get-Credential)

EXAMPLE 3

Get-SdnVMNetworkAdapter -ComputerName 'Server01','Server02' -AsJob

EXAMPLE 4

Get-SdnVMNetworkAdapter -ComputerName 'Server01','Server02' -AsJob -PassThru

EXAMPLE 5

Get-SdnVMNetworkAdapter -ComputerName 'Server01','Server02' -AsJob -PassThru -Timeout 600

PARAMETERS

-ComputerName

Type the NetBIOS name, an IP address, or a fully qualified domain name of one or more remote computers. To specify the local computer, type the computer name, localhost, or a dot (.). When the computer is in a different domain than the user, the fully qualified domain name is required

Type: String[]
Parameter Sets: Remote
Aliases:

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-VmState

{{ Fill VmState Description }}

Type: VMState
Parameter Sets: (All)
Aliases:
Accepted values: Other, Running, Off, Stopping, Saved, Paused, Starting, Reset, Saving, Pausing, Resuming, FastSaved, FastSaving, RunningCritical, OffCritical, StoppingCritical, SavedCritical, PausedCritical, StartingCritical, ResetCritical, SavingCritical, PausingCritical, ResumingCritical, FastSavedCritical, FastSavingCritical

Required: False
Position: Named
Default value: Running
Accept pipeline input: False
Accept wildcard characters: False

-Credential

Specifies a user account that has permission to perform this action. The default is the current user.

Type: PSCredential
Parameter Sets: Remote
Aliases:

Required: False
Position: Named
Default value: [System.Management.Automation.PSCredential]::Empty
Accept pipeline input: False
Accept wildcard characters: False

-AsJob

Switch indicating to trigger a background job to perform the operation.

Type: SwitchParameter
Parameter Sets: Remote
Aliases:

Required: False
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False

-PassThru

Switch indicating to wait for background job completes and display results to current session.

Type: SwitchParameter
Parameter Sets: Remote
Aliases:

Required: False
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False

-Timeout

Specify the timeout duration to wait before job is automatically terminated. If omitted, defaults to 600 seconds.

Type: Int32
Parameter Sets: Remote
Aliases:

Required: False
Position: Named
Default value: 600
Accept pipeline input: False
Accept wildcard characters: False

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.

INPUTS

OUTPUTS

NOTES

RELATED LINKS

Documentation

How To Guides:

Troubleshooting Guides

Learning

Functions

Clone this wiki locally