Re: Running Login Script after establishing a VPN connection
- From: TJCooper1972 <TJCooper1972@xxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Tue, 13 May 2008 07:33:02 -0700
I have to figure out how to parse the file correctly. I dont do a lot of
scripting, so everything is slow going for me. The file has a number of
mapped drives and commented lines. I can ignore commented lines and focus on
lines that start with a $. This is what I have to parse:
----------
;
; Windows NT and Windows For Workgroups Logon Script
;
$NameLine = "my region"
$HelpDesk = "555-555-5555"
$Drive1 = M:
$Name1 = "drivea"
$Dir1 = "\\server\mapm"
$Drive3 = W:
$Name3 = "driveb"
$Dir3 = "\\server\mapw"
;
; the following should reflect appropriate mapped drive for location
;
$Drive4 = H:
$Name4 = "drivec"
$Dir4 = "\\server\maph"
$Drive5 = P:
$Name5 = "drived"
$Dir5 = "\\server\mapp"
$Drive6 = k:
$Name6 = "drivee"
$Dir6 = "\\server\mapk"
--------------
"Pegasus (MVP)" wrote:
.
"TJCooper1972" <TJCooper1972@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:9268E35E-DE25-4D68-A53D-C57CE419C907@xxxxxxxxxxxxxxxx
The login script is referenced in the user object login script field. That
calls a batch file with looks at a text file for map drives.
Is there a way to launch the same process that takes place when you log
in?
You previously wrote
"I suppose I could call up the text file with the actuall mapped drives
and parse it for UNC paths. Put those UNC paths into an array and
then map them."
This sounded like a good idea to me - what's happened to it?
- Follow-Ups:
- Re: Running Login Script after establishing a VPN connection
- From: Pegasus \(MVP\)
- Re: Running Login Script after establishing a VPN connection
- References:
- Running Login Script after establishing a VPN connection
- From: TJCooper1972
- RE: Running Login Script after establishing a VPN connection
- From: TJCooper1972
- Re: Running Login Script after establishing a VPN connection
- From: Pegasus \(MVP\)
- Re: Running Login Script after establishing a VPN connection
- From: TJCooper1972
- Re: Running Login Script after establishing a VPN connection
- From: Pegasus \(MVP\)
- Running Login Script after establishing a VPN connection
- Prev by Date: Re: How to get the OU the machine resides in
- Next by Date: Re: How to get the OU the machine resides in
- Previous by thread: Re: Running Login Script after establishing a VPN connection
- Next by thread: Re: Running Login Script after establishing a VPN connection
- Index(es):
Relevant Pages
|