My powershell skills are uh…  well, not good, BUT… I’ll give it a try, haha.


Jesse Rink
Source One Technology, Inc.
HP Partner
262 993 2231

From: [email protected] [mailto:[email protected]] On 
Behalf Of Charles F Sullivan
Sent: Wednesday, July 15, 2015 2:14 PM
To: [email protected]
Subject: RE: [NTSysADM] RE: Splitting User Home Folders

That would probably be the best approach. You can easily get a list of user 
names, just doing a dir of the folder names (since they should be the same). 
Break those into 3 text files, the run set-aduser against that file. (I don’t 
have time to get the exact syntax.)

When I had to do the same several years ago I used the AD command dsmod. I can 
give you the syntax I used for that because I saved it:

for /F %x in (homedrives.txt) do (dsmod user 
"CN=%x,OU=useraccounts,DC=domain,DC=com" -hmdir 
"\\fileserver1\users\%x<file:///\\fileserver1\users\%25x>" -hmdrv Z:) 
>>createhomedirs.log

From: [email protected]<mailto:[email protected]> 
[mailto:[email protected]<mailto:[email protected]>] 
On Behalf Of Melvin Backus
Sent: Wednesday, July 15, 2015 2:51 PM
To: [email protected]<mailto:[email protected]>
Subject: [NTSysADM] RE: Splitting User Home Folders

Certainly sounds like a script it in Powershell situation.

--
There are 10 kinds of people in the world...
         those who understand binary and those who don't.

From: [email protected]<mailto:[email protected]> 
[mailto:[email protected]] On Behalf Of Kelsey, John
Sent: Wednesday, July 15, 2015 1:42 PM
To: [email protected]<mailto:[email protected]>
Subject: [NTSysADM] Splitting User Home Folders

Currently, all of our user home folders are all lumped together under a single 
DFS share called ‘users’.  The folder has become so large now that navigating 
the tree in explorer and file backup/restores are taking for-ev-er to complete. 
 So we’re looking at ways to split these up into multiple folders, maybe 
alphabetically…A-J, K-S, etc.

If I create this kind of structure in DFS, is there some kind of automated way 
to update the users account to point to the new folder?  Is there a better way 
to skin this cat?

Thanks all.

***************************************
John C. Kelsey
Penn Highlands DuBois
•:  814.375.3073
•  :   814.375.4005
•:   [email protected]<mailto:[email protected]>
***************************************
[PHH ESig Logo 150dpi]


This email and any attached files are sensitive in nature and intended solely 
for the intended recipient(s). If you are not the named recipient you should 
not read, distribute, copy or alter this email. Any views or opinions expressed 
in this email are those of the author and do not represent those of Penn 
Highlands Healthcare or its affiliates.. Warning: Although precautions have 
been taken to make sure no viruses are present in this email, the company 
cannot accept responsibility for any loss or damage that arise from the use of 
this email or attachments.

Reply via email to