Friday, November 03, 2006

Script to MD

Then I took the sAMAccountName column by itself and ran it through for /f with a batch file using RMTSHARE (a Microsoft utility for remotely creating shares):
quote:

md y:\users\%1
rmtshare \\servername\%1$=f:\users\%1 /grant domain\user:full /remove everyone /grant "domain\Domain Admins":full

0 Comments:

Post a Comment

<< Home