Solved

Script to export AD attribute for distribution & security group

Posted on 2015-02-11
1
100 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Ever notice how you can't use a new drive in Windows without having Windows assigning a Disk Signature?  Ever have a signature collision problem (especially with Virtual Machines?)  This article is intended to help you understand what's going on and…
Citrix XenApp, Internet Explorer 11 set to Enterprise Mode and using central hosted sites.xml file.
In this video, we discuss why the need for additional vertical screen space has become more important in recent years, namely, due to the transition in the marketplace of 4x3 computer screens to 16x9 and 16x10 screens (so-called widescreen format). …
With the advent of Windows 10, Microsoft is pushing a Get Windows 10 icon into the notification area (system tray) of qualifying computers. There are many reasons for wanting to remove this icon. This two-part Experts Exchange video Micro Tutorial s…

696 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