Comments (4)
There is a reason why there are exclusions in place. It may or may not be what you want in output.
$OUs = Get-GPOZaurrOrganizationalUnit
$Ous | Format-Table
Get-GPOZaurrOrganizationalUnit -Verbose -Option Unlink -Exclusions @(
'OU=Groups,OU=Production,DC=ad,DC=evotec,DC=pl'
) | Format-Table
Get-GPOZaurrOrganizationalUnit -Verbose -ExcludeOrganizationalUnit @(
'*,OU=Production,DC=ad,DC=evotec,DC=pl'
) | Format-Table
Invoke-GPOZaurr -Type GPOOrganizationalUnit -Online -FilePath $PSScriptRoot\Reports\GPOZaurrOU.html -Exclusions @(
'*OU=Production,DC=ad,DC=evotec,DC=pl'
'*OU=Accounts,OU=Administration,DC=ad,DC=evotec,DC=xyz'
)
I guess I could mark that OU excluded by default.
As for the 2nd problem - are you sure? The GPOList report doesn't check if there are computers/users in the OU. It checks only for links, and it does this forest-wide. It doesn't care if it's empty OU or not. Maybe it's linked but the link is not enabled, which we treat as non-working.
Works fine for me:
Test-GPO-3, Test-GPO-4 are linked, but link disabled. Test-GPO-1, and Test-GPO2 are linked and link enabled.
from gpozaurr.
On the second issue, sorry, yes you are correct. The link was disabled. Apologies as we almost never disable, just unlink.
As for the original issue, I didn't realize exclusions were possible. However, after reviewing the documentation in the Docs
directory, I'm not clear on what all excluding an OU does.
My suggestion is merely, by default, to not consider it a problem in the "Group Policy Organizational Units" report that there is an empty OU with GPOs as long as it is the default OU for new computers joining the domain.
from gpozaurr.
Ye, i'll add it for both computers and users, as this is a common scenario for both. Docs is built on comment based help. Most of the effort is put into the HTML or to examples.
In case of adding an exclusion the report marks the Status column as Excluded.
Basically a summary changes, HTML table shows this, and also "fix" code shows up those exclusions to be used if someone would like to unlink those GPOs.
from gpozaurr.
Now that I think on excluding by default redirected OU's... it's a question what should be excluded. Direct OU, or subou's as well. Depending on how someone organized their OU's i guess the safest bet is to just exclude the redirected OU and leave others as they were for subject to deletion or manual exclusion.
from gpozaurr.
Related Issues (20)
- Sysvol property in object returned by Get-GPOZaurrPermissionConsistency contains whitespace
- Question - Organizational Unit HOT 4
- SplitReports ALWAYS splits reports HOT 1
- Get-LocalComputerSid - Error: You cannot call a method on a null-valued expression HOT 8
- Running just invoke-gpozaurr is splitting reports every time. HOT 8
- Add -Credential parameter to pass PSCredential object HOT 3
- Filename processing issue HOT 3
- Group Policy Content - GPO Subfolders HOT 1
- Empty OU detection doesn't acknowledge AD printers HOT 9
- ccannot find AD Forest
- Implement support Evergreen ADMX with consent of author HOT 2
- Detect GPOs with missing files and report on it HOT 8
- Extra spaces in property name 'Id' in Get-GPOZaurrPermissionConsistency? HOT 1
- GPOConsistency - Missing Method HOT 2
- AGPM using GMSA not shown as "Non-Administrative, but approved Owners (for example AGPM):" HOT 5
- Adding additional GPO dictionary entries HOT 1
- Is GPOzaurr checking changed/unusual "gPCFileSysPath" AD attribute in an GPO? HOT 2
- GPOs created using 3rd party extensions recognized as empty even if they are not HOT 11
- Stuck on Generating HTML report HOT 9
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gpozaurr.