PowerShell List
hello everyone,
i'm trying list vms in scvmm
i'm using
get-vm -vmmserver vmm01.mydomain.tld | export-csv c:\listvm.csv
but returns info each vm, return properties want, way (that know) properties using:
get-vm -vmmserver vmm01.mydomain.tld | format-list -property name, owner, description, operatingsystem, cpucount, memory, virtualizationplatform, hostname, status
but if add
get-vm -vmmserver vmm01.mydomain.tld | format-list -property name, owner, description, operatingsystem, cpucount, memory, virtualizationplatform, hostname, status | export-csv c:\listvm.csv
now have mess...
any way working nice , clean?
thank you
get-vm -vmmserver vmm01.mydomain.tld | select name, owner, description, operatingsystem, cpucount, memory, virtualizationplatform, hostname, status | export-csv c:\listvm.csv
thank you.
Windows Server > Windows PowerShell
Comments
Post a Comment