Solved

assign users home dir nd homedrive path

Posted on 2014-04-29
4
303 Views
Last Modified: 2014-05-01
I have a csv file with users sam accounts I like to take this file and run it thru powershell to assign each sam account the drive letter of H: for home drive, and map their home drive path to be \\servername\home \samacount

Finally I like to search individual OU's for users that don't have a home drive mapping and map it so that all I have to do is add the ou to the script and the script goes thru and adds the users home drive and map it in ADUC
0
Comment
Question by:gd6627
  • 2
  • 2
4 Comments
 
LVL 10

Expert Comment

by:Scott Thomson
ID: 40031261
if you can see all the users you can click each one holding control and then select properties once you have done this

This will then edit the properties of all the objects you selected.

pretty easy way to do it I say.

I cant help on the second part of your request except to say that if you change the sort fields up the top of AD you can select profile path as an option then you can easily manually look through and edit those in the same manner..?

probably just as fast as the script.
0
 

Author Comment

by:gd6627
ID: 40032886
I need to be able to automate the process instead of manually doing it .
0
 
LVL 10

Accepted Solution

by:
Scott Thomson earned 500 total points
ID: 40032900
It might be harder to automate this task than to do it manually.

If you arrange by home path then it will take you 35 seconds per ou..

Much less than a script.
0
 

Author Closing Comment

by:gd6627
ID: 40034652
Ok Thank you
0

Featured Post

Microsoft Certification Exam 74-409

Veeam® is happy to provide the Microsoft community with a study guide prepared by MVP and MCT, Orin Thomas. This guide will take you through each of the exam objectives, helping you to prepare for and pass the examination.

Question has a verified solution.

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

A recent project that involved parsing Tableau Desktop and Server log files to extract reusable user queries for use in other systems. I chose to use PowerShell to gather the data, and SharePoint to present it...
This article demonstrates probably the easiest way to configure domain-wide tier isolation within Active Directory. If you do not know tier isolation read https://technet.microsoft.com/en-us/windows-server-docs/security/securing-privileged-access/s…
This video shows how to use Hyena, from SystemTools Software, to bulk import 100 user accounts from an external text file. View in 1080p for best video quality.
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an antispam), the admini…

679 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