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



ok, found solution

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

Popular posts from this blog

Round Robin is killing performance on our network

WMI Repository 4GB limit - Win 2003 Ent Question

Change home folder default permission?