Script

  • Thread starter Thread starter Help
  • Start date Start date
H

Help

Have about 120 people in an AD Domain that have no user
home folders. Need to create user home folders on a file
and print server. Does anyone have a good bat file to
accomplish this task?? Thanks
 
Have about 120 people in an AD Domain that have no user
home folders. Need to create user home folders on a file
and print server. Does anyone have a good bat file to
accomplish this task?? Thanks


If you use tip 4646 in the 'Tips & Tricks' at http://www.jsiinc.com

with

DomUsers "call D:\batch\test.bat %user%"

D:\batch\test.bat could contain:

@echo off
pushd \\ServerName\Users
MD %1
net user %1 /homedir:\\ServerName\Users\%1 /domain
popd



Jerold Schulman
Windows: General MVP
JSI, Inc.
http://www.jsiinc.com
 
Back
Top