SUBST command

  • Thread starter Thread starter Synapse Syndrome
  • Start date Start date
S

Synapse Syndrome

Guest
Can the SUBST command be used on a startup script, or only a logon script?

ie. Can these mappings be used remotely on the server, when no user has
logged in?

ss.
 
Re: SUBST command


"Synapse Syndrome" <synapse@NOSPAMsyndrome.me.uk> wrote in message
news:e9Lo$WS9IHA.1428@TK2MSFTNGP06.phx.gbl...
> Can the SUBST command be used on a startup script, or only a logon script?
>
> ie. Can these mappings be used remotely on the server, when no user has
> logged in?
>
> ss.


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.
 
Re: SUBST command

"Pegasus (MVP)" <I.can@fly.com.oz> wrote in message
news:eouHp7S9IHA.2060@TK2MSFTNGP02.phx.gbl...
>>
>> Can the SUBST command be used on a startup script, or only a logon
>> script?
>>
>> ie. Can these mappings be used remotely on the server, when no user has
>> logged in?

>
> 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.

I cannot check myself at the moment, because I am in the middle of a major
reconfiguration, and I was just thinking about possibilities of how I can
sort this out.

I am using a NAS-like appliance (Drobo), that seems to only be able to show
all the contained disks as a very large striped partition. I was hoping
that making virtual drives would make it easier to sort the types of data in
the array.

ss.
 
Re: SUBST command

"Synapse Syndrome" <synapse@NOSPAMsyndrome.me.uk> wrote in message
news:exyMiNT9IHA.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?

ss.
 
Re: SUBST command


"Synapse Syndrome" <synapse@NOSPAMsyndrome.me.uk> wrote in message
news:%23evvAlT9IHA.4092@TK2MSFTNGP02.phx.gbl...
> "Synapse Syndrome" <synapse@NOSPAMsyndrome.me.uk> wrote in message
> news:exyMiNT9IHA.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?
>
> ss.


It depends on what you want the script to do.
 
Re: SUBST command

"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.
 
Re: SUBST command


"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.
 
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.
>
 
Back
Top