Discussion:
runninag a program
(too old to reply)
Johnfli
2005-08-04 16:07:56 UTC
Permalink
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.
seth
2005-08-04 16:16:45 UTC
Permalink
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
Post by Johnfli
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.
Johnfli
2005-08-04 16:23:56 UTC
Permalink
synchronously' ===== ummmm, where's that? Is that in the same area? I
will look now.
Post by seth
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
Post by Johnfli
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
Post by seth
Post by Johnfli
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
Post by seth
Post by Johnfli
to
start? The location of this mapped drive, is the same machine as the
terminal server, so it isn't a network connectivity issue.
seth
2005-08-04 16:26:58 UTC
Permalink
computer configuration -> administrative templates -> system -> scripts
Post by Johnfli
synchronously' ===== ummmm, where's that? Is that in the same area?
I
will look now.
Post by seth
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
Post by seth
went away after enabling it
Post by Johnfli
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
Post by seth
Post by Johnfli
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
Post by seth
Post by Johnfli
when the drive doesn't map, the user gets an error message saying it
can't
Post by seth
Post by Johnfli
find it, and the program doesn't start. about a minute later, it logs
the
Post by seth
Post by Johnfli
user out.
With that said, how can I force the drive to map BEFORE the program
tries
Post by seth
Post by Johnfli
to
start? The location of this mapped drive, is the same machine as the
terminal server, so it isn't a network connectivity issue.
Johnfli
2005-08-04 16:43:03 UTC
Permalink
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?
Post by seth
computer configuration -> administrative templates -> system -> scripts
Post by Johnfli
synchronously' ===== ummmm, where's that? Is that in the same area?
I
will look now.
Post by seth
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
Post by seth
went away after enabling it
Post by Johnfli
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
Post by seth
Post by Johnfli
events logs is helpful. Sometimes I will get a message saying it
can't
Post by seth
Post by Johnfli
Post by seth
Post by Johnfli
find
the drive. Yet other users are logged in just fine at the same time.
So
Post by seth
Post by Johnfli
when the drive doesn't map, the user gets an error message saying it
can't
Post by seth
Post by Johnfli
find it, and the program doesn't start. about a minute later, it logs
the
Post by seth
Post by Johnfli
user out.
With that said, how can I force the drive to map BEFORE the program
tries
Post by seth
Post by Johnfli
to
start? The location of this mapped drive, is the same machine as the
terminal server, so it isn't a network connectivity issue.
seth
2005-08-04 17:10:22 UTC
Permalink
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
Post by Johnfli
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?
Post by seth
computer configuration -> administrative templates -> system -> scripts
Post by Johnfli
synchronously' ===== ummmm, where's that? Is that in the same area?
I
will look now.
Post by seth
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
Post by seth
went away after enabling it
Post by Johnfli
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
Post by seth
Post by Johnfli
the
Post by seth
Post by Johnfli
events logs is helpful. Sometimes I will get a message saying it
can't
Post by seth
Post by Johnfli
Post by seth
Post by Johnfli
find
the drive. Yet other users are logged in just fine at the same time.
So
Post by seth
Post by Johnfli
when the drive doesn't map, the user gets an error message saying it
can't
Post by seth
Post by Johnfli
find it, and the program doesn't start. about a minute later, it
logs
Post by seth
Post by Johnfli
the
Post by seth
Post by Johnfli
user out.
With that said, how can I force the drive to map BEFORE the program
tries
Post by seth
Post by Johnfli
to
start? The location of this mapped drive, is the same machine as
the
Post by seth
Post by Johnfli
Post by seth
Post by Johnfli
terminal server, so it isn't a network connectivity issue.
Johnfli
2005-08-04 17:24:45 UTC
Permalink
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.
Post by seth
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
Post by Johnfli
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?
Post by seth
computer configuration -> administrative templates -> system -> scripts
Post by Johnfli
synchronously' ===== ummmm, where's that? Is that in the same area?
I
will look now.
Post by seth
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
Post by seth
went away after enabling it
Post by Johnfli
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
Post by seth
Post by Johnfli
Post by seth
Post by Johnfli
Post by seth
Post by Johnfli
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
Post by seth
Post by Johnfli
the
Post by seth
Post by Johnfli
events logs is helpful. Sometimes I will get a message saying it
can't
Post by seth
Post by Johnfli
Post by seth
Post by Johnfli
find
the drive. Yet other users are logged in just fine at the same time.
So
Post by seth
Post by Johnfli
when the drive doesn't map, the user gets an error message saying it
can't
Post by seth
Post by Johnfli
find it, and the program doesn't start. about a minute later, it
logs
Post by seth
Post by Johnfli
the
Post by seth
Post by Johnfli
user out.
With that said, how can I force the drive to map BEFORE the program
tries
Post by seth
Post by Johnfli
to
start? The location of this mapped drive, is the same machine as
the
Post by seth
Post by Johnfli
Post by seth
Post by Johnfli
terminal server, so it isn't a network connectivity issue.
Johnfli
2005-08-04 17:32:08 UTC
Permalink
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.
Post by Johnfli
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.
Post by seth
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
Post by seth
script window closing too fast
then you can take the pause statement out after
Post by Johnfli
Thanks.
Ok, did that.
Even forced teh GP to update.
I still get the message saying that H:\temp is invalid for one
particular
Post by seth
Post by Johnfli
user.
ANy ideas on how I can see if it's trying to map teh drive?
Post by seth
computer configuration -> administrative templates -> system -> scripts
Post by Johnfli
synchronously' ===== ummmm, where's that? Is that in the same area?
I
will look now.
Post by seth
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
Post by Johnfli
Post by seth
Post by Johnfli
Post by seth
Post by Johnfli
Post by seth
ran
and
Post by seth
went away after enabling it
Post by Johnfli
I have a GPO in place so that when people log in via TS, it
starts
Post by Johnfli
a
Post by seth
Post by Johnfli
Post by seth
Post by Johnfli
Post by seth
Post by Johnfli
particular program automatically. If they exit the program
that
Post by Johnfli
is
Post by seth
Post by Johnfli
Post by seth
Post by Johnfli
Post by seth
Post by Johnfli
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
Post by seth
Post by Johnfli
Post by seth
Post by Johnfli
Post by seth
Post by Johnfli
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
Post by seth
Post by Johnfli
of
Post by seth
Post by Johnfli
the
Post by seth
Post by Johnfli
events logs is helpful. Sometimes I will get a message saying it
can't
Post by seth
Post by Johnfli
Post by seth
Post by Johnfli
find
the drive. Yet other users are logged in just fine at the same time.
So
Post by seth
Post by Johnfli
when the drive doesn't map, the user gets an error message
saying
Post by Johnfli
it
Post by seth
Post by Johnfli
Post by seth
Post by Johnfli
can't
Post by seth
Post by Johnfli
find it, and the program doesn't start. about a minute later, it
logs
Post by seth
Post by Johnfli
the
Post by seth
Post by Johnfli
user out.
With that said, how can I force the drive to map BEFORE the
program
Post by seth
Post by Johnfli
Post by seth
Post by Johnfli
tries
Post by seth
Post by Johnfli
to
start? The location of this mapped drive, is the same machine as
the
Post by seth
Post by Johnfli
Post by seth
Post by Johnfli
terminal server, so it isn't a network connectivity issue.
Vera Noest [MVP]
2005-08-04 20:06:20 UTC
Permalink
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 ___
Post by Johnfli
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.
Post by Johnfli
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
Post by Johnfli
drive mapping or anything.
Post by seth
in the login script, after the last line, put the word pause
this will cause the system to wait for user interaction
before
continuing
Post by Johnfli
Post by seth
that way if there is an error mapping h you can see it there instead of
the
Post by seth
script window closing too fast
then you can take the pause statement out after
Post by Johnfli
Thanks.
Ok, did that.
Even forced teh GP to update.
I still get the message saying that H:\temp is invalid for one
particular
Post by seth
Post by Johnfli
user.
ANy ideas on how I can see if it's trying to map teh drive?
Post by seth
computer configuration -> administrative templates ->
system ->
scripts
Post by Johnfli
Post by seth
Post by Johnfli
Post by seth
Post by Johnfli
synchronously' ===== ummmm, where's that? Is that
in the same area?
I
will look now.
Post by seth
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
Post by Johnfli
Post by seth
Post by Johnfli
Post by seth
Post by Johnfli
Post by seth
ran
and
Post by seth
went away after enabling it
Post by Johnfli
I have a GPO in place so that when people log in via
TS, it
starts
Post by Johnfli
a
Post by seth
Post by Johnfli
Post by seth
Post by Johnfli
Post by seth
Post by Johnfli
particular program automatically. If they exit the program
that
Post by Johnfli
is
Post by seth
Post by Johnfli
Post by seth
Post by Johnfli
Post by seth
Post by Johnfli
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
Post by seth
Post by Johnfli
Post by seth
Post by Johnfli
Post by seth
Post by Johnfli
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
Post by seth
Post by Johnfli
of
Post by seth
Post by Johnfli
the
Post by seth
Post by Johnfli
events logs is helpful. Sometimes I will get a
message saying
it
Post by Johnfli
Post by seth
Post by Johnfli
can't
Post by seth
Post by Johnfli
Post by seth
Post by Johnfli
find
the drive. Yet other users are logged in just fine
at the same time.
So
Post by seth
Post by Johnfli
when the drive doesn't map, the user gets an error
message
saying
Post by Johnfli
it
Post by seth
Post by Johnfli
Post by seth
Post by Johnfli
can't
Post by seth
Post by Johnfli
find it, and the program doesn't start. about a
minute later,
it
Post by Johnfli
Post by seth
Post by Johnfli
logs
Post by seth
Post by Johnfli
the
Post by seth
Post by Johnfli
user out.
With that said, how can I force the drive to map
BEFORE the
program
Post by seth
Post by Johnfli
Post by seth
Post by Johnfli
tries
Post by seth
Post by Johnfli
to
start? The location of this mapped drive, is the
same machine
as
Post by Johnfli
Post by seth
Post by Johnfli
the
Post by seth
Post by Johnfli
Post by seth
Post by Johnfli
terminal server, so it isn't a network connectivity
issue.
Loading...