API Reference
Command
Get-ADXGpoScriptSecurity
Analyzes GPO scripts and referenced UNC paths for risky ACLs, plaintext credentials, and nonexistent shares.
Examples
Example 1
Get-ADXGpoScriptSecurity -Domain 'contoso.com' -Name 'Default Domain Policy'
Example 2
Get-ADXGpoScriptSecurity -Domain 'contoso.com' -Id '31B2F340-016D-11D2-945F-00C04FB984F9'
Common Parameters
This command supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable.
For more information, see about_CommonParameters.
Syntax
Get-ADXGpoScriptSecurity -Name <string> [-Domain <string>] [-IncludeAcl] [<CommonParameters>]#Parameter set:
By NameParameters
- Name string
- GPO display name (alternative to -Id).
- Domain string
- DNS domain name hosting the GPO; defaults to current domain.
- IncludeAcl SwitchParameter
- Include ACL lookup for referenced UNC paths (NETLOGON/SYSVOL) and script files.
Outputs
ADPlayground.Gpo.ScriptSecurityReport
Get-ADXGpoScriptSecurity -Id <Guid> [-Domain <string>] [-IncludeAcl] [<CommonParameters>]#Parameter set:
By IdParameters
- Id Guid
- GPO GUID (groupPolicyContainer objectGuid).
- Domain string
- DNS domain name hosting the GPO; defaults to current domain.
- IncludeAcl SwitchParameter
- Include ACL lookup for referenced UNC paths (NETLOGON/SYSVOL) and script files.
Outputs
ADPlayground.Gpo.ScriptSecurityReport
Get-ADXGpoScriptSecurity [-Domain <string>] [-IncludeAcl] [<CommonParameters>]#Parameter set:
Set 3Parameters
- Domain string
- DNS domain name hosting the GPO; defaults to current domain.
- IncludeAcl SwitchParameter
- Include ACL lookup for referenced UNC paths (NETLOGON/SYSVOL) and script files.
Outputs
ADPlayground.Gpo.ScriptSecurityReport
Get-ADXGpoScriptSecurity -Forest [-IncludeAcl] [<CommonParameters>]#Parameter set:
By ForestParameters
- Forest SwitchParameter
- Scan all domains in the current forest.
- IncludeAcl SwitchParameter
- Include ACL lookup for referenced UNC paths (NETLOGON/SYSVOL) and script files.
Outputs
ADPlayground.Gpo.ScriptSecurityReport