Skip to Main Content

Security Software

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

VBScript to create a Home Directory for a user

808915Nov 23 2010 — edited Feb 9 2011
Hi,

We have a requirement, where we need to create a home directory for a user that is created in AD. We have 2 different domains where the home directory for the user can be created, say ABC and XYZ. To create the directory, we are using a VBScript which is being called from a piece of JAVA Code.

Two things that are supposed to be achieved related to the home directory creation is:

1. The directory should be created with the name of the user in one of the 2 domains mentioned above.
2. Proper access privileges should be granted to the user on the created folder.

As far, we have been able to achieve this partially.

Problem : Out of the 2 domains (ABC and XYZ), we are able to create the home directory for the user and provide it with proper privileges in domain ABC. But for the domain XYZ, only the home directory is created and we are not able to grant proper permissions to the user.

Possible Solution we are aware of :
We can include a logic in VBScript, which would run the VBS with the domain admin account ID and would create the folder (home directory) for the newly created user in AD, and would provide the folder with suitable permissions.

Can you please provide me with any such lines of code which would help me solve the issue.

Many thanks,
Nikhil
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Mar 9 2011
Added on Nov 23 2010
5 comments
171 views