VMware Cloud Community
Subatomic
Enthusiast
Enthusiast
Jump to solution

Displaying the methods and properties for Get-networkadapter cmdlet

I am trying to display the methods and properties associated with the get-networkadapter cmdlet.

I attempt the following:

get-viserver servername

get-networkadapter | gm

and get the following error

Get-NetworkAdapter : Please specify Virtual Machine(s), Snapshot(s), or Template(s) whose devices you want to get.

At line:1 char:19

+ Get-NetworkAdapter <<<< | gm

However the following does work specific to the cmdlet:

get-viserver servername

get-vm | gm

Any advice?

Thanks

SA

If the comments were useful, please consider awarding points for helpful or correct. Thanks - SA -
Reply
0 Kudos
1 Solution

Accepted Solutions
LucD
Leadership
Leadership
Jump to solution

You have to provide a VM to the get-networkadapter cmdlet.

Via a pipe

get-vm | get-networkadapter

or via a parameter

get-networkadapter -VM (get-vm)


Blog: lucd.info  Twitter: @LucD22  Co-author PowerCLI Reference

View solution in original post

Reply
0 Kudos
2 Replies
LucD
Leadership
Leadership
Jump to solution

You have to provide a VM to the get-networkadapter cmdlet.

Via a pipe

get-vm | get-networkadapter

or via a parameter

get-networkadapter -VM (get-vm)


Blog: lucd.info  Twitter: @LucD22  Co-author PowerCLI Reference

Reply
0 Kudos
Subatomic
Enthusiast
Enthusiast
Jump to solution

Thanks it worked.

Points awarded!

Cheers

SA

If the comments were useful, please consider awarding points for helpful or correct. Thanks - SA -
Reply
0 Kudos