runninag a program

J

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

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
 
J

Johnfli

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

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?
 
S

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
 
J

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

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

Vera Noest [MVP]

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 ___
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top