简体   繁体   English

远程注册表读取问题(服务器2003、2008和2008 R2)

[英]Remote registry read issue (server 2003, 2008 & 2008 R2)

We have a QA VBS script that has been working for quite some time. 我们有一个QA VBS脚本,已经运行了一段时间。 The impersonation level component was already in the script. 模拟级别组件已在脚本中。 There are several sections in the QA script that read the registry, remotely and locally, without error, across 2003, 2003x64, 2008 & 2008 R2. QA脚本中有几个部分可跨2003、2003x64、2008和2008 R2远程和本地无错误地读取注册表。

I recently added a section for checking on the patch level of the SCOM agent. 我最近添加了一个部分来检查SCOM代理的补丁程序级别。 The script runs as intended locally, across all 3 OS's, but remotely, only Server 2003 (32-bit) can read this part of the registry, "HKLM\\SOFTWARE\\Classes\\Installer\\Products\\". 该脚本在所有3个操作系统上均按本地要求运行,但是在远程,只有Server 2003(32位)可以读取注册表的这一部分“ HKLM \\ SOFTWARE \\ Classes \\ Installer \\ Products \\”。

Here is the relevant section of code: 这是代码的相关部分:

strKeyPath = "SOFTWARE\Classes\Installer\Products\07779052F1B26F94BAD9C107B86962A2\"
iRC = objReg.GetStringValue(HKLM, strKeyPath & "Patches", "772A5728AE0F5A548B3D4ACF8DB285ED", sValue)
If iRC = 0 Then
    sStatus2 = 1
End If

For debugging, I added an else section w/ Wscript.Echo iRC, which returned a 2. Per Net Helpmsg, the error is "The system cannot find the file specified.". 为了进行调试,我添加了一个w / Wscript.Echo iRC的else节,该节返回2。每个Net Helpmsg,错误是“系统找不到指定的文件”。

Is there some UAC voodoo at work? 工作中有一些UAC伏都教吗? I can read other sections of the registry ("HKLM\\SOFTWARE\\Wow6432Node\\Microsoft\\Windows\\CurrentVersion\\Uninstall\\" & "HKLM\\SOFTWARE\\Wow6432Node\\Network Associates\\ePolicy Orchestrator\\Application Plugins", to name a few) on S2K3x64, S2K8 and S2K8R2. 我可以在S2K3x64上阅读注册表的其他部分(“ HKLM \\ SOFTWARE \\ Wow6432Node \\ Microsoft \\ Windows \\ CurrentVersion \\ Uninstall \\”和“ HKLM \\ SOFTWARE \\ Wow6432Node \\ Network Associates \\ ePolicy Orchestrator \\ Application Plugins”)。 ,S2K8和S2K8R2。

The problem seems to be isolated to my workstation. 该问题似乎与我的工作站无关。 Other W7 systems don't have the same problem as this system. 其他W7系统与此系统没有相同的问题。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM