Moving from ASP VBScript to WSH VBScript is incredibly simple. Check out
http://msdn.microsoft.com/scripting/ (which you should already know), for
examples on WSH uses and reference.
A simple example of a vbs mapping script is:
Const c_NumOfShares = 2 ' zero based
redim aShares(1, c_NumOfShares)
aShares(0, 0) = "S:"
aShares(1, 0) = "\\server1\shareA"
aShares(0, 1) = "T:"
aShares(1, 1) = "\\server1\shareZA$"
aShares(0, 2) = "R:"
aShares(1, 2) = "\\server2\shareX"
Set oWSH_Network = CreateObject("WScript.Network")
for i=0 to uBound(aShares, 2)
oWSH_Network.MapNetworkDrive aShares(0, i), _
aShares(1,
i)
next
set oWSH_Network = nothing
-----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