Solved

Script to export AD attribute for distribution & security group

Posted on 2015-02-11
1
88 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

Threat Intelligence Starter Resources

Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

Join & Write a Comment

This article describes how to set permissions to allow a limited-permissions user to start and stop a particular System Service.   It is always best to give users only the permissions that they need to perform their job, so tweaking particular permi…
Many admins will agree: WSUS is is a nice invention but using it on the client side when updating a newly installed computer is still time consuming as you have to do several reboots and furthermore, the procedure of installing updates, rebooting an…
Windows 8 came with a dramatically different user interface known as Metro. Notably missing from that interface was a Start button and Start Menu. Microsoft responded to negative user feedback of the Metro interface, bringing back the Start button a…
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…

747 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