GPO management using Powershell

This topic contains 4 replies, has 3 voices, and was last updated by  Yeta 4 days, 15 hours ago.

  • Author
    Posts
  • #76620

    Yeta
    Participant

    Greetings,
    What could be the reason behind the Powershell Get-GPInheritance cmdlet returning the value of null in the InheritedGpolinks property? I am able to see the inherited GPO links when I use the GPMC console.

    Regards,

    Yeta.

  • #76810

    Don Jones
    Keymaster

    As I don't work for Microsoft, it's difficult to guess what the reason might be. Have you considered filing a support ticket? The GPO cmdlets are a supported part of the operating system.

  • #76845

    Yeta
    Participant

    Thanks Don

  • #76881

    Don Reese
    Participant

    Need to see what you're trying to run, but could it be because it is a list item and it's misinterpreting what you're asking for?

    This works:

    Get-GPInheritance 'OU=OU1,DC=contoso,DC=com'

    as well as this:

    Get-GPInheritance 'OU=OU1,DC=contoso,DC=com'

    | Select-Object -ExpandProperty GpoLinks

    • #77311

      Yeta
      Participant

      Hello Don Reese,
      I tried all that. There are two properties supplying information about the type of GPO linkages (Directly or Inherited) under the Get-GPInheritance cmdlet. The Gpolinks and the InheritedGpolinks. I cant just figure it out why powershell is returning the InheritedGpolinks with a value of null, even when there's some GPOs linked to the top-level domain container.

You must be logged in to reply to this topic.