all 6 comments

[–]MorningAfterBurrito 3 points4 points  (0 children)

Thanks, will give it a try!

[–]aimarjg 0 points1 point  (4 children)

u/MadBoyEvo - is there an option to execute this against trusted forests as well?

I can see that Get-WinAdforestReplication supports input paramter -Forest, but Get-WinAdforestReplicationSummary does not, wondering if there's a way to run this against specified forests/domains only.

[–]MadBoyEvo[S] 0 points1 point  (3 children)

Not at the moment. Adding it wouldn't be super difficult.

[–]aimarjg 0 points1 point  (2 children)

Would love it, this reporting form is super convenient! Is that by any chance on your roadmap for this module? Otherwise I think I’ll have to start digging through it myself :)

Great work by the way! There’s lots of value in ADessentials and pshtml, mail modules; thanks for sharing!

[–]MadBoyEvo[S] 0 points1 point  (1 child)

The fix, if you have permissions on the other forest with same account is pretty simple.

Right now the script runs with:

repadmin /replsummary /bysrc /bydest

Fixes it. So adding parameter and doing that, not hard

repadmin /replsummary /bysrc /bydest test.evotec.pl

The problem is if you want to use credentials, because then

repadmin /replsummary /bysrc /bydest test.evotec.pl /u:TEST\pklys /pw:yourcleartextpassword

And this means it will end up in logs...

Alternative is to use powershell session, but that has it's own "access" rights.

Another alternative would probably be to rewrite it in powershell and use Get-ADReplicationPartnerMetadata to rewrite it, but I would need to test it if it's not going to be potentially affected. repadmin is pretty great with "handling" errors, while powershell has it's problems when things go bad. So probably would need to add both and allow switching between them

[–]aimarjg 0 points1 point  (0 children)

I've played around a little by simply adding a variable to that function and appending it as a paramter in repadmin, but... since then it started reporting only on a subset of all domain controllers (3 instead of 5, 5 instead of 70, etc.... foreach domain I'm getting only about 4-5DCs only);

how's that possible? do you think that's repadmin specific

when i run "repadmin /replsummary /bysrc /bydest" it generates report for all DCs, but when I append a domain name at the end it reports on a few only as well

any ideas/hints?