Windows Vista Forums

Get-ChildItem doesn't work properly on Registry Provider
  1. #1


    BJ Guest

    Get-ChildItem doesn't work properly on Registry Provider

    When i Invoke this Command on a german XP with Powershell V2 CTP3

    Get-ChildItem HKLM: -recurse -include Powershell

    I get this erros:

    Get-ChildItem : Der angeforderte Registrierungszugriff ist unzulässig.
    At line:1 char:14
    + Get-ChildItem <<<< HKLM: -recurse -include Powershell
    + CategoryInfo : PermissionDenied: (HKEY_LOCAL_MACHINE\SAM
    \SAM:String) [Get-ChildItem], SecurityException
    + FullyQualifiedErrorId :
    System.Security.SecurityException,Microsoft.PowerShell.Commands.GetChildItemCommand



    Get-ChildItem : Der angeforderte Registrierungszugriff ist unzulässig.
    At line:1 char:14
    + Get-ChildItem <<<< HKLM: -recurse -include Powershell
    + CategoryInfo : PermissionDenied: (HKEY_LOCAL_MACHINE
    \SECURITY:String) [Get-ChildItem], SecurityException
    + FullyQualifiedErrorId :
    System.Security.SecurityException,Microsoft.PowerShell.Commands.GetChildItemCommand

    Get-ChildItem : Cannot process argument because the value of argument
    "path" is invalid. Change the value of the "path" argument and run the
    operation a
    gain.
    At line:1 char:14
    + Get-ChildItem <<<< HKLM: -recurse -include Powershell
    + CategoryInfo : InvalidArgument: ( [Get-ChildItem],
    PSArgumentException
    + FullyQualifiedErrorId :
    Argument,Microsoft.PowerShell.Commands.GetChildItemCommand


    Without the -Include Parameter everything works fine....

      My System SpecsSystem Spec

  2. #2


    Vadims Podans Guest

    Re: Get-ChildItem doesn't work properly on Registry Provider

    try -ea 0 (this means ErrorAction=silentlycontinue) switch in
    Get-ChildItem. The problem is that -Recurse tryies to find PowerShell key in
    every parent key, however you haven't read permissions on some keys (such
    HKLM\SAM).

    Get-ChildItem HKLM: -recurse -include Powershell -ea 0

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

    "BJ" <post@xxxxxx> rakstÄ«ja ziņojumÄ
    "news:24db9c1d-b7e0-47fd-a82d-04553c198350@xxxxxx"...

    > When i Invoke this Command on a german XP with Powershell V2 CTP3
    >
    > Get-ChildItem HKLM: -recurse -include Powershell
    >
    > I get this erros:
    >
    > Get-ChildItem : Der angeforderte Registrierungszugriff ist unzulässig.
    > At line:1 char:14
    > + Get-ChildItem <<<< HKLM: -recurse -include Powershell
    > + CategoryInfo : PermissionDenied: (HKEY_LOCAL_MACHINE\SAM
    > \SAM:String) [Get-ChildItem], SecurityException
    > + FullyQualifiedErrorId :
    > System.Security.SecurityException,Microsoft.PowerShell.Commands.GetChildItemCommand
    >
    > Get-ChildItem : Der angeforderte Registrierungszugriff ist unzulässig.
    > At line:1 char:14
    > + Get-ChildItem <<<< HKLM: -recurse -include Powershell
    > + CategoryInfo : PermissionDenied: (HKEY_LOCAL_MACHINE
    > \SECURITY:String) [Get-ChildItem], SecurityException
    > + FullyQualifiedErrorId :
    > System.Security.SecurityException,Microsoft.PowerShell.Commands.GetChildItemCommand
    >
    > Get-ChildItem : Cannot process argument because the value of argument
    > "path" is invalid. Change the value of the "path" argument and run the
    > operation a
    > gain.
    > At line:1 char:14
    > + Get-ChildItem <<<< HKLM: -recurse -include Powershell
    > + CategoryInfo : InvalidArgument: ( [Get-ChildItem],
    > PSArgumentException
    > + FullyQualifiedErrorId :
    > Argument,Microsoft.PowerShell.Commands.GetChildItemCommand
    >
    >
    > Without the -Include Parameter everything works fine....

      My System SpecsSystem Spec

  3. #3


    BJ Guest

    Re: Get-ChildItem doesn't work properly on Registry Provider

    On 10 Jan., 20:44, "Vadims Podans" <vpodans> wrote:

    > try -ea 0 (this means *ErrorAction=silentlycontinue) switch in
    > Get-ChildItem. The problem is that -Recurse tryies to find PowerShell keyin
    > every parent key, however you haven't read permissions on some keys (such
    > HKLM\SAM).
    >
    > Get-ChildItem HKLM: -recurse -include Powershell -ea 0
    >
    > --
    > WBR, Vadims Podans
    > PowerShell blog -www.sysadmins.lv
    >
    > "BJ" <p...@xxxxxx> rakstîja ziòojumâ
    > "news:24db9c1d-b7e0-47fd-a82d-04553c198350@xxxxxx"....
    >
    >
    >

    > > When i Invoke this Command on a german XP with Powershell V2 CTP3
    >

    > > Get-ChildItem HKLM: -recurse -include Powershell
    >

    > > I get this erros:
    >

    > > Get-ChildItem : Der angeforderte Registrierungszugriff ist unzulässig..
    > > At line:1 char:14
    > > + Get-ChildItem <<<< *HKLM: -recurse -include Powershell
    > > * *+ CategoryInfo * * * * *: PermissionDenied: (HKEY_LOCAL_MACHINE\SAM
    > > \SAM:String) [Get-ChildItem], SecurityException
    > > * *+ FullyQualifiedErrorId :
    > > System.Security.SecurityException,Microsoft.PowerShell.Commands.GetChildIte*mCommand
    >

    > > Get-ChildItem : Der angeforderte Registrierungszugriff ist unzulässig..
    > > At line:1 char:14
    > > + Get-ChildItem <<<< *HKLM: -recurse -include Powershell
    > > * *+ CategoryInfo * * * * *: PermissionDenied: (HKEY_LOCAL_MACHINE
    > > \SECURITY:String) [Get-ChildItem], SecurityException
    > > * *+ FullyQualifiedErrorId :
    > > System.Security.SecurityException,Microsoft.PowerShell.Commands.GetChildIte*mCommand
    >

    > > Get-ChildItem : Cannot process argument because the value of argument
    > > "path" is invalid. Change the value of the "path" argument and run the
    > > operation a
    > > gain.
    > > At line:1 char:14
    > > + Get-ChildItem <<<< *HKLM: -recurse -include Powershell
    > > * *+ CategoryInfo * * * * *: InvalidArgument: ( [Get-ChildItem],
    > > PSArgumentException
    > > * *+ FullyQualifiedErrorId :
    > > Argument,Microsoft.PowerShell.Commands.GetChildItemCommand
    >

    > > Without the -Include Parameter everything works fine....- Zitierten Text ausblenden -
    >
    > - Zitierten Text anzeigen -
    ###########################
    Thanks for the tip but i already tested this - same Error

    Get-ChildItem : Cannot process argument because the value of argument
    "path" is invalid. Change the value of the "path" argument and run the
    operation a
    gain.
    At line:1 char:14
    + Get-ChildItem <<<< HKLM: -recurse -include Powershell -ea 0
    + CategoryInfo : InvalidArgument: ( [Get-ChildItem],
    PSArgumentException
    + FullyQualifiedErrorId :
    Argument,Microsoft.PowerShell.Commands.GetChildItemCommand


      My System SpecsSystem Spec

  4. #4


    bluefin Guest

    Re: Get-ChildItem doesn't work properly on Registry Provider

    It is working well in V2CTP2.


    On Jan 11, 4:54*am, BJ <p...@xxxxxx> wrote:

    > On 10 Jan., 20:44, "Vadims Podans" <vpodans> wrote:
    >
    >
    >
    >
    >

    > > try -ea 0 (this means *ErrorAction=silentlycontinue) switch in
    > > Get-ChildItem. The problem is that -Recurse tryies to find PowerShell key in
    > > every parent key, however you haven't read permissions on some keys (such
    > > HKLM\SAM).
    >

    > > Get-ChildItem HKLM: -recurse -include Powershell -ea 0
    >

    > > --
    > > WBR, Vadims Podans
    > > PowerShell blog -www.sysadmins.lv
    >

    > > "BJ" <p...@xxxxxx> rakstîja ziòojumâ
    > > "news:24db9c1d-b7e0-47fd-a82d-04553c198350@xxxxxx"...
    >

    > > > When i Invoke this Command on a german XP with Powershell V2 CTP3
    >

    > > > Get-ChildItem HKLM: -recurse -include Powershell
    >

    > > > I get this erros:
    >

    > > > Get-ChildItem : Der angeforderte Registrierungszugriff ist unzulässig.
    > > > At line:1 char:14
    > > > + Get-ChildItem <<<< *HKLM: -recurse -include Powershell
    > > > * *+ CategoryInfo * * * * *: PermissionDenied: (HKEY_LOCAL_MACHINE\SAM
    > > > \SAM:String) [Get-ChildItem], SecurityException
    > > > * *+ FullyQualifiedErrorId :
    > > > System.Security.SecurityException,Microsoft.PowerShell.Commands.GetChildIte**mCommand
    >

    > > > Get-ChildItem : Der angeforderte Registrierungszugriff ist unzulässig.
    > > > At line:1 char:14
    > > > + Get-ChildItem <<<< *HKLM: -recurse -include Powershell
    > > > * *+ CategoryInfo * * * * *: PermissionDenied: (HKEY_LOCAL_MACHINE
    > > > \SECURITY:String) [Get-ChildItem], SecurityException
    > > > * *+ FullyQualifiedErrorId :
    > > > System.Security.SecurityException,Microsoft.PowerShell.Commands.GetChildIte**mCommand
    >

    > > > Get-ChildItem : Cannot process argument because the value of argument
    > > > "path" is invalid. Change the value of the "path" argument and run the
    > > > operation a
    > > > gain.
    > > > At line:1 char:14
    > > > + Get-ChildItem <<<< *HKLM: -recurse -include Powershell
    > > > * *+ CategoryInfo * * * * *: InvalidArgument: ( [Get-ChildItem],
    > > > PSArgumentException
    > > > * *+ FullyQualifiedErrorId :
    > > > Argument,Microsoft.PowerShell.Commands.GetChildItemCommand
    >

    > > > Without the -Include Parameter everything works fine....- Zitierten Text ausblenden -
    >

    > > - Zitierten Text anzeigen -
    >
    > ###########################
    > Thanks for the tip but i already tested this - same Error
    >
    > Get-ChildItem : Cannot process argument because the value of argument
    > "path" is invalid. Change the value of the "path" argument and run the
    > operation a
    > gain.
    > At line:1 char:14
    > + Get-ChildItem <<<< *HKLM: -recurse -include Powershell -ea 0
    > * * + CategoryInfo * * * * *: InvalidArgument: ( [Get-ChildItem],
    > PSArgumentException
    > * * + FullyQualifiedErrorId :
    > Argument,Microsoft.PowerShell.Commands.GetChildItemCommand

      My System SpecsSystem Spec

  5. #5


    Vadims Podans Guest

    Re: Get-ChildItem doesn't work properly on Registry Provider

    in CTP3 doesn't work. Looks like that here is a bug.

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

    "bluefin" <desertcamel.chen@xxxxxx> rakstÄ«ja ziņojumÄ
    "news:54efc3e5-e2ae-435b-b9a1-56a6a479ddce@xxxxxx"...

    > It is working well in V2CTP2.
    >
    >
    > On Jan 11, 4:54 am, BJ <p...@xxxxxx> wrote:

    >> On 10 Jan., 20:44, "Vadims Podans" <vpodans> wrote:
    >>
    >>
    >>
    >>
    >>

    >> > try -ea 0 (this means ErrorAction=silentlycontinue) switch in
    >> > Get-ChildItem. The problem is that -Recurse tryies to find PowerShell
    >> > key in
    >> > every parent key, however you haven't read permissions on some keys
    >> > (such
    >> > HKLM\SAM).
    >>

    >> > Get-ChildItem HKLM: -recurse -include Powershell -ea 0
    >>

    >> > --
    >> > WBR, Vadims Podans
    >> > PowerShell blog -www.sysadmins.lv
    >>

    >> > "BJ" <p...@xxxxxx> rakstîja ziòojumâ
    >> > "news:24db9c1d-b7e0-47fd-a82d-04553c198350@xxxxxx"...
    >>

    >> > > When i Invoke this Command on a german XP with Powershell V2 CTP3
    >>

    >> > > Get-ChildItem HKLM: -recurse -include Powershell
    >>

    >> > > I get this erros:
    >>

    >> > > Get-ChildItem : Der angeforderte Registrierungszugriff ist
    >> > > unzulässig.
    >> > > At line:1 char:14
    >> > > + Get-ChildItem <<<< HKLM: -recurse -include Powershell
    >> > > + CategoryInfo : PermissionDenied: (HKEY_LOCAL_MACHINE\SAM
    >> > > \SAM:String) [Get-ChildItem], SecurityException
    >> > > + FullyQualifiedErrorId :
    >> > > System.Security.SecurityException,Microsoft.PowerShell.Commands.GetChildIteÂ*Â*mCommand
    >>

    >> > > Get-ChildItem : Der angeforderte Registrierungszugriff ist
    >> > > unzulässig.
    >> > > At line:1 char:14
    >> > > + Get-ChildItem <<<< HKLM: -recurse -include Powershell
    >> > > + CategoryInfo : PermissionDenied: (HKEY_LOCAL_MACHINE
    >> > > \SECURITY:String) [Get-ChildItem], SecurityException
    >> > > + FullyQualifiedErrorId :
    >> > > System.Security.SecurityException,Microsoft.PowerShell.Commands.GetChildIteÂ*Â*mCommand
    >>

    >> > > Get-ChildItem : Cannot process argument because the value of argument
    >> > > "path" is invalid. Change the value of the "path" argument and run
    >> > > the
    >> > > operation a
    >> > > gain.
    >> > > At line:1 char:14
    >> > > + Get-ChildItem <<<< HKLM: -recurse -include Powershell
    >> > > + CategoryInfo : InvalidArgument: ( [Get-ChildItem],
    >> > > PSArgumentException
    >> > > + FullyQualifiedErrorId :
    >> > > Argument,Microsoft.PowerShell.Commands.GetChildItemCommand
    >>

    >> > > Without the -Include Parameter everything works fine....- Zitierten
    >> > > Text ausblenden -
    >>

    >> > - Zitierten Text anzeigen -
    >>
    >> ###########################
    >> Thanks for the tip but i already tested this - same Error
    >>
    >> Get-ChildItem : Cannot process argument because the value of argument
    >> "path" is invalid. Change the value of the "path" argument and run the
    >> operation a
    >> gain.
    >> At line:1 char:14
    >> + Get-ChildItem <<<< HKLM: -recurse -include Powershell -ea 0
    >> + CategoryInfo : InvalidArgument: ( [Get-ChildItem],
    >> PSArgumentException
    >> + FullyQualifiedErrorId :
    >> Argument,Microsoft.PowerShell.Commands.GetChildItemCommand
    >

      My System SpecsSystem Spec

Get-ChildItem doesn't work properly on Registry Provider problems?

Similar Threads
Thread Thread Starter Forum Replies Last Post
Not properly installed?? 'Mailto' doesn't work Jeff Olsen Vista mail 1 07 Feb 2008
Sleep doesn't work properly at all Peter Lawton Vista General 2 07 Apr 2007
Audio doesn't work properly EddyK Vista music pictures video 3 23 Feb 2007
WriteDebug in a Provider doesn't always work John Vottero PowerShell 0 19 Feb 2007
API ExtractIcon() doesn't appear to work properly Peter Vista General 1 01 Oct 2006