Heres a script I run for manually editing and adding rights etc. Its
nothing fancy but works in a pinch, and Im pretty sure it can be used
against a batch list of users.
Change the paths as needed, but basically run this as prog.bat username
(i.e %1).
Win2k is better at making the dirs for you though, so this isnt required
as much, but it setups up a home dir, and roaming prof dir.. And maps
the hidden share.
---------------------------
REM Make Needed Dirs
echo "Making Directories"
md d:\users\%1
md d:\profile\%1
REM Set Attributes
echo "Setting Attributes"
cacls d:\profile\%1 /G %1:C
cacls d:\profile\%1 /E /P "Domain Admins":F
cacls d:\users\%1 /G %1:C
cacls d:\users\%1 /E /P "Domain Admins":F
REM Create User Shares
net share %1$=D:\Users\%1
--------------------------
-----Original Message-----
From: Q-LABS TechLists [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, August 29, 2001 4:25 PM
To: NT System Admin Issues
Subject: Re: NEW to login scripts
That is cool as I am a ASP developer and use Vbscript in the pages. Are
there any Examples of where to put scripts and examples of how mappings
are done?
Thanks
----- Original Message -----
From: "Flanagan, Kevin" <[EMAIL PROTECTED]>
To: "NT System Admin Issues" <[EMAIL PROTECTED]>
Sent: Wednesday, August 29, 2001 2:59 PM
Subject: RE: NEW to login scripts
> First things first, get acquainted with Vbscript, it's the best login
script
> processor, you can do a lot, and once you have a basic script you can
easily
> change it.
>
>
> Logically you'd do the following
>
> When setting up the account create their home drive, a share that is
> something like \\server\username$ The $ makes it a hidden share, that
> way your browse list isn't thousands of shares. Be sure to put this
> as their home drive in the user properties.
>
> The login script can then tell the process "Map the homedrive" That's
> it.
>
> Now you have a login script, you will find things that you can do
> automatically.
>
>
>
>
> +-------------------------------------------------------------------+
> Kevin Flanagan
> C/S Planning Engineer III
> I/T Implementation Department
> Branch Banking & Trust Company
> 3261 Atlantic Avenue, Suite 116
> MC: 172-85-01-00
> Raleigh, NC 27604
> Voice: 919-716-6209
>
>
>
> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, August 29, 2001 1:47 PM
> To: NT System Admin Issues
> Subject: NEW to login scripts
>
>
> Well im not new to it but haven't done one yet! I have a windows 2000
server
> that I would like to set up a user/unsername folder and have them
> loginto the domain and have the user script run and map the
> appropriate drives.
How
> can I make a script? Is there a script maker or something to do it or
> is
it
> hand coded? Sorry to sound dumb but very new to it.
>
> thanks
>
> http://www.sunbelt-software.com/ntsysadmin_list_charter.htm
>
> http://www.sunbelt-software.com/ntsysadmin_list_charter.htm
>
>
http://www.sunbelt-software.com/ntsysadmin_list_charter.htm
http://www.sunbelt-software.com/ntsysadmin_list_charter.htm