MilesLogan
asked on
Verify if Account is in a certain AD group
Hi EE
I use the search below to get me certain accounts within my environment , can someone help me modify it so it can also verify
if these "x" accounts are also members of the " X Users Group" ? so the xData file can also show if each of these accounts are members
of the X Users Group ?
Get-ADUser -Filter {SamAccountName -like "*X"} -properties * | ? { $_.whenCreated -ge (get-date "December 1, 2014") -and ($_.samaccountname.length -eq 10) } | Select SamAccountName,description ,Title | Export-csv "xData_$(Get-date -f dd-MM-yyy-hhmmss).csv" -NTI
I use the search below to get me certain accounts within my environment , can someone help me modify it so it can also verify
if these "x" accounts are also members of the " X Users Group" ? so the xData file can also show if each of these accounts are members
of the X Users Group ?
Get-ADUser -Filter {SamAccountName -like "*X"} -properties * | ? { $_.whenCreated -ge (get-date "December 1, 2014") -and ($_.samaccountname.length -eq 10) } | Select SamAccountName,description
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER