Validate group members

This topic contains 8 replies, has 2 voices, and was last updated by Profile photo of shanu shanu 3 years, 9 months ago.

  • Author
    Posts
  • #10066
    Profile photo of shanu
    shanu
    Participant

    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

  • #10067
    Profile photo of shanu
    shanu
    Participant

    (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

  • #10068
    Profile photo of Dhandapani K
    Dhandapani K
    Participant

    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.

  • #10069
    Profile photo of Dhandapani K
    Dhandapani K
    Participant

    check out this Pic

  • #10072
    Profile photo of shanu
    shanu
    Participant

    Thank you Dhandapani K.

  • #10074
    Profile photo of Dhandapani K
    Dhandapani K
    Participant

    Hi Shanthi,

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

  • #10084
    Profile photo of shanu
    shanu
    Participant

    Yeah it is done Dhandapani..:)

  • #10091
    Profile photo of Dhandapani K
    Dhandapani K
    Participant

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

  • #10143
    Profile photo of shanu
    shanu
    Participant

    Thats great!!

You must be logged in to reply to this topic.