Link to home
Start Free TrialLog in
Avatar of AhmedAliShaik
AhmedAliShaikFlag for India

asked on

Get-qadgroup from a list of files which has groups

I have an input file with 10 groups.

Need to import the input file and get the below command.

Qet-Qadgroup -id $_ | get-qadgroupmember -indirect -includeallproperties | select samaccountname,useraccountcontrol.

Just need the syntax of how to import a group and get the required output.

Is there any similar command in windows powershell  to accept group of users and get the nested group members name with useraccountcontrol.
ASKER CERTIFIED SOLUTION
Avatar of Krzysztof Pytko
Krzysztof Pytko
Flag of Poland 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 AhmedAliShaik

ASKER

Hi Krzysztof,

After a long time . Good to meet u here virtually.

Will try the command and post you.

Do  we have the equivalent windows powershell script, as i have a script to pull local admintrator users from a list of computers in windows powershell, i can club both the commands as per requirement.
Could you elaborate more, best with an example, about what you expect to do and get?
As the quest command is giving the nested members with samaccountname & useraccountcontrol from the input groups.

Can we get the same output from Windows Powershell script.

Kindly let you know if u need more clarification.
Hi Ahmed :)

if you mean Windows PowerShell module for AD, yes it is also possible using Get-ADUser cmd-let

If you wish to use regular PowerShell v1.0 or 2.0, you need to use some other queries like ADSI but I have no experience with that, so you need to wait for other experts (i.e Qlemo)

Krzysztof
Thanks a lot Krzysztof.

I will wait for Qlemo's response.
SOLUTION
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
Thanks for your reply.

I ask a new question referring the case.
Thanks.
I did not expect to get points for that, but they are welcome!