vShield Edge Version Discovery with PowerCL

June 12, 2013

Table of Contents

It has become clear that when upgrading your vShield manager, the shield edge devices will not be upgrade until you restart them. Sometimes we are caught in a situation where you need to do manual  scheduled upgrades , then you are in good luck this little script will assist you keep track of all the old versions running in your environment. This script is a vSphere PowerCLI script but should work with both vCloud Director or regular vShield installs.

 $report = @()

$VSEs = Get-View -ViewType virtualmachine -Filter @{“name”=”vse”}

foreach ($vSE in $vSEs)


$vSEObject = New-Object PSObject

 Add-Member -MemberType NoteProperty -Name “Name” -Value $VSE.name -InputObject $vSEObject

 Add-Member -MemberType NoteProperty -Name “Version” -Value $VSE.config.vappconfig.product[0].version -InputObject $vSEObject

 Add-Member -MemberType NoteProperty -Name “Network0” -Value (Get-View -id $VSE.network[0].tostring()).name -InputObject $vSEObject

 Add-Member -MemberType NoteProperty -Name “Network1” -Value (Get-View -id $VSE.network[1].tostring()).name -InputObject $vSEObject

$report += $vSEObject


$highVer = ($report | Sort-Object -Property version -Descending)[0].version

$oldvSEs = $report | where {$_.version -ne $highVer}

$oldvSEs | Export-Csv $HOMEDesktopoldvSEs.csv -NoTypeInformation

Share on
More posts

Dedicated Servers Quick Guide

What is a Dedicated Servers? Why bother using a dedicated server over a VPS or Shared Hosting?A dedicated server is a server 100% dedicated to your website/project or business needs.

Hacking the vCloud Director browser support warning

I came upon this article where some guy was explaining how to Hacking the vCloud Director to work on other browsers like chrome. So when he ran this: Invoke-RestMethod “https://vcloud.example.com/cloud/org/jake”

Software Defined Single Sign On Database

Software Defined Single Sign On Database. One difficult task since the release of vSphere 5.1 has been the creation of SSO (Single Sign On) databases.  Creating an SSO database is

Veeam Launches Backup & Replication v7

When it comes to data protection, data replication and data recovery, these are very challenging tasks. Consolidation through virtualization has forced customers to retool automated protection and recovery methodologies in

Get 90% Discount

First 3 People gets the Bonus!
Don't Miss Out Our Big Sale

Get 0-90% On All
247Rack Services


The Sale Is Until The End Of March