locked
need a powershell script to find members of local group- 'administrators' on a no. of servers. RRS feed

  • Question

  • need a powershell script to find members of local group- 'administrators' on a no. of servers.

    I have a list of servers (names & IPs) in .csv file for which i need to list members of local group- 'administrators'. I am able to do it with a powershell script.

    grp-mem.ps1

    ============================

    import-csv .\serverlist.csv | %{Get-AdminGroupMembers -ComputerName $_.ServerName} | export-csv -notype C:\membershipdump.csv

    ============================

    It gives direct member of 'administrators' grp i.e., users (local & domain) and groups (normally domain grps). Now I need a script to query AD for further members of these domain groups, and query should list the further nested groups until it gets user accounts.

    • Changed type Bill_Stewart Wednesday, September 18, 2013 7:38 PM User asked a question
    • Moved by Bill_Stewart Monday, December 30, 2013 8:31 PM Abandoned thread
    Wednesday, September 18, 2013 7:36 PM

All replies