PowerShell: Symantec Management Platform Internet Explorer Custom Inventory
# Single row custom inventory: Used to capture one-to-one
# data, such as the settings for one application.
# Key: There can only be one row to send to SMP
# Reset environment
Remove-Variable * -ErrorAction SilentlyContinue; Remove-Module * -ErrorAction SilentlyContinue; $error.Clear(); Clear-Host
# Turn off error catching
$ErrorActionPreference = "SilentlyContinue"
$SubKey = Get-Item -Path "Registry::HKLM\SOFTWARE\Microsoft\Internet Explorer"
$Version = $SubKey.GetValue("Version")
$Build = $SubKey.GetValue("Build")
$W2kVersion = $SubKey.GetValue("W2kVersion")
$svcVersion = $SubKey.GetValue("svcVersion")
$svcUpdateVersion = $SubKey.GetValue("svcUpdateVersion")
$svcKBNumber = $SubKey.GetValue("svcKBNumber")
# Turn on error catching
$ErrorActionPreference = "Continue"
# Create an container to store the object information
$OutputObjects = New-Object -TypeName PSObject
# Instantiate the object (populate with no data)
$OutputObjects = @()
$OutputObjects += New-Object -TypeName PSObject -Property @{
0 = $Version
1 = $Build
2 = $W2kVersion
3 = $svcVersion
4 = $svcUpdateVersion
5 = $svcKBNumber
}