Re: script for mapped drives

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance




"mcp" <zafarhussain@xxxxxxxxxxxxxxxx> wrote in message
news:1165875750.600607.268810@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Amfwi can you please tell me where i can find out what those switch
means, that you have added to mapdrives.

thanks



they are arguments

the first argument is argument number 0 the drive letter "V:"

the second argument is argument number 1 the shared folder
\\server\sharedfolder


in the script it loks for arguments like so

Set objArgs = WScript.Arguments

dim driveLetter:driveLetter = objArgs(0)
dim drivePath:drivePath = objArgs(1)










Slim wrote:
Done

http://dev.thatsit.net.au/Samples/WSH/thatsIT/fso/networkDrives.asp


"mcp" <zafarhussain@xxxxxxxxxxxxxxxx> wrote in message
news:1165748823.856811.295420@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

thanks for that guys,

Slim, is there any chance you can comment the script so i know what
line does what.
the two othe OU's do i repeat the same script with relevent drive
letter and map to that OU?

or can i just add the other map drive to the same script.

many thanks

Slim wrote:
here you go

http://dev.thatsit.net.au/Samples/WSH/thatsIT/fso/networkDrives.asp



"mcp" <zafarhussain@xxxxxxxxxxxxxxxx> wrote in message
news:1165603985.280574.324070@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
hello everyone,

can someone please tell me how to write a script which will delete
any
mapped drives on startup and then map relevent drives at the same
time.

for example i want to create a script that can do the following:

map Z drive to teachers OU
map S drive to pupil OU
map T drive to Admin OU

this script needs to check that the above drives are not mapped
already
when clients startup in morning.

i am complete novice so please step by step instruction will be very
useful.

many thanks

Z





.



Relevant Pages

  • Re: troubleshoot a script
    ... I see you use the memberOf attribute. ... ' map appropriate drives. ... The part of the script that will not work for the 3 ...
    (microsoft.public.scripting.vbscript)
  • Unable to remove remembered drives
    ... The script is completely finished and works perfectly if I ... It turned out that it couldn't map the drive for some ... appears I cant remove these remembered drives, ... Set fso = Createobject ...
    (microsoft.public.scripting.vbscript)
  • Drive Mapping Script Not working
    ... I have a script that maps drives based on a machines name here is a sample ... net use and map the share correctly net use reports the share to already be ...
    (microsoft.public.windows.server.scripting)
  • Re: User Independent Mapped Drive
    ... OU that runs a batch file to map the drives. ... server of where they're from. ... script, ...
    (microsoft.public.windows.server.networking)
  • RE: Local user corruption
    ... Can you use a batch file to map the drives as the domain logon script? ... You can use "net use" to map a network drive. ...
    (microsoft.public.windows.server.migration)