Re: reg.exe script error

From: Ramesh, MS-MVP (ramesh_at_online.mvps.org)
Date: 02/24/05


Date: Thu, 24 Feb 2005 23:17:32 +0530


Watch for line wrap. Better, download the attached file qfe.vb. Download and
rename as qfe.vbs

-- 
Ramesh, Microsoft MVP
Windows XP Shell/User
http://windowsxp.mvps.org
"Ramesh, MS-MVP" <ramesh@online.mvps.org> wrote in message 
news:%23%231cIgpGFHA.544@TK2MSFTNGP12.phx.gbl...
> Chris,
>
> Pls post the entire REG command-line. Or, use this VBScript to query the 
> list of installed Hotfixes, using WMI
>
> -----------------------------------------------
> Const wbemFlagReturnImmediately = &h10
> Const wbemFlagForwardOnly = &h20
>
> On Error Resume Next
>
> Set shell = CreateObject("Wscript.Shell")
> Set fso = Wscript.CreateObject("Scripting.FilesystemObject")
> set b = fso.CreateTextFile("C:\FixList.txt",true)
> b.writeline "List of Hotfixes installed in this computer"
> b.writeblanklines 1
>
> strComputer="."
> Set objWMIService = GetObject("winmgmts:\\" & strComputer & "\root\CIMV2")
> Set colItems = objWMIService.ExecQuery("SELECT * FROM 
> Win32_QuickFixEngineering", "WQL", _
>                                          wbemFlagReturnImmediately + 
> wbemFlagForwardOnly)
>   For Each objItem In colItems
>      b.writeline objItem.HotFixID
>   Next
>
> b.close
> shell.Run "notepad C:\FixList.txt", 1,True
> set shell = Nothing
> set fso = Nothing
>
> -----------------------------------------------
>
> Copy the above code to Notepad, and save as FixQuery.vbs. Run it in the 
> subject computer. For more comprehensive methods, you may try the 
> Scripting/WMI newsgroups.
>
> -- 
> Ramesh, Microsoft MVP
> Windows XP Shell/User
> http://windowsxp.mvps.org
>
>
> "Chris Coryell" <ChrisCoryell@discussions.microsoft.com> wrote in message 
> news:3A4B5A0B-8D2F-47CF-B7DB-87C341EF415A@microsoft.com...
>> Thanks Wes.  I saw this prior to my post and removed a /s parameter that 
>> I
>> was using, but it didn't change my result.  Still no dice on reading that 
>> key
>> from the registry.
>>
>> "Wesley Vogel" wrote:
>>
>>> Cannot Use the Reg.exe Command to Locate a Registry Key That Contains a
>>> Forward Slash Character
>>> http://support.microsoft.com/?kbid=823468
>>>
>>>
>>>
>>> -- 
>>> Hope this helps.  Let us know.
>>>
>>> Wes
>>> MS-MVP Windows Shell/User
>>>
>>> In news:13D8ACBF-9627-4E56-AC09-A3A7F40B39DF@microsoft.com,
>>> Chris Coryell <ChrisCoryell@discussions.microsoft.com> hunted and 
>>> pecked:
>>> > Hello all -
>>> >
>>> > I'm creating a script to push out Hotfixes on our closed network.  I
>>> > burn the hotfixes to a cd and then load them on a fixed location on
>>> > our network. The problem that I'm having is on our Windows XP client
>>> > machines.  I try to query the registry to determine if the hotfix has
>>> > already been installed. However when I use the reg.exe query command,
>>> > I get the following message whether or not the registry key is
>>> > actually there.
>>> >
>>> > Error: The system was unable to find the specified registry key or
>>> > value
>>> >
>>> > I used regedit to make sure that the key exists and I ensured that
>>> > permissions were open for the users to see the key.  Our XP machines
>>> > have SP1 installed.  Installing SP2 is not an option for us at this
>>> > point as we are still testing it prior to its application on our
>>> > production network.
>>> >
>>> > I appreciate any help you can give.
>>> >
>>> > Chris
>>>
>>>
> 




Relevant Pages

  • Re: Download Specification...Odd Question
    ... you use export this registry key and apply to other systems. ... Ramesh, Microsoft MVP ... Windows XP Shell/User ...
    (microsoft.public.windowsxp.help_and_support)
  • Re: How can I know and export list of all hotfixes installed on my XP-SP2 PC ?
    ... Microsoft MVP [Windows XP Shell/User] ... Windows® XP Troubleshooting http://www.winhelponline.com ... How can I know and export list of all hotfixes installed on my XP-SP2 PC? ...
    (microsoft.public.windowsxp.general)
  • Re: Event ID 1000 (Userenv)
    ... Maybe it's time to install those 2 hotfixes that I mentioned in my ... MCSE, CCEA, Microsoft MVP - Terminal Server ... it takes longer that their profile is loaded. ... Windows 2000 SP4: ...
    (microsoft.public.win2000.termserv.apps)
  • Re: Help with Hotfixes..........?????
    ... Then retry locating that folder, the spuninst.exe file should be in the ... > Need Help with Hotfixes... ... > have been working with computers for years, and Windows XP ... Also, it discussed utilizing ...
    (microsoft.public.windowsxp.general)
  • HFDeploy [laenglich!] (was: Patchen)
    ... Setup information file for Windows 2000 HotFixes. ... Dateien das Attribut "hidden". ... anzuhaengenden Zeilen (bei Installation direkt von CD eigentlich ...
    (microsoft.public.de.security.netzwerk.sicherheit)