Skip to content

Instantly share code, notes, and snippets.

@kevinblumenfeld
Last active October 18, 2023 14:53
Show Gist options
  • Save kevinblumenfeld/6638e2254aac08b33e59f7274c10887b to your computer and use it in GitHub Desktop.
Save kevinblumenfeld/6638e2254aac08b33e59f7274c10887b to your computer and use it in GitHub Desktop.
[Net.ServicePointManager]::SecurityProtocol = [Net.ServicePointManager]::SecurityProtocol -bor [Net.SecurityProtocolType]::Tls12
Install-Module Posh365 -force
Install-Module GPOZaurr -force
Install-Module Posh365 -force
Import-Module Posh365 -force
Import-Module GPOZaurr -force
Import-Module Posh365 -force
$GPOList = Get-GPOZaurr
$GPOList | Select-Object @(
'DisplayName'
@{
Name = 'Links'
Expression = { $_.Links.Replace(';', "`r`n") }
}
@{
Name = 'UserSettings'
Expression = { $_.UserSettingsAvailable }
}
'UserEnabled'
@{
Name = 'ComputerSettings'
Expression = { $_.ComputerSettingsAvailable }
}
'ComputerEnabled'
) | Export-PoshExcel -Path ((Join-Path ([Environment]::GetFolderPath("Desktop")) GPOByOU.xlsx))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment