VMware Communities > Blogs > John Tuffin's Blog > 2008 > April

Blog Posts

John Tuffin's Blog : April 21, 2008

Previous Next

0

Returning the product information about the ESX host with a simple command

Get-VMHost | % { (Get-View $_.ID).Config.Product }

0 Comments Permalink
0

Thanks to LucD on the forum for showing me this little trick today. To prompt for a username and password in get-viserver pass a -credentials argument to the command. For example

get-viserver <Virtual Center Server Name> -Credentials (get-credential)

that will prompt for a username and password rather than having to put it into the script.

0 Comments Permalink