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\LegacyAuthenticationLevel",2,"REG_DWORD"
'To Set Impersonation level to Impersonate
WshShell.RegWrite
"HKLM\SOFTWARE\Microsoft\Ole\LegacyImpersonationLevel",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
--
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" <bo...@discussions.microsoft.com> wrote in message
news:D8994E36-BD13-48B9...@microsoft.com...