Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve GPO Table(s) #128

Closed
2 tasks done
kennyparsons opened this issue Jul 14, 2023 · 4 comments · Fixed by #129
Closed
2 tasks done

Improve GPO Table(s) #128

kennyparsons opened this issue Jul 14, 2023 · 4 comments · Fixed by #129
Assignees
Labels
change request Request a new change or an improvement
Milestone

Comments

@kennyparsons
Copy link
Contributor

Description

Currently, it's only possible to see if a GPO is linked by looking at the OU table. It would be great if any of the Informational levels (1-3) added a column (info 1) or row (info 2-3) for the linkage.

Here is an example of info 3:
3-missing linkage

I would be great if the linkage could be added as a row here. In info 1, it would be a 4th column.

At minimum, it would we need a count of the number of targets the GPO is linked to (or a boolean: if ($count -eq 0) .... This is accomplished with something like this:

$dom='AD.EXAMPLE.CO<'
$GPOS=(Get-GPO -Domain $dom -All)
$GPOS | ForEach-Object { $name = $_; $count= @(((Get-GPLink -Domain $dom | Where-Object DisplayName -eq $name).Target).count); Write-Output "$name,$count"}

The above is a quick and dirty example, but it gets the point across.

We could expand on this for info 2-3. When this info level is used, each individual table for each GPO would include the actual targets, not just the count (or boolean).
desired

Additional Context

No response

Before submitting

  • I have read the documentation, and referred to the known issues before submitting this change request.
  • I have checked for previously opened & closed issues before submitting this change request.
@kennyparsons kennyparsons added the change request Request a new change or an improvement label Jul 14, 2023
@rebelinux rebelinux added this to the v0.7.14 milestone Jul 14, 2023
@rebelinux
Copy link
Collaborator

If I understood correctly,

  1. You need a column in InfoLevel1 that counts the number of times the gpo is linked to an organizational unit?

  2. And in InfoLevel 2/3, you need the list of OU to which the gpo is linked?

Regards,

@kennyparsons
Copy link
Contributor Author

Correct. Thank you

rebelinux added a commit to rebelinux/AsBuiltReport.Microsoft.AD that referenced this issue Jul 15, 2023
@rebelinux
Copy link
Collaborator

image

@rebelinux
Copy link
Collaborator

image

rebelinux added a commit to rebelinux/AsBuiltReport.Microsoft.AD that referenced this issue Jul 15, 2023
rebelinux added a commit to rebelinux/AsBuiltReport.Microsoft.AD that referenced this issue Jul 20, 2023
@rebelinux rebelinux mentioned this issue Jul 26, 2023
7 tasks
@rebelinux rebelinux mentioned this issue Jul 26, 2023
7 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
change request Request a new change or an improvement
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants