常见问题 Microsoft/微软办公软件的常见问题>>

如果我已经在计算机上安装了正确的软件产品,那么,接下来我应当做些什么?

发布时间:2010-10-29 09:53:45

答案:

 复制以下脚本,将其粘贴到记事本程序中,并以.VBS文件扩展名进行保存(例如Versions.vbs)。运行该脚本,它将报告当前在您计算机上所安装的WSH、VBScript、WMI和ADSI版本。如果某个版本编号返回值为空,则意味着此项技术并未安装。

On Error Resume Next WScript.Echo "WSH Version: " & WScript.Version Wscript.Echo "VBScript Version: " & ScriptEngineMajorVersion _ & "." & ScriptEngineMinorVersion strComputer = "." Set objWMIService = GetObject("winmgmts:" _ & "{impersonationLevel=impersonate}!\\" & strComputer _ & "\root\cimv2") Set colWMISettings = objWMIService.ExecQuery _ ("Select * from Win32_WMISetting") For Each objWMISetting in colWMISettings Wscript.Echo "WMI Version: " & objWMISetting.BuildVersion Next Set objShell = CreateObject("WScript.Shell") strAdsiVersion = objShell.RegRead ("HKLM\SOFTWARE\Microsoft\ Active Setup\Installed Components\ {E92B03AB-B707-11d2-9CBD-0000F87A369E}\Version") If strAdsiVersion = vbEmpty Then strAdsiVersion = objShell.RegRead ("HKLM\SOFTWARE\Microsoft\ADs\Providers\LDAP\") If strAdsiVersion = vbEmpty Then strAdsiVersion = "ADSI is not installed." Else strAdsiVersion = "2.0" End If End If WScript.Echo "ADSI Version: " & strAdsiVersion

下一步您可以:
查看Microsoft/微软办公软件产品 >>
查看办公软件产品 >>
查看Microsoft/微软办公软件常见问题 >>