您现在的位置是:永利皇宫网页入口-yl6809永利官网 > seo优化
用javascript实现列出安装的软件列表-永利皇宫网页入口
襄阳襄助网络有限公司2024-08-19 00:20:00【seo优化】5人已围观
简介襄阳襄助网络有限公司(www.scgcj09.com)成立于2014年,专注于高新技术领域的专利申请和专利布局服务。知识产权电话:13894918138,欢迎电话咨询。
returnsalistofsoftwarethatwasinstalledonacomputerusingwindowsinstaller.thisinformationisthen

writtentoatextfile.thisscriptrequiresbothwindows

powershellandthecorrespondingversionof

the.netframework.formoreinformationondownloading
theseitemsseethewindowspowershelldownloadpage(right).
$strcomputer="."
$colitems=get-wmiobject-class"win32_product"-namespace"root\cimv2"`
-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
}

writtentoatextfile.thisscriptrequiresbothwindows

powershellandthecorrespondingversionof

the.netframework.formoreinformationondownloading
theseitemsseethewindowspowershelldownloadpage(right).
实现代码如下:
$strcomputer="."
$colitems=get-wmiobject-class"win32_product"-namespace"root\cimv2"`
-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
}
以上就是现列【用javascript实现列出安装的软件列表】的全部内容了,欢迎留言评论进行交流!
很赞哦!(4)