Windows Vista Forums
Vista Forums Home Join Vista Forums Windows 7 Forum Vista Tutorials Tags
Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks.

Go Back   Vista Forums > Misc Newsgroups > VB Script

Vista - Set homeDrive and homeDirectory from excel spreadsheet

Reply
 
Old 02-27-2009   #1 (permalink)
Johnathan


 
 

Set homeDrive and homeDirectory from excel spreadsheet

I have a set of scripts that I've got worked out to create profile and home
folders then set the Terminal Server Profile path and home drive and path.
The last piece of the puzzle is I want to set the regular homeDrive and
homeDirectory attributes in AD via the same script and excel file. I've
tried various methods (objUser.PUT and objUser.Homedirectory) and none of
them seem to be working correctly. Does anybody have any ideas?

My System SpecsSystem Spec
Old 03-03-2009   #2 (permalink)
Richard Mueller [MVP]


 
 

Re: Set homeDrive and homeDirectory from excel spreadsheet


"Johnathan" <Johnathan@xxxxxx> wrote in message
news:4DB6A111-5D80-466D-9BCC-35476107DCFE@xxxxxx
Quote:

>I have a set of scripts that I've got worked out to create profile and home
> folders then set the Terminal Server Profile path and home drive and path.
> The last piece of the puzzle is I want to set the regular homeDrive and
> homeDirectory attributes in AD via the same script and excel file. I've
> tried various methods (objUser.PUT and objUser.Homedirectory) and none of
> them seem to be working correctly. Does anybody have any ideas?
This example is for creating users from a spreadsheet but it might help:

http://www.rlmueller.net/CreateUsers.htm

The value of homeDrive should have the semicolon, for example "H:". Search
the script for strHomeDrive and strHomeDirectory to see how it is handled.
The script creates the home directory if it does not exist. You may not need
that. Also the script runs cacls to assign permissions for the user.

--
Richard Mueller
MVP Directory Services
Hilltop Lab - http://www.rlmueller.net
--


My System SpecsSystem Spec
Reply

Thread Tools


Similar Threads
Thread Forum
create Excel spreadsheet without loading Excel VB Script
Excel Spreadsheet Problem Microsoft Office
Excel Spreadsheet Help Software
Adding headers to an excel spreadsheet PowerShell
EXCEL spreadsheet running slow Vista performance & maintenance


Vista Forums is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media Ltd

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46