Skip to content

Instantly share code, notes, and snippets.

@MHaggis
Created March 29, 2023 17:30
Show Gist options
  • Select an option

  • Save MHaggis/5ac3b82b2c4a487592787f17892c5a6d to your computer and use it in GitHub Desktop.

Select an option

Save MHaggis/5ac3b82b2c4a487592787f17892c5a6d to your computer and use it in GitHub Desktop.

GPO Inventory

[powershell://GPOInventory]
script = Get-GPO -All | Select-Object DisplayName, Id, GpoStatus, Description, UserVersion, ComputerVersion, CreationTime, ModificationTime | ConvertTo-Csv -NoTypeInformation | Write-Output
schedule = 0 0 * * *
#schedule = */1 * * * *
sourcetype = PwSh:GPOInventory
index=win
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment