powershell PowerShell:Symantec Management Platform Internet Explorer自定义清单
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了powershell PowerShell:Symantec Management Platform Internet Explorer自定义清单相关的知识,希望对你有一定的参考价值。
# 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
}
以上是关于powershell PowerShell:Symantec Management Platform Internet Explorer自定义清单的主要内容,如果未能解决你的问题,请参考以下文章
powershell PowerShell:启动PowerShell作为其他用户提升
powershell [提示输入powershell] #powershell #input #prompt
powershell 测量PowerShell命令或PowerShell脚本的速度
powershell远程下载exe并执行
powershell 使用啥端口
powershell PowerShell使用PowerShell创建本地管理员帐户