Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Re: Invalid root in registry key

55 views
Skip to first unread message

Vadims Podans [MVP]

unread,
Apr 2, 2009, 11:06:35 AM4/2/09
to
mm..this is Powershell newsgroup :)
--
WBR, Vadims Podans
MVP: PowerShell
PowerShell blog - www.sysadmins.lv

"WBB_lan" <WBB...@discussions.microsoft.com> rakstīja ziņojumā
"news:1CF45E90-3BE7-4F99...@microsoft.com"...
> Hi,
>
> I have a windows script host error that is bugging me (no pun intended).
>
> I have sucessfully deployed on a domain a legal notice script. It works.
> But for anyone NOT having administrator rights, an error pops up after the
> logon.
>
> Here is the error:
> Script:
> //domain.local\sysvol\domain.local\policies\{(some
> stuff)}\user\scripts\logon\legalnotice.vbs
>
> line: 36
> char: 1
> Error: Invalid root in registry key
> "HKLM\Software\Microsoft\Windows\CrurentVersion\Policies\system\legalnoticecaption".
>
> Code: 80070005
> Source: WshShell.RegWrite
>
> Question: Why would this not appear for administrators, but others?
>
> Can anyone help me figure this out?
>
> Thanks in advance...
>

WBB_lan

unread,
Apr 2, 2009, 1:30:04 PM4/2/09
to
Hi Vadims,

You helped me with a wake on lan issue. I forgot with forum I was posting
this question to. I think it should be the group policy...

Sorry.

Vadims Podans [MVP]

unread,
Apr 2, 2009, 1:41:53 PM4/2/09
to
I don't know VBS language, however I know why your script fails:
All scripts that change files in system directory or HKLM registry hive must
be placed in Computer Configuration. In this case script will be launched
under LocalSystem account. If you place script in User Configuration
section - script will unable to change HKLM hive or system folders due
insufficient rights. Or you must explicity assign Write rights to users.

And remember this error code: 80070005 - this means Access Denied.


--
WBR, Vadims Podans
MVP: PowerShell
PowerShell blog - www.sysadmins.lv

"WBB_lan" <WBB...@discussions.microsoft.com> rakstīja ziņojumā
"news:2042B2FE-2F28-458B...@microsoft.com"...

0 new messages