Solved

Script to export AD attribute for distribution & security group

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

The Ultimate Checklist to Optimize Your Website

Websites are getting bigger and complicated by the day. Video, images, custom fonts are all great for showcasing your product/service. But the price to pay in terms of reduced page load times and ultimately, decreased sales, can lead to some difficult decisions about what to cut.

Question has a verified solution.

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

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…
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…
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…

707 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