PowerShell to get AD Group Members

Please refer to the following PowerShell Script to get the AD Group Members 

Since Export-csv -append only available in Windows 2012 or PowerShell 3.0 and above, you have to use the following script in Windows 2008 R2 AD or PowerShell 2.0 environment 

Running it on your Window 2008 R2 AD Domain Controller 

If you are using Windows 2012 R2 AD Domain Controller, it will be easier by running the following with Export-CSV -append 

You will get the following output in CSV, and you will need to do some filtering in Excel to make it more presentable.