<script language="VBScript">
strComputer = "."
intcount = 0 
Set objWMIService = GetObject("winmgmts:\\" & strComputer & "\root\cimv2")
Set colSoftware = objWMIService.ExecQuery ("Select * from Win32_Product where name='Vbsedit' ")
For Each objSoftware In colSoftware
document.write ( "Name: " )
document.write ( objSoftware.name )
document.write ( "      " )
document.write ( "Description: " )
document.write ( objSoftware.Description )
document.write ( "<br>" )
intcount = intcount + 1
Next
document.write ( intcount )
</script>查找 安装了的程序。