Author Posts

September 11, 2013 at 11:33 pm

I am trying to check members under a group in Server Manager in Windows 2008 R2 using Powershell. For this I used
#AD Drive not created through the below step
$Env:ADPS_LoadDefaultDrive = 0
#Module imported
Import-Module ActiveDirectory
#Get list of groupmembers
Get-ADGroupMember -identity “Administrators” | select name | Export-csv -path C:\Groupmembers.csv -NoTypeInformation

September 11, 2013 at 11:35 pm

(Post Script)
My question is am held up with an error after executing the script saying
"Get-ADGroupMember : The server has rejected the client credentials."
Help me in getting through it

September 11, 2013 at 11:47 pm

Hi Shanthi,

1) have you opened your powershell with administrative credentials (Run as Administrator)
2) you can use -credential to specify credential to get the information.

September 11, 2013 at 11:52 pm

check out this Pic

September 12, 2013 at 1:56 am

Thank you Dhandapani K.

September 12, 2013 at 5:06 am

Hi Shanthi,

Is you prob solved?. u got the output.
Is it worked?
Just let me know plz.

September 12, 2013 at 10:09 am

Yeah it is done Dhandapani..:)

September 12, 2013 at 10:56 am

Thanks for your reply. this is the first question I answered in this site. also in my career in powershell.