手机
当前位置:查字典教程网 >编程开发 >Javascript教程 >用jscript实现列出安装的软件列表
用jscript实现列出安装的软件列表
摘要:ReturnsalistofsoftwarethatwasinstalledonacomputerusingWindowsInstaller...

Returnsalistofsoftwarethatwasinstalledonacomputer

usingWindowsInstaller.Thisinformationisthen

writtentoatextfile.ThisscriptrequiresbothWindows

PowerShellandthecorrespondingversionof

the.NETFramework.Formoreinformationondownloading

theseitemsseetheWindowsPowerShelldownloadpage(right).

复制代码 代码如下:

$strComputer="."

$colItems=get-wmiobject-class"Win32_Product"-namespace"rootCIMV2"`

-computername$strComputer

foreach($objItemin$colItems){

write-host"Caption:"$objItem.Caption

write-host"Description:"$objItem.Description

write-host"IdentifyingNumber:"$objItem.IdentifyingNumber

write-host"InstallationDate:"$objItem.InstallDate

write-host"InstallationDate2:"$objItem.InstallDate2

write-host"InstallationLocation:"$objItem.InstallLocation

write-host"InstallationState:"$objItem.InstallState

write-host"Name:"$objItem.Name

write-host"PackageCache:"$objItem.PackageCache

write-host"SKUNumber:"$objItem.SKUNumber

write-host"Vendor:"$objItem.Vendor

write-host"Version:"$objItem.Version

write-host

}

【用jscript实现列出安装的软件列表】相关文章:

javascript实现删除前弹出确认框

javascript实现简单的进度条

基于javascript简单实现对身份证校验

JavaScript实现斗地主游戏的思路

用JavaScript实现对话框的教程

javascript实现获取服务器时间

javascript实现日期按月份加减

javascript的 {} 语句块详解

Javascript事件触发列表与解说

jQuery实现弹出窗口中切换登录与注册表单

精品推荐
分类导航