[Webinar] Streamline your web hosting managementRegister Today

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1170
  • Last Modified:

VMware PowerCLI

I want to get a 10,000 foot snapshot of a new VMWare environment. I'm using:


Get-VM | Export-Csv c:\report.csv -NoTypeInformation

Which seems to give me a lot of information. But I'm getting:

WARNING: 'Description' property is obsolete. Use 'Notes' instead.
WARNING: 'HardDisks' property is obsolete. Use 'Get-HardDisk' cmdl
WARNING: 'NetworkAdapters' property is obsolete. Use 'Get-NetworkA
cmdlet instead.
WARNING: 'UsbDevices' property is obsolete. Use 'Get-UsbDevice' cm
WARNING: 'CDDrives' property is obsolete. Use 'Get-CDDrive' cmdlet
WARNING: 'FloppyDrives' property is obsolete. Use 'Get-FloppyDrive
instead.
WARNING: 'Host' property is obsolete. Use 'VMHost' instead.
WARNING: 'HostId' property is obsolete. Use 'VMHostId' instead.


Where  do I go or what do I need to do to correct this or is this an error I can ignore?
0
xmouser
Asked:
xmouser
  • 2
1 Solution
 
Andrew Hancock (VMware vExpert / EE MVE^2)VMware and Virtualization ConsultantCommented:
you want to get what?
0
 
xmouserAuthor Commented:
Are these errors I can ignore or where do I go to coorect them?
0
 
Andrew Hancock (VMware vExpert / EE MVE^2)VMware and Virtualization ConsultantCommented:
you can ignore those errors, it's just stating advising you to use new commands.
0
 
cking22001Commented:
Maybe, but the real question is why using VMWares cmdlets do we see the warnings.

To be clear, I am not using those, their cmdlets are.

For example, simply getting a vm and looking at the output..

PowerCLI C:\Windows\system32> get-vm xxx | fl

WARNING: 'HardDisks' property is obsolete. Use 'Get-HardDisk' cmdlet instead.
WARNING: 'CDDrives' property is obsolete. Use 'Get-CDDrive' cmdlet instead.
WARNING: 'FloppyDrives' property is obsolete. Use 'Get-FloppyDrive' cmdlet instead.
WARNING: 'NetworkAdapters' property is obsolete. Use 'Get-NetworkAdapter' cmdlet instead.
WARNING: 'UsbDevices' property is obsolete. Use 'Get-UsbDevice' cmdlet instead.
WARNING: 'Host' property is obsolete. Use 'VMHost' instead.

VCenter at 5.0.0
PowerCLI Version
----------------
   VMware vSphere PowerCLI 5.0.1 build 581491
---------------
Snapin Versions
---------------
   VMware AutoDeploy PowerCLI Component 5.0 build 544967
   VMware ImageBuilder PowerCLI Component 5.0 build 544967
   VMware License PowerCLI Component 5.0 build 544881
   VMware vSphere PowerCLI Component 5.0 build 581435
0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now