Link to home
Start Free TrialLog in
Avatar of Jey_P
Jey_PFlag for Canada

asked on

AD scripts

Hi EE,

I looking for script to quarry  Active directory domain group SID IDs and  get the output in txt format. I am prepared to use CMD batch file or vbs .

Thank you in advance
ASKER CERTIFIED SOLUTION
Avatar of Will Szymkowski
Will Szymkowski
Flag of Canada image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Jey_P

ASKER

Thank you . We do have multiple domain in AD and We are on process to migrated  some of the groups in one domain to other , If this case how do I pull from sID History of migrated group using this script.
Not a probelm, i have modified the script below, to add SIDHistory

Import-module activedirectory
Get-ADGroup -Filter * -Properties Name, SID, SIDHistory | select Name, SID, SIDHistory | out-file "c:\GroupSIDs.txt"

Open in new window


Will.
Avatar of Jey_P

ASKER

I've requested that this question be closed as follows:

Accepted answer: 0 points for Jey_P's comment #a40713284
Assisted answer: 500 points for Will Szymkowski's comment #a40713023

for the following reason:

Thanks you.
Why would this be an Assist, why not just award points to the solution and close the question rather than waiting for a moderator.

Will.