AhmedAliShaik
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,useraccount control.
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.
Need to import the input file and get the below command.
Qet-Qadgroup -id $_ | get-qadgroupmember -indirect -includeallproperties | select samaccountname,useraccount
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
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Could you elaborate more, best with an example, about what you expect to do and get?
ASKER
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.
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
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
ASKER
Thanks a lot Krzysztof.
I will wait for Qlemo's response.
I will wait for Qlemo's response.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Thanks for your reply.
I ask a new question referring the case.
I ask a new question referring the case.
ASKER
Thanks.
I did not expect to get points for that, but they are welcome!
ASKER
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.