The mostly harmless pedant. ([info]stormdog) wrote,
@ 2007-07-19 11:58:00
Previous Entry  Add to memories!  Tell a Friend!  Next Entry
Current mood: working

Systems admin question if I may:


I'm trying to export a list of all the distribution groups in my company's domain into an Excel spreadsheet. The Active Directory Users and Computers plugin that comes with the Microsoft adminpak doesn't let you export directly to Excel, and it's all I've ever used.

I downloaded something called Powershell, along with a GUI called PowerGUI since I don't speak Powershell's command-line language. It seems like it would be great if it all worked, but I can't get it to work the way I want it to. When sorting by group type, I can't distinguish distribution groups from security groups. Plus, it stops at 1000 items in the same folder and I can't find a way to increase the limit. Plus, no matter how I set the filtering options, nothing filters out. Maybe because Powershell wasn't originally intended to manage active directory (it's for Exchange 2007 and I installed a plugin to manage AD) it doesn't quite work right?

Anyway, can anyone who reads my journal tell someone, like me, who's fairly new to this sort of thing, the best way to learn how to do this sorting and exporting quickly? Is there a tool out there? Do I have to learn a scripting language?

Thanks!




(Post a new comment)


[info]sideband
2007-07-19 05:33 pm UTC (link)
If it'll export to CSV, do that (Comma Separated Values), then import it into Excel and then make it look pretty.

Otherwise, what formats will it export to? (Micro$oft sucks, BTW. It's a 3 second operation under *NIX)

(Reply to this) (Thread)


[info]stormdog
2007-07-19 05:49 pm UTC (link)
You know, I was going to say that it doesn't really export to much of anything, but I just poked around a little more and, you know, I guess it will export to csv. Thanks for suggesting it; for some reason I had it in my head that it wouldn't. Sometimes you need somebody to kick you in the butt and point out the simple way to do things....

Of course, it would still be nice if Powershell worked for me, but oh well.

(Reply to this) (Parent)

PowerGUI
[info]dmitrysotnikov.wordpress.com
2007-07-20 07:49 pm UTC (link)
Came across this post and thought I might be able to help troubleshooting PowerGUI(by the way, have you tried posting to discussion forums at http://PowerGUI.org - this is the best way to have someone answer the questions pretty quick - a lot of smart guys over there).

1. 1000 limit - yes, this is the default which we need to change. Will update the pack next week. At the moment, here's how you can remove the limit:
a. Right-click the node (e.g. Users).
b. Select Properties on the shortcut menu.
c. In the Parameters list, scroll down to SizeLimit and set it to 0.

This will remove the default 1000 limit.

2. Filters: where do you try to use them? On an OU? I am guessing that we might have a bug in the way we work with objects during OU browsing (again hopefully we'll get it fixed next week). Instead of browsing OUs try just clicking Groups and filtering there and let me know if that works.

3. Excel export - as was already suggested, "Report as CSV" in the Actions: Common should do the trick.

Let me know if there's anything else keeping you from moving on.

Thanks for locating the issues and hope I could help.

Dmitry

(Reply to this)


Create an Account
Forgot your login or password?
Login w/ OpenID
English • Español • Deutsch • Русский…