Re: SUBST command
To elaborate on what Pegasus said, like Mapped Network Drives, the mappings
created by the subst command are artifacts of the user's Windows Session,
not the OS environment. When a user logs on, their Windows Session is
created. If there are "persistent" Mapped Network Drives" in the user's
profile, they will be recreated automatically. The mapping made by subst
are not persistent so will not be recreated automatically.
Since the mappings are an artifact of the user's Windows Session there is no
way to make them apply to anyone that logs on, without arranging for the
subst command to be re-issued as part of the logon process - e.g. in a logon
script.
If you want the subst mapping to apply to anyone that logs on to a
particular computer, you can put the subst command in a .cmd file in the All
Users, Start Menu, Programs, Startup since anything there will be executed
as part of the logon process for any user that logs on to that computer.
--
Bruce Sanderson
http://members.shaw.ca/bsanders
It is perfectly useless to know the right answer to the wrong question.
"Pegasus (MVP)" <I.can@fly.com.oz> wrote in message
news:eW$ajcb9IHA.3648@TK2MSFTNGP03.phx.gbl...
>
> "Synapse Syndrome" <synapse@NOSPAMsyndrome.me.uk> wrote in message
> news:u85e0Xb9IHA.4004@TK2MSFTNGP03.phx.gbl...
>> "Pegasus (MVP)" <I.can@fly.com.oz> wrote in message
>> news:u%23dKw4T9IHA.4004@TK2MSFTNGP03.phx.gbl...
>>>>>>
>>>>>> If subst.exe gave you a globally accessible drive then this would
>>>>>> consistitute a big security breach - but why don't you give it a try
>>>>>> yourself? You can use runas.exe to test the visibility of the
>>>>>> substituted
>>>>>> drive.
>>>>>
>>>>> I was just hoping that somebody would know for sure, but it does seem
>>>>> unlikely now, with the implication you just raised.
>>>>
>>>> Is there any way a service can be used to run a script for certain user
>>>> accounts without having to log in with those accounts?
>>>>
>>>
>>> It depends on what you want the script to do.
>>
>> I want it to make virtual drives for two user groups using the SUBST
>> command.
>>
>> ss.
>
> You need to place the subst.exe or net.exe commands into the
> individual user's logon script.
>