Quantcast
Channel: Windows PowerShell forum
Viewing all articles
Browse latest Browse all 21975

get-adgroup -filter * | I want to get more than just SAMAccountName properties --- I am getting greedy :-)

$
0
0

Hello,

PowerShell maestro Mike Laughlin helped me develop this .ps1 script which gathers a .csv list of all AD groups with all their AD user account members (GROUP <group name> and MEMBER <SAMAccountName>) and it works very well.  I am getting greedy and want to .csv export even more information on the AD user account properties.  Based on the .ps1 below, how/if can I modify this script to get even more AD group member AD user account properties such as:

  GROUP                         MEMBER                          USER NAME                     ENABLED              LAST LOGON

<group name>         <SAMAccountName>             <DisplayName>                <Enabled>          <LastLogonDate>

I am getting more impressed with PowerShell v4.0 capabilities and the more I automate the more greedy I want to do more.  

Thanks to all PowerShell superstars for lending your expertise on this Windows PowerShell forum!


Matt


Viewing all articles
Browse latest Browse all 21975

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>