Solved

Script to export AD attribute for distribution & security group

Posted on 2015-02-11
1
90 Views
Last Modified: 2015-02-11
Hi, kindly assist to have script (VBS or Powershell) to export below information's on Active Directory Groups (distribution & security) within a Active Directory OU.

Group name (display name)
cn
description
Email
Group Scope
Group Type
ManagedBy
date created
0
Comment
Question by:TJOSY
1 Comment
 
LVL 53

Accepted Solution

by:
Will Szymkowski earned 500 total points
ID: 40604095
Use the following command...
import-module activedirectory
Get-ADGroup -filter * -Properties name, CN, Description, mail, GroupScope, GroupCategory, ManagedBy, whenCreated | select name, CN, Description, mail, GroupScope, GroupCategory, ManagedBy, whenCreated | Export-csv "c:\groupstats.csv" -notypeinformation

Open in new window


Will.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

In a hurry?.. scroll down to "HERE's HOW TO DO IT" Section. Greetings All, I was going to post this as question/solution, but its seems more appropriate as an article considering its length.  I felt it important to illucidate all the details c…
INTRODUCTION The purpose of this document is to demonstrate the Installation and configuration of the Data Protection Manager product. Note that this demonstration was prepared on the basis of Windows OS is 2008 R2 and DPM 2010. DATA PROTECTI…
This video Micro Tutorial explains how to clone a hard drive using a commercial software product for Windows systems called Casper from Future Systems Solutions (FSS). Cloning makes an exact, complete copy of one hard disk drive (HDD) onto another d…
Windows 8 comes with a dramatically different user interface known as Metro. Notably missing from the new interface is a Start button and Start Menu. Many users do not like it, much preferring the interface of earlier versions — Windows 7, Windows X…

920 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now