Re: RegWrite fails on Vista?
Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance
Raymond Bennett wrote:
I have some code that calls WScript.Shell.RegWrite. In Windows Server 2003,
this worked, however in Vista, running as elevated command prompt, it is
reporting an error. The weird part is that _it actually does the registry
write_. I can't simply ignore the error because I need to know if I need
to
stop the script and report an error to the user. Anybody else seen this
problem?
Things are very different in Vista. When I write to HKLM, it seems to work
(I can read them from HKLM), but the values actually are written to a
VirtualStore key in HKCU, so they are not available to other users. I have
not yet found a solution. I am not getting any error messages.
--
Richard Mueller
Microsoft MVP Scripting and ADSI
Hilltop Lab -
http://www.rlmueller.net
--
.
Relevant Pages
- Re: 0x00000124 happens randomly when I play Sims 2
... Vista is merely reporting it before shutting down, it's not in the operating system but rather the hardware. ... I play the Sims 2 game, I notice sometimes right before I suspect the ... (microsoft.public.windows.vista.hardware_devices) - Re: howto check for Registry write permission without UAE dialogue?
... In Vista, the correct way to do this is to *always* use HKCU, even if you have the privileges to write HKLM. ... And even if the user is an administrator, you're still going to fail unless the app currently actually has an admin token... ... Of course, you can always just go ahead and write to HKLM, and Vista will virtualize your registry writes to go into HKCU without your app noticing. ... (microsoft.public.development.device.drivers) - Re: Macro Speeds in Vista OS vs XP OS
... not sure what your problem is, but a lot of people are reporting a great ... I currently got a much much faster computer and it has Vista OS on it. ... I installed Office 2007 and the same macro took over 15 minutes to run. ... I then installed Excel ... (microsoft.public.excel.programming) - Re: database install
... Unfortunately, HKLM is verboten in Vista, while HKCU is ok. ... rules allowed before are now out the window, ... Hi Cy - On the other hand, HKLM was verboten in Windows2000 and WinXP ... But personally I do appreciate the particular idea not to use an Admin ... (microsoft.public.fox.programmer.exchange) - Re: RegWrite fails on Vista?
... this worked, however in Vista, running as elevated command prompt, it is ... reporting an error. ... Microsoft MVP Scripting and ADSI ... (microsoft.public.scripting.wsh) |
|