Last active
October 18, 2023 14:53
-
-
Save kevinblumenfeld/6638e2254aac08b33e59f7274c10887b to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[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