Windows Vista Forums

Invalid root in registry key

  1. #1


    WBB_lan Guest

    Invalid root in registry key

    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...


      My System SpecsSystem Spec

  2. #2


    Vadims Podans [MVP] Guest

    Re: Invalid root in registry key

    mm..this is Powershell newsgroup
    --
    WBR, Vadims Podans
    MVP: PowerShell
    PowerShell blog - www.sysadmins.lv

    "WBB_lan" <WBB_lan@xxxxxx> rakstīja ziņojumā
    "news:1CF45E90-3BE7-4F99-A117-6CF56C6CD7ED@xxxxxx"...

    > 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...
    >

      My System SpecsSystem Spec

  3. #3


    WBB_lan Guest

    Re: Invalid root in registry key

    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]" wrote:

    > mm..this is Powershell newsgroup
    > --
    > WBR, Vadims Podans
    > MVP: PowerShell
    > PowerShell blog - www.sysadmins.lv
    >
    > "WBB_lan" <WBB_lan@xxxxxx> rakstīja ziņojumā
    > "news:1CF45E90-3BE7-4F99-A117-6CF56C6CD7ED@xxxxxx"...

    > > 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...
    > >
    >

      My System SpecsSystem Spec

  4. #4


    Vadims Podans [MVP] Guest

    Re: Invalid root in registry key

    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" <WBBlan@xxxxxx> rakstīja ziņojumā
    "news:2042B2FE-2F28-458B-86F9-6E16AF05B656@xxxxxx"...

    > 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]" wrote:
    >

    >> mm..this is Powershell newsgroup
    >> --
    >> WBR, Vadims Podans
    >> MVP: PowerShell
    >> PowerShell blog - www.sysadmins.lv
    >>
    >> "WBB_lan" <WBB_lan@xxxxxx> rakstīja ziņojumā
    >> "news:1CF45E90-3BE7-4F99-A117-6CF56C6CD7ED@xxxxxx"...

    >> > 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...
    >> >
    >>

      My System SpecsSystem Spec

Invalid root in registry key

Similar Threads
Thread Forum
Microsoft`s Silent Trusted Root Authority update is Invalid?
I was going though my Event Log today and spotted over 5000 CAPI2 (Crypto API) Errors, generating anywhere from 5-20 new errors every hour going back...
Vista News
Existing Root CA -> New Root / Sub CA Hierarchy
Hi NG, i have a problem with installing a new root / sub ca hierarchy while there is already an existing root ca. background: ive installed...
Server General
Cannot fix corrupted registry value: The handle is invalid error.
I'm trying to install SQL Server Express 2008 using Web Platform Express 2008 installer (2.0 beta) on Windows Vista Ultimate SP1 (all updates...
Vista security
Cannot edit corrupted registry value: The handle is invalid.
I'm trying to install SQL Server Express 2008 using Web Platform Express 2008 installer (2.0 beta) on Windows Vista Ultimate SP1 (all updates...
Vista General
Cannot open access control editor, invalid Registry value?
I right-clicked file and tried to edit the security properties, but the error window popup: "Cannot open access control editor, invalid Registry...
Vista security
Unable to delete invalid registry entries
Hi, a novice here need some help on registry clean up. I started to use Registry First Aid, but there is a lot of entries that have not permission...
Vista General
Unable to delete invalid registry entries
Hi, a novice here need some help on registry clean up. I started to use Registry First Aid, but there is a lot of entries that have not permission...
Vista account administration