Re: basic map drive scripts
- From: "Chris" <chris@xxxxxx>
- Date: Wed, 9 Jul 2008 07:38:31 +0100
Cheers Pegasus :-)
"Pegasus (MVP)" <I.can@xxxxxxxxxx> wrote in message
news:OB4YXTU4IHA.212@xxxxxxxxxxxxxxxxxxxxxxx
Group Policy is about user rights and settings - it has no effect
whatsoever on the mechanism that controls the mapping of a
drive on top of an existing mapping. If you want to write a robust
script that works no matter what then you should test for
existing connections, e.g. like so: If objfso.DriveExists("D:") . . .
"Chris" <chris@xxxxxx> wrote in message
news:eiQ%23yLU4IHA.2348@xxxxxxxxxxxxxxxxxxxxxxx
I have done that and received the error. I am unsure if it will be
different via a gpo. Unfortunately i can't test that here. i've never ran
scripts this way before as always done it via the user account.
Cheers
Chris
"Pegasus (MVP)" <I.can@xxxxxxxxxx> wrote in message
news:uyznbGU4IHA.3624@xxxxxxxxxxxxxxxxxxxxxxx
Since you're sitting at a PC, it will take you less than a minute
to find out for yourself. Map Q: to \\YourPC\C$ manually,
then run your VB Script. You don't need a server to test such
a simple issue!
"Chris" <chris@xxxxxx> wrote in message
news:uYNypCU4IHA.4272@xxxxxxxxxxxxxxxxxxxxxxx
Hi Pegasus,
This is my job tomorrow. lol. It's been sort of dropped on me and i
have a tight deadline so was trying to do as much prep as i can..
Currently trawling google aswell. :-)
"Pegasus (MVP)" <I.can@xxxxxxxxxx> wrote in message
news:Okf3UAU4IHA.4488@xxxxxxxxxxxxxxxxxxxxxxx
"Chris" <chris@xxxxxx> wrote in message
news:uChxL2T4IHA.1192@xxxxxxxxxxxxxxxxxxxxxxx
Hello,
i need a basic map drive script which i've got.. but what happens if
it is already mapped? is there a similair /peristent option? or does
it disconnect automatically?
Set objNetwork = CreateObject("WScript.Network")
objNetwork.MapNetworkDrive "x:" , "\\server\share"
Why don't you run a little test to see what happens if the drive
letter is already mapped?
.
- References:
- basic map drive scripts
- From: Chris
- Re: basic map drive scripts
- From: Pegasus \(MVP\)
- Re: basic map drive scripts
- From: Chris
- Re: basic map drive scripts
- From: Pegasus \(MVP\)
- Re: basic map drive scripts
- From: Chris
- Re: basic map drive scripts
- From: Pegasus \(MVP\)
- basic map drive scripts
- Prev by Date: Re: basic map drive scripts
- Next by Date: Create Multiple Folders within Multiple Folders
- Previous by thread: Re: basic map drive scripts
- Next by thread: Create Multiple Folders within Multiple Folders
- Index(es):
Relevant Pages
|