PC Review Forums Newsgroups Windows 2000 Microsoft Windows 2000 Terminal Server Clients runninag a program

Reply

runninag a program

 
Thread Tools Rate Thread
Old 04-08-2005, 05:07 PM   #1
Johnfli
Guest
 
Posts: n/a
Default runninag a program


I have a GPO in place so that when people log in via TS, it starts a
particular program automatically. If they exit the program that is
started, it will log them out of TS.

This is working great (most of the time)

One of the things this program requires to run, is that a particular mapped
drive already be in place. I have a logon script that reads

net use h: \\servername\sharename

Most of the time, people don't have any problems. But for some strange
reason, once in awhile, the drive wont get mapped. Nothing in any of the
events logs is helpful. Sometimes I will get a message saying it can't find
the drive. Yet other users are logged in just fine at the same time. So
when the drive doesn't map, the user gets an error message saying it can't
find it, and the program doesn't start. about a minute later, it logs the
user out.


With that said, how can I force the drive to map BEFORE the program tries to
start? The location of this mapped drive, is the same machine as the
terminal server, so it isn't a network connectivity issue.



  Reply With Quote
Old 04-08-2005, 05:16 PM   #2
seth
Guest
 
Posts: n/a
Default Re: runninag a program

in your gpo, do you have the 'run login scripts synchronously' enabled?
i had the same problem with the mapped drive before a termserve app ran and
went away after enabling it


"Johnfli" <john@ivhs.us> wrote in message
news:uS1Qu6QmFHA.544@TK2MSFTNGP15.phx.gbl...
>I have a GPO in place so that when people log in via TS, it starts a
> particular program automatically. If they exit the program that is
> started, it will log them out of TS.
>
> This is working great (most of the time)
>
> One of the things this program requires to run, is that a particular
> mapped
> drive already be in place. I have a logon script that reads
>
> net use h: \\servername\sharename
>
> Most of the time, people don't have any problems. But for some strange
> reason, once in awhile, the drive wont get mapped. Nothing in any of the
> events logs is helpful. Sometimes I will get a message saying it can't
> find
> the drive. Yet other users are logged in just fine at the same time. So
> when the drive doesn't map, the user gets an error message saying it can't
> find it, and the program doesn't start. about a minute later, it logs the
> user out.
>
>
> With that said, how can I force the drive to map BEFORE the program tries
> to
> start? The location of this mapped drive, is the same machine as the
> terminal server, so it isn't a network connectivity issue.
>
>
>



  Reply With Quote
Old 04-08-2005, 05:23 PM   #3
Johnfli
Guest
 
Posts: n/a
Default Re: runninag a program

synchronously' ===== ummmm, where's that? Is that in the same area? I
will look now.



"seth" <seth@work.net> wrote in message
news:ebSvv$QmFHA.1464@TK2MSFTNGP14.phx.gbl...
> in your gpo, do you have the 'run login scripts synchronously' enabled?
> i had the same problem with the mapped drive before a termserve app ran

and
> went away after enabling it
>
>
> "Johnfli" <john@ivhs.us> wrote in message
> news:uS1Qu6QmFHA.544@TK2MSFTNGP15.phx.gbl...
> >I have a GPO in place so that when people log in via TS, it starts a
> > particular program automatically. If they exit the program that is
> > started, it will log them out of TS.
> >
> > This is working great (most of the time)
> >
> > One of the things this program requires to run, is that a particular
> > mapped
> > drive already be in place. I have a logon script that reads
> >
> > net use h: \\servername\sharename
> >
> > Most of the time, people don't have any problems. But for some strange
> > reason, once in awhile, the drive wont get mapped. Nothing in any of

the
> > events logs is helpful. Sometimes I will get a message saying it can't
> > find
> > the drive. Yet other users are logged in just fine at the same time.

So
> > when the drive doesn't map, the user gets an error message saying it

can't
> > find it, and the program doesn't start. about a minute later, it logs

the
> > user out.
> >
> >
> > With that said, how can I force the drive to map BEFORE the program

tries
> > to
> > start? The location of this mapped drive, is the same machine as the
> > terminal server, so it isn't a network connectivity issue.
> >
> >
> >

>
>



  Reply With Quote
Old 04-08-2005, 05:26 PM   #4
seth
Guest
 
Posts: n/a
Default Re: runninag a program

computer configuration -> administrative templates -> system -> scripts

"Johnfli" <john@ivhs.us> wrote in message
news:%23GuUwDRmFHA.2180@TK2MSFTNGP15.phx.gbl...
> synchronously' ===== ummmm, where's that? Is that in the same area?
> I
> will look now.
>
>
>
> "seth" <seth@work.net> wrote in message
> news:ebSvv$QmFHA.1464@TK2MSFTNGP14.phx.gbl...
>> in your gpo, do you have the 'run login scripts synchronously' enabled?
>> i had the same problem with the mapped drive before a termserve app ran

> and
>> went away after enabling it
>>
>>
>> "Johnfli" <john@ivhs.us> wrote in message
>> news:uS1Qu6QmFHA.544@TK2MSFTNGP15.phx.gbl...
>> >I have a GPO in place so that when people log in via TS, it starts a
>> > particular program automatically. If they exit the program that is
>> > started, it will log them out of TS.
>> >
>> > This is working great (most of the time)
>> >
>> > One of the things this program requires to run, is that a particular
>> > mapped
>> > drive already be in place. I have a logon script that reads
>> >
>> > net use h: \\servername\sharename
>> >
>> > Most of the time, people don't have any problems. But for some
>> > strange
>> > reason, once in awhile, the drive wont get mapped. Nothing in any of

> the
>> > events logs is helpful. Sometimes I will get a message saying it can't
>> > find
>> > the drive. Yet other users are logged in just fine at the same time.

> So
>> > when the drive doesn't map, the user gets an error message saying it

> can't
>> > find it, and the program doesn't start. about a minute later, it logs

> the
>> > user out.
>> >
>> >
>> > With that said, how can I force the drive to map BEFORE the program

> tries
>> > to
>> > start? The location of this mapped drive, is the same machine as the
>> > terminal server, so it isn't a network connectivity issue.
>> >
>> >
>> >

>>
>>

>
>



  Reply With Quote
Old 04-08-2005, 05:43 PM   #5
Johnfli
Guest
 
Posts: n/a
Default Re: runninag a program

Thanks.
Ok, did that.
Even forced teh GP to update.
I still get the message saying that H:\temp is invalid for one particular
user.

ANy ideas on how I can see if it's trying to map teh drive?




"seth" <seth@work.net> wrote in message
news:uq7LeFRmFHA.3304@tk2msftngp13.phx.gbl...
> computer configuration -> administrative templates -> system -> scripts
>
> "Johnfli" <john@ivhs.us> wrote in message
> news:%23GuUwDRmFHA.2180@TK2MSFTNGP15.phx.gbl...
> > synchronously' ===== ummmm, where's that? Is that in the same area?
> > I
> > will look now.
> >
> >
> >
> > "seth" <seth@work.net> wrote in message
> > news:ebSvv$QmFHA.1464@TK2MSFTNGP14.phx.gbl...
> >> in your gpo, do you have the 'run login scripts synchronously' enabled?
> >> i had the same problem with the mapped drive before a termserve app ran

> > and
> >> went away after enabling it
> >>
> >>
> >> "Johnfli" <john@ivhs.us> wrote in message
> >> news:uS1Qu6QmFHA.544@TK2MSFTNGP15.phx.gbl...
> >> >I have a GPO in place so that when people log in via TS, it starts a
> >> > particular program automatically. If they exit the program that is
> >> > started, it will log them out of TS.
> >> >
> >> > This is working great (most of the time)
> >> >
> >> > One of the things this program requires to run, is that a particular
> >> > mapped
> >> > drive already be in place. I have a logon script that reads
> >> >
> >> > net use h: \\servername\sharename
> >> >
> >> > Most of the time, people don't have any problems. But for some
> >> > strange
> >> > reason, once in awhile, the drive wont get mapped. Nothing in any

of
> > the
> >> > events logs is helpful. Sometimes I will get a message saying it

can't
> >> > find
> >> > the drive. Yet other users are logged in just fine at the same time.

> > So
> >> > when the drive doesn't map, the user gets an error message saying it

> > can't
> >> > find it, and the program doesn't start. about a minute later, it

logs
> > the
> >> > user out.
> >> >
> >> >
> >> > With that said, how can I force the drive to map BEFORE the program

> > tries
> >> > to
> >> > start? The location of this mapped drive, is the same machine as

the
> >> > terminal server, so it isn't a network connectivity issue.
> >> >
> >> >
> >> >
> >>
> >>

> >
> >

>
>



  Reply With Quote
Old 04-08-2005, 06:10 PM   #6
seth
Guest
 
Posts: n/a
Default Re: runninag a program

in the login script, after the last line, put the word pause
this will cause the system to wait for user interaction before continuing
that way if there is an error mapping h you can see it there instead of the
script window closing too fast
then you can take the pause statement out after

"Johnfli" <john@ivhs.us> wrote in message
news:OQNHWORmFHA.3380@TK2MSFTNGP12.phx.gbl...
> Thanks.
> Ok, did that.
> Even forced teh GP to update.
> I still get the message saying that H:\temp is invalid for one particular
> user.
>
> ANy ideas on how I can see if it's trying to map teh drive?
>
>
>
>
> "seth" <seth@work.net> wrote in message
> news:uq7LeFRmFHA.3304@tk2msftngp13.phx.gbl...
>> computer configuration -> administrative templates -> system -> scripts
>>
>> "Johnfli" <john@ivhs.us> wrote in message
>> news:%23GuUwDRmFHA.2180@TK2MSFTNGP15.phx.gbl...
>> > synchronously' ===== ummmm, where's that? Is that in the same
>> > area?
>> > I
>> > will look now.
>> >
>> >
>> >
>> > "seth" <seth@work.net> wrote in message
>> > news:ebSvv$QmFHA.1464@TK2MSFTNGP14.phx.gbl...
>> >> in your gpo, do you have the 'run login scripts synchronously'
>> >> enabled?
>> >> i had the same problem with the mapped drive before a termserve app
>> >> ran
>> > and
>> >> went away after enabling it
>> >>
>> >>
>> >> "Johnfli" <john@ivhs.us> wrote in message
>> >> news:uS1Qu6QmFHA.544@TK2MSFTNGP15.phx.gbl...
>> >> >I have a GPO in place so that when people log in via TS, it starts a
>> >> > particular program automatically. If they exit the program that is
>> >> > started, it will log them out of TS.
>> >> >
>> >> > This is working great (most of the time)
>> >> >
>> >> > One of the things this program requires to run, is that a particular
>> >> > mapped
>> >> > drive already be in place. I have a logon script that reads
>> >> >
>> >> > net use h: \\servername\sharename
>> >> >
>> >> > Most of the time, people don't have any problems. But for some
>> >> > strange
>> >> > reason, once in awhile, the drive wont get mapped. Nothing in any

> of
>> > the
>> >> > events logs is helpful. Sometimes I will get a message saying it

> can't
>> >> > find
>> >> > the drive. Yet other users are logged in just fine at the same
>> >> > time.
>> > So
>> >> > when the drive doesn't map, the user gets an error message saying it
>> > can't
>> >> > find it, and the program doesn't start. about a minute later, it

> logs
>> > the
>> >> > user out.
>> >> >
>> >> >
>> >> > With that said, how can I force the drive to map BEFORE the program
>> > tries
>> >> > to
>> >> > start? The location of this mapped drive, is the same machine as

> the
>> >> > terminal server, so it isn't a network connectivity issue.
>> >> >
>> >> >
>> >> >
>> >>
>> >>
>> >
>> >

>>
>>

>
>



  Reply With Quote
Old 04-08-2005, 06:24 PM   #7
Johnfli
Guest
 
Posts: n/a
Default Re: runninag a program

Well, this is getting annoying.
I did as you suggested. I forced the gpupdate.
I tried logging in, and I get the same error. Didn't see anythign about the
drive mapping or anything.



"seth" <seth@work.net> wrote in message
news:OoqEsdRmFHA.3900@TK2MSFTNGP09.phx.gbl...
> in the login script, after the last line, put the word pause
> this will cause the system to wait for user interaction before continuing
> that way if there is an error mapping h you can see it there instead of

the
> script window closing too fast
> then you can take the pause statement out after
>
> "Johnfli" <john@ivhs.us> wrote in message
> news:OQNHWORmFHA.3380@TK2MSFTNGP12.phx.gbl...
> > Thanks.
> > Ok, did that.
> > Even forced teh GP to update.
> > I still get the message saying that H:\temp is invalid for one

particular
> > user.
> >
> > ANy ideas on how I can see if it's trying to map teh drive?
> >
> >
> >
> >
> > "seth" <seth@work.net> wrote in message
> > news:uq7LeFRmFHA.3304@tk2msftngp13.phx.gbl...
> >> computer configuration -> administrative templates -> system -> scripts
> >>
> >> "Johnfli" <john@ivhs.us> wrote in message
> >> news:%23GuUwDRmFHA.2180@TK2MSFTNGP15.phx.gbl...
> >> > synchronously' ===== ummmm, where's that? Is that in the same
> >> > area?
> >> > I
> >> > will look now.
> >> >
> >> >
> >> >
> >> > "seth" <seth@work.net> wrote in message
> >> > news:ebSvv$QmFHA.1464@TK2MSFTNGP14.phx.gbl...
> >> >> in your gpo, do you have the 'run login scripts synchronously'
> >> >> enabled?
> >> >> i had the same problem with the mapped drive before a termserve app
> >> >> ran
> >> > and
> >> >> went away after enabling it
> >> >>
> >> >>
> >> >> "Johnfli" <john@ivhs.us> wrote in message
> >> >> news:uS1Qu6QmFHA.544@TK2MSFTNGP15.phx.gbl...
> >> >> >I have a GPO in place so that when people log in via TS, it starts

a
> >> >> > particular program automatically. If they exit the program that

is
> >> >> > started, it will log them out of TS.
> >> >> >
> >> >> > This is working great (most of the time)
> >> >> >
> >> >> > One of the things this program requires to run, is that a

particular
> >> >> > mapped
> >> >> > drive already be in place. I have a logon script that reads
> >> >> >
> >> >> > net use h: \\servername\sharename
> >> >> >
> >> >> > Most of the time, people don't have any problems. But for some
> >> >> > strange
> >> >> > reason, once in awhile, the drive wont get mapped. Nothing in

any
> > of
> >> > the
> >> >> > events logs is helpful. Sometimes I will get a message saying it

> > can't
> >> >> > find
> >> >> > the drive. Yet other users are logged in just fine at the same
> >> >> > time.
> >> > So
> >> >> > when the drive doesn't map, the user gets an error message saying

it
> >> > can't
> >> >> > find it, and the program doesn't start. about a minute later, it

> > logs
> >> > the
> >> >> > user out.
> >> >> >
> >> >> >
> >> >> > With that said, how can I force the drive to map BEFORE the

program
> >> > tries
> >> >> > to
> >> >> > start? The location of this mapped drive, is the same machine as

> > the
> >> >> > terminal server, so it isn't a network connectivity issue.
> >> >> >
> >> >> >
> >> >> >
> >> >>
> >> >>
> >> >
> >> >
> >>
> >>

> >
> >

>
>



  Reply With Quote
Old 04-08-2005, 06:32 PM   #8
Johnfli
Guest
 
Posts: n/a
Default Re: runninag a program

ok, I found teh setting to display the scripts. Now I can see them.
To make matters worse, now that I see the script run, it is telling me that
the drive is already mapped.
Now I am at a loss to think of what to do.



"Johnfli" <john@ivhs.us> wrote in message
news:eIvkplRmFHA.4056@TK2MSFTNGP10.phx.gbl...
> Well, this is getting annoying.
> I did as you suggested. I forced the gpupdate.
> I tried logging in, and I get the same error. Didn't see anythign about

the
> drive mapping or anything.
>
>
>
> "seth" <seth@work.net> wrote in message
> news:OoqEsdRmFHA.3900@TK2MSFTNGP09.phx.gbl...
> > in the login script, after the last line, put the word pause
> > this will cause the system to wait for user interaction before

continuing
> > that way if there is an error mapping h you can see it there instead of

> the
> > script window closing too fast
> > then you can take the pause statement out after
> >
> > "Johnfli" <john@ivhs.us> wrote in message
> > news:OQNHWORmFHA.3380@TK2MSFTNGP12.phx.gbl...
> > > Thanks.
> > > Ok, did that.
> > > Even forced teh GP to update.
> > > I still get the message saying that H:\temp is invalid for one

> particular
> > > user.
> > >
> > > ANy ideas on how I can see if it's trying to map teh drive?
> > >
> > >
> > >
> > >
> > > "seth" <seth@work.net> wrote in message
> > > news:uq7LeFRmFHA.3304@tk2msftngp13.phx.gbl...
> > >> computer configuration -> administrative templates -> system ->

scripts
> > >>
> > >> "Johnfli" <john@ivhs.us> wrote in message
> > >> news:%23GuUwDRmFHA.2180@TK2MSFTNGP15.phx.gbl...
> > >> > synchronously' ===== ummmm, where's that? Is that in the same
> > >> > area?
> > >> > I
> > >> > will look now.
> > >> >
> > >> >
> > >> >
> > >> > "seth" <seth@work.net> wrote in message
> > >> > news:ebSvv$QmFHA.1464@TK2MSFTNGP14.phx.gbl...
> > >> >> in your gpo, do you have the 'run login scripts synchronously'
> > >> >> enabled?
> > >> >> i had the same problem with the mapped drive before a termserve

app
> > >> >> ran
> > >> > and
> > >> >> went away after enabling it
> > >> >>
> > >> >>
> > >> >> "Johnfli" <john@ivhs.us> wrote in message
> > >> >> news:uS1Qu6QmFHA.544@TK2MSFTNGP15.phx.gbl...
> > >> >> >I have a GPO in place so that when people log in via TS, it

starts
> a
> > >> >> > particular program automatically. If they exit the program

that
> is
> > >> >> > started, it will log them out of TS.
> > >> >> >
> > >> >> > This is working great (most of the time)
> > >> >> >
> > >> >> > One of the things this program requires to run, is that a

> particular
> > >> >> > mapped
> > >> >> > drive already be in place. I have a logon script that reads
> > >> >> >
> > >> >> > net use h: \\servername\sharename
> > >> >> >
> > >> >> > Most of the time, people don't have any problems. But for some
> > >> >> > strange
> > >> >> > reason, once in awhile, the drive wont get mapped. Nothing in

> any
> > > of
> > >> > the
> > >> >> > events logs is helpful. Sometimes I will get a message saying

it
> > > can't
> > >> >> > find
> > >> >> > the drive. Yet other users are logged in just fine at the same
> > >> >> > time.
> > >> > So
> > >> >> > when the drive doesn't map, the user gets an error message

saying
> it
> > >> > can't
> > >> >> > find it, and the program doesn't start. about a minute later,

it
> > > logs
> > >> > the
> > >> >> > user out.
> > >> >> >
> > >> >> >
> > >> >> > With that said, how can I force the drive to map BEFORE the

> program
> > >> > tries
> > >> >> > to
> > >> >> > start? The location of this mapped drive, is the same machine

as
> > > the
> > >> >> > terminal server, so it isn't a network connectivity issue.
> > >> >> >
> > >> >> >
> > >> >> >
> > >> >>
> > >> >>
> > >> >
> > >> >
> > >>
> > >>
> > >
> > >

> >
> >

>
>



  Reply With Quote
Old 04-08-2005, 09:06 PM   #9
Vera Noest [MVP]
Guest
 
Posts: n/a
Default Re: runninag a program

Sounds like at some time, the /persistent switch has been used.

Try this:
net use H: /delete
net use H: \\server\share

_________________________________________________________
Vera Noest
MCSE, CCEA, Microsoft MVP - Terminal Server
TS troubleshooting: http://ts.veranoest.net
___ please respond in newsgroup, NOT by private email ___

"Johnfli" <john@ivhs.us> wrote on 04 aug 2005 in
microsoft.public.win2000.termserv.clients:

> ok, I found teh setting to display the scripts. Now I can see
> them. To make matters worse, now that I see the script run, it
> is telling me that the drive is already mapped.
> Now I am at a loss to think of what to do.
>
>
>
> "Johnfli" <john@ivhs.us> wrote in message
> news:eIvkplRmFHA.4056@TK2MSFTNGP10.phx.gbl...
>> Well, this is getting annoying.
>> I did as you suggested. I forced the gpupdate.
>> I tried logging in, and I get the same error. Didn't see
>> anythign about

> the
>> drive mapping or anything.
>>
>>
>>
>> "seth" <seth@work.net> wrote in message
>> news:OoqEsdRmFHA.3900@TK2MSFTNGP09.phx.gbl...
>> > in the login script, after the last line, put the word pause
>> > this will cause the system to wait for user interaction
>> > before

> continuing
>> > that way if there is an error mapping h you can see it there
>> > instead of

>> the
>> > script window closing too fast
>> > then you can take the pause statement out after
>> >
>> > "Johnfli" <john@ivhs.us> wrote in message
>> > news:OQNHWORmFHA.3380@TK2MSFTNGP12.phx.gbl...
>> > > Thanks.
>> > > Ok, did that.
>> > > Even forced teh GP to update.
>> > > I still get the message saying that H:\temp is invalid for
>> > > one

>> particular
>> > > user.
>> > >
>> > > ANy ideas on how I can see if it's trying to map teh drive?
>> > >
>> > >
>> > >
>> > >
>> > > "seth" <seth@work.net> wrote in message
>> > > news:uq7LeFRmFHA.3304@tk2msftngp13.phx.gbl...
>> > >> computer configuration -> administrative templates ->
>> > >> system ->

> scripts
>> > >>
>> > >> "Johnfli" <john@ivhs.us> wrote in message
>> > >> news:%23GuUwDRmFHA.2180@TK2MSFTNGP15.phx.gbl...
>> > >> > synchronously' ===== ummmm, where's that? Is that
>> > >> > in the same area?
>> > >> > I
>> > >> > will look now.
>> > >> >
>> > >> >
>> > >> >
>> > >> > "seth" <seth@work.net> wrote in message
>> > >> > news:ebSvv$QmFHA.1464@TK2MSFTNGP14.phx.gbl...
>> > >> >> in your gpo, do you have the 'run login scripts
>> > >> >> synchronously' enabled?
>> > >> >> i had the same problem with the mapped drive before a
>> > >> >> termserve

> app
>> > >> >> ran
>> > >> > and
>> > >> >> went away after enabling it
>> > >> >>
>> > >> >>
>> > >> >> "Johnfli" <john@ivhs.us> wrote in message
>> > >> >> news:uS1Qu6QmFHA.544@TK2MSFTNGP15.phx.gbl...
>> > >> >> >I have a GPO in place so that when people log in via
>> > >> >> >TS, it

> starts
>> a
>> > >> >> > particular program automatically. If they exit the
>> > >> >> > program

> that
>> is
>> > >> >> > started, it will log them out of TS.
>> > >> >> >
>> > >> >> > This is working great (most of the time)
>> > >> >> >
>> > >> >> > One of the things this program requires to run, is
>> > >> >> > that a

>> particular
>> > >> >> > mapped
>> > >> >> > drive already be in place. I have a logon script
>> > >> >> > that reads
>> > >> >> >
>> > >> >> > net use h: \\servername\sharename
>> > >> >> >
>> > >> >> > Most of the time, people don't have any problems.
>> > >> >> > But for some strange
>> > >> >> > reason, once in awhile, the drive wont get mapped.
>> > >> >> > Nothing in

>> any
>> > > of
>> > >> > the
>> > >> >> > events logs is helpful. Sometimes I will get a
>> > >> >> > message saying

> it
>> > > can't
>> > >> >> > find
>> > >> >> > the drive. Yet other users are logged in just fine
>> > >> >> > at the same time.
>> > >> > So
>> > >> >> > when the drive doesn't map, the user gets an error
>> > >> >> > message

> saying
>> it
>> > >> > can't
>> > >> >> > find it, and the program doesn't start. about a
>> > >> >> > minute later,

> it
>> > > logs
>> > >> > the
>> > >> >> > user out.
>> > >> >> >
>> > >> >> >
>> > >> >> > With that said, how can I force the drive to map
>> > >> >> > BEFORE the

>> program
>> > >> > tries
>> > >> >> > to
>> > >> >> > start? The location of this mapped drive, is the
>> > >> >> > same machine

> as
>> > > the
>> > >> >> > terminal server, so it isn't a network connectivity
>> > >> >> > issue.

  Reply With Quote
Reply



Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off