mirror of
https://github.com/EvotecIT/GPOZaurr.git
synced 2026-07-26 11:49:17 +00:00
25 lines
762 B
PowerShell
25 lines
762 B
PowerShell
Import-Module "$PSScriptRoot\..\GPoZaurr.psd1" -Force
|
|
|
|
# Use Save-GPOZaurrFiles -GPOPath $ENV:USERPROFILE\Desktop\GPOExport
|
|
|
|
$OutputTranslation = Invoke-GPOZaurr -GPOPath 'C:\Support\GitHub\GpoZaurr\Ignore\GPOExport'
|
|
$OutputTranslation | Format-Table
|
|
$Output = Invoke-GPOZaurr -GPOPath 'C:\Support\GitHub\GpoZaurr\Ignore\GPOExport' -NoTranslation
|
|
$Output | Format-Table *
|
|
|
|
#$Output.LugsSettings.LocalUsersAndGroups | Format-List *
|
|
|
|
$GPOEntry = $Output.LugsSettings.LocalUsersAndGroups[0]
|
|
|
|
$CreateGPO = @{}
|
|
foreach ($User in $GPOEntry.User) {
|
|
# $User | Format-Table
|
|
# $User.Properties | Format-Table
|
|
}
|
|
|
|
|
|
foreach ($Group in $GPOEntry.Group) {
|
|
#$Group | Format-Table
|
|
$Group.Properties | Format-Table
|
|
$Group.Properties.Members | Format-Table
|
|
} |