mirror of
https://github.com/EvotecIT/GPOZaurr.git
synced 2026-09-04 14:45:23 +00:00
Remove dead code
This commit is contained in:
@@ -44,25 +44,6 @@
|
|||||||
Write-Warning "Get-GPOZaurrPermission - Using SkipAdministrative or SkipWellKnown while looking for Unknown doesn't make sense as only Unknown will be displayed."
|
Write-Warning "Get-GPOZaurrPermission - Using SkipAdministrative or SkipWellKnown while looking for Unknown doesn't make sense as only Unknown will be displayed."
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
<#
|
|
||||||
if ($ResolveAccounts) {
|
|
||||||
$Accounts = @{ }
|
|
||||||
foreach ($Domain in $ForestInformation.Domains) {
|
|
||||||
$QueryServer = $ForestInformation['QueryServers'][$Domain]['HostName'][0]
|
|
||||||
$DomainInformation = Get-ADDomain -Server $QueryServer
|
|
||||||
$Users = Get-ADUser -Filter * -Server $QueryServer -Properties PasswordLastSet, LastLogonDate, UserPrincipalName
|
|
||||||
foreach ($User in $Users) {
|
|
||||||
$U = -join ($DomainInformation.NetBIOSName, '\', $User.SamAccountName)
|
|
||||||
$Accounts[$U] = $User
|
|
||||||
}
|
|
||||||
$Groups = Get-ADGroup -Filter * -Server $QueryServer
|
|
||||||
foreach ($Group in $Groups) {
|
|
||||||
$G = -join ($DomainInformation.NetBIOSName, '\', $Group.SamAccountName)
|
|
||||||
$Accounts[$G] = $Group
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
#>
|
|
||||||
}
|
}
|
||||||
Process {
|
Process {
|
||||||
foreach ($Domain in $ForestInformation.Domains) {
|
foreach ($Domain in $ForestInformation.Domains) {
|
||||||
|
|||||||
Reference in New Issue
Block a user