VMware Cloud Community
denjoh44
Enthusiast
Enthusiast
Jump to solution

Powershell version vc virtuel center

Hi,

Can you help me for to have the version of my virtuel center with  a command powershell.

I ask this question because I have vc vsphere 4 and vsphere 5.

when i connect to virtuel center, I would like to know if I am on a virtual center in vsphere 4 or vsphere 5

Thank you for your help

Reply
0 Kudos
1 Solution

Accepted Solutions
Grzesiekk
Expert
Expert
Jump to solution

Hi,

(get-view serviceinstance).Content.About.version

or

(get-view serviceinstance).Content.About.Fullname

if you are working with multi mode:

(get-view -Server $global:DefaultVIServers[0] serviceinstance)Content.About.version

would return for the first vc [1] for second etc.

--- @blog https://grzegorzkulikowski.info

View solution in original post

Reply
0 Kudos
2 Replies
Grzesiekk
Expert
Expert
Jump to solution

Hi,

(get-view serviceinstance).Content.About.version

or

(get-view serviceinstance).Content.About.Fullname

if you are working with multi mode:

(get-view -Server $global:DefaultVIServers[0] serviceinstance)Content.About.version

would return for the first vc [1] for second etc.

--- @blog https://grzegorzkulikowski.info
Reply
0 Kudos
denjoh44
Enthusiast
Enthusiast
Jump to solution

Thank you for uour response

It is exactly what I looked for

Reply
0 Kudos