Windows Vista Tips

Windows Vista Tips > Newsgroups > Windows Server > error message

Reply
Thread Tools Display Modes

error message

 
 
boba
Guest
Posts: n/a

 
      05-19-2008
When users logon to the machine get error message: invalid root in registry
key "HKLM\SOFTWARE\Microsoft\Ole\EnableDCOM" code 80070005 source
wshshell.regwrite. How do I fix this error. My logon script shows the
following

Set WSHShell = WScript.CreateObject("WScript.Shell")
'To Enable Remote DCOM in the computer
WshShell.RegWrite "HKLM\SOFTWARE\Microsoft\Ole\EnableDCOM","Y","REG_ SZ"
'To Set Authentication Level to Connect
WshShell.RegWrite
"HKLM\SOFTWARE\Microsoft\Ole\LegacyAuthenticationL evel",2,"REG_DWORD"
'To Set Impersonation level to Impersonate
WshShell.RegWrite
"HKLM\SOFTWARE\Microsoft\Ole\LegacyImpersonationLe vel",3,"REG_DWORD"



 
Reply With Quote
 
 
 
 
Richard Mueller [MVP]
Guest
Posts: n/a

 
      05-19-2008
boba wrote:

> When users logon to the machine get error message: invalid root in
> registry
> key "HKLM\SOFTWARE\Microsoft\Ole\EnableDCOM" code 80070005 source
> wshshell.regwrite. How do I fix this error. My logon script shows the
> following
>
> Set WSHShell = WScript.CreateObject("WScript.Shell")
> 'To Enable Remote DCOM in the computer
> WshShell.RegWrite "HKLM\SOFTWARE\Microsoft\Ole\EnableDCOM","Y","REG_ SZ"
> 'To Set Authentication Level to Connect
> WshShell.RegWrite
> "HKLM\SOFTWARE\Microsoft\Ole\LegacyAuthenticationL evel",2,"REG_DWORD"
> 'To Set Impersonation level to Impersonate
> WshShell.RegWrite
> "HKLM\SOFTWARE\Microsoft\Ole\LegacyImpersonationLe vel",3,"REG_DWORD"


Users normally do not have permission to write to HKLM. On Vista clients
even administrators ordinarily cannot write to HKLM in a logon script.

A Startup script is a better option, as it runs with System privileges on
the local computer (although this might not work on Vista clients).

--
Richard Mueller
MVP Directory Services
Hilltop Lab - http://www.rlmueller.net
--


 
Reply With Quote
 
 
 
 
boba
Guest
Posts: n/a

 
      05-19-2008
This logon script is on Domain Controller under Default Domain Policy under
User Configuration -> Script. Because of this script the users are getting
this error message.

"boba" wrote:

> When users logon to the machine get error message: invalid root in registry
> key "HKLM\SOFTWARE\Microsoft\Ole\EnableDCOM" code 80070005 source
> wshshell.regwrite. How do I fix this error. My logon script shows the
> following
>
> Set WSHShell = WScript.CreateObject("WScript.Shell")
> 'To Enable Remote DCOM in the computer
> WshShell.RegWrite "HKLM\SOFTWARE\Microsoft\Ole\EnableDCOM","Y","REG_ SZ"
> 'To Set Authentication Level to Connect
> WshShell.RegWrite
> "HKLM\SOFTWARE\Microsoft\Ole\LegacyAuthenticationL evel",2,"REG_DWORD"
> 'To Set Impersonation level to Impersonate
> WshShell.RegWrite
> "HKLM\SOFTWARE\Microsoft\Ole\LegacyImpersonationLe vel",3,"REG_DWORD"
>
>
>

 
Reply With Quote
 
boba
Guest
Posts: n/a

 
      05-19-2008
I forgot to mention, it has code: 80070005 after the error message. Does it
mean I need to run updates on the server and that will fix the error? Last
time I see the updates run on one DC was March 2007 with Service pack 1 and
on the other DC with service pack 2 updates were run on May 2007.

"boba" wrote:

> When users logon to the machine get error message: invalid root in registry
> key "HKLM\SOFTWARE\Microsoft\Ole\EnableDCOM" code 80070005 source
> wshshell.regwrite. How do I fix this error. My logon script shows the
> following
>
> Set WSHShell = WScript.CreateObject("WScript.Shell")
> 'To Enable Remote DCOM in the computer
> WshShell.RegWrite "HKLM\SOFTWARE\Microsoft\Ole\EnableDCOM","Y","REG_ SZ"
> 'To Set Authentication Level to Connect
> WshShell.RegWrite
> "HKLM\SOFTWARE\Microsoft\Ole\LegacyAuthenticationL evel",2,"REG_DWORD"
> 'To Set Impersonation level to Impersonate
> WshShell.RegWrite
> "HKLM\SOFTWARE\Microsoft\Ole\LegacyImpersonationLe vel",3,"REG_DWORD"
>
>
>

 
Reply With Quote
 
Richard Mueller [MVP]
Guest
Posts: n/a

 
      05-19-2008
That explains the error. Logon scripts run with the credentials of the user
and users generally do not have permission to write to HKLM. They should not
have this privilege, as then they can be tricked to run code that messes up
the registry.

You probably can make these changes using a Startup script. In a Group
Policy navigate to "Computer Configuration", "Windows Settings", "Scripts".
A startup script runs before there is any user. It has System privileges on
the local computer so it can write to HKLM.

--
Richard Mueller
MVP Directory Services
Hilltop Lab - http://www.rlmueller.net
--

"boba" <> wrote in message
news8994E36-BD13-48B9-ACF0-...
> This logon script is on Domain Controller under Default Domain Policy
> under
> User Configuration -> Script. Because of this script the users are getting
> this error message.
>
> "boba" wrote:
>
>> When users logon to the machine get error message: invalid root in
>> registry
>> key "HKLM\SOFTWARE\Microsoft\Ole\EnableDCOM" code 80070005 source
>> wshshell.regwrite. How do I fix this error. My logon script shows the
>> following
>>
>> Set WSHShell = WScript.CreateObject("WScript.Shell")
>> 'To Enable Remote DCOM in the computer
>> WshShell.RegWrite "HKLM\SOFTWARE\Microsoft\Ole\EnableDCOM","Y","REG_ SZ"
>> 'To Set Authentication Level to Connect
>> WshShell.RegWrite
>> "HKLM\SOFTWARE\Microsoft\Ole\LegacyAuthenticationL evel",2,"REG_DWORD"
>> 'To Set Impersonation level to Impersonate
>> WshShell.RegWrite
>> "HKLM\SOFTWARE\Microsoft\Ole\LegacyImpersonationLe vel",3,"REG_DWORD"
>>
>>
>>



 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: live mail how do I insert time and date into message --- all -- every message a ez way to automatically insert time and date into live message Gary VanderMolen [MVP] Windows Live Mail 2 02-25-2010 10:18 PM
Re: live mail how do I insert time and date into message --- all -- every message a ez way to automatically insert time and date into live message slk759 Windows Live Mail 1 02-25-2010 01:39 AM
error message - You've encountered error message C00D1195 while us Adrian Windows Media Player 0 08-22-2008 02:23 PM
Windows Mail Error Sending a Message - Non-specific Error Message DP4Jesus7 Windows Vista Mail 8 04-09-2008 07:37 PM
Error Message - Does anyone have an idea what the error message is Balou33 Windows Media Player 0 07-15-2004 05:42 PM