views:

35

answers:

2

I want to make a home directory for each user of every group in AD using a batch script.

the users personal directories (my documents, ...) should be stored in there as well.

the path should be as following:

\Fileserver{group name}{user name}

can someone give me some pointers on how to achieve this?

A: 

This is impossible to solve, I'm very sorry to disappoint you.

Bill Gates
So it isn't possible to retrieve the group from the given user? Maybe with a .NET application.
Niels Kootstra
Simply put, no. Sorry to disappoint you.
Bill Gates
A: 

Nothing is impossible...

You may not be able to do it with a batch script..but you can with .NET app.

You'll have to read the users and groups from the Active Directory & then use impersonation to create folders on the fileserver for each group/user combo.

Ed B