Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I saw a question that was similar however the answer they got was in vbscript. (http://serverfault.com/questions/33861/powershell-command-prompt-create-folders-from-ad-group-members)

I need to create a series of folders based on the mambership of an AD group.

I would like a powershell script so that I can get the users out of an ad group then create the folders on the Fileserver. I will then like to put permissions on those folders (I believe this is using get-acl and set-acl).

If anyone has any good book titles for learning powershell could you let me know also please?

share|improve this question
add comment

2 Answers

up vote 2 down vote accepted

Books for ref materials:

Free Books:

Paid Books -

Hope this helps! And there are lots of others too. Ed Wilson has some do amazon search and read reviews and ask, it's a great community.

share|improve this answer
add comment

I'm working on something similar, except the users already have folders on a file server, it's just in the wrong place, but not all are in the wrong place. I'm using Quest AD Management Shell to aide me and have gotten as far as scraping AD for users with the homeDirectory and homeDrive attribute and logging it into a CSV &/or HTML. Looks like this:

....change default otherwise it's 1000 or something like that

Set-QADPSSnapinSettings -DefaultSizeLimit 0

....grab users with homedrive and homedirectories and log to csv file

Get-QADUser | Where {$.'HomeDirectory' -ne $null -and $.'HomeDrive' -ne ''} | Select-Object -Property 'Name', 'HomeDrive', 'HomeDirectory' | Sort-Object Name | ConvertTo-CSV | Set-Content D:\scripts\Reports\HomeDrive.csv

....change ConvertToHTML | Set-Content blahblahblah.html for html file output

share|improve this answer
    
Thanks that Quest tool is quite useful. –  JohnyV Mar 1 '10 at 0:26
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.