Solved

Batch file set to run when RDP connection is made quit working

Posted on 2011-03-17
11
951 Views
Last Modified: 2013-11-21
I have 10 kiosks running Windows XP that connect to a TS server which runs an app on another Windows Server 2003 that is local to the TS server. In "Start the following program on connection" box I have the name of a simple batch file that runs a Visual FoxPro app that resides on the server. This has worked fine for several years now, on Tuesday it quit working. I have tried everything, including rebooting every machine in the equation and checking every setting that I set up initially but no luck.

I am stuck, how do I fix this?

time.bat
 
F:
cd \vocshop\TIMECLOCK
timeclock.exe

Open in new window

0
Comment
Question by:Bob Stone
  • 5
  • 3
  • 2
  • +1
11 Comments
 
LVL 12

Accepted Solution

by:
mwochnick earned 350 total points
ID: 35162465
two questions I'd ask - maybe a little obvious
1. what changed? did a security patch get applied, etc?
2. is timeclock.exe still there and can you run it manually?
I guess that's four questions :)
0
 
LVL 9

Author Comment

by:Bob Stone
ID: 35162477
Last 2 updates were on the 10th and yesterday, none before that for about a month. The problem started on the 15th.

 On the 10th was a Windows Malicious software removal tool and the 16th was this;
Update for Windows Server 2003 (KB971029)
Install this update to restrict AutoRun entries in the AutoPlay dialog to only CD and DVD drives.

I can run timeclock.exe manually and I can run the time.bat file via Task Manager once the connection is made (which loads to blank screen). It just won't do it automatically anymore.
0
 
LVL 77

Assisted Solution

by:arnold
arnold earned 150 total points
ID: 35162722
Any reason you do not run f:\vocshop\TIMECLOCK\timeclock.exe directly rather than running a batch file?

0
 
LVL 5

Expert Comment

by:ydsonline
ID: 35162755
You could also try the following:
Change the account privileges of both the batch file and timeclock.exe to "Allow non-administrators to run this program" (Setting is under the right click option of each file > Properties > Compatibility Tab)

arnold does have a point, the timeclock.exe should be able to run without a batch file?
0
 
LVL 9

Author Comment

by:Bob Stone
ID: 35162779
When I try to run it directly I get some garbage about there being a time / date difference between the server and the client, but all of them show the same time and date.
0
NAS Cloud Backup Strategies

This article explains backup scenarios when using network storage. We review the so-called “3-2-1 strategy” and summarize the methods you can use to send NAS data to the cloud

 
LVL 77

Expert Comment

by:arnold
ID: 35162801
The other option is to add the shortcut to the timeclock into the startup for all users
%allusersprofile%\Start Menu\Programs\Startup
Whenever a user logs in, this application will run.
This way you do not need to rely on the parameter to start the following program within the RDP from being disabled by the user.
0
 
LVL 77

Expert Comment

by:arnold
ID: 35165587
Check the timezone.
0
 
LVL 12

Expert Comment

by:mwochnick
ID: 35165874
do you control security policies on these servers or does someone else?
0
 
LVL 9

Author Comment

by:Bob Stone
ID: 35169715
Time zones are all the same.

I control the security policies, but being the only one in the IT department I don't mess with them unless I have to.
0
 
LVL 9

Author Comment

by:Bob Stone
ID: 35170374
OK figured out what the problem was. The server where timeclock.exe resides was way out of date on updates. Spent several hours updating it to most current, then fixed auto updating thing. Odd that it was pulling some updates, but only really minor ones.

Now the batch file runs just like it is supposed to and always did prior, maybe a little faster now is all. :)
0
 
LVL 9

Author Closing Comment

by:Bob Stone
ID: 35170376
Thanks
0

Featured Post

Best Practices: Disaster Recovery Testing

Besides backup, any IT division should have a disaster recovery plan. You will find a few tips below relating to the development of such a plan and to what issues one should pay special attention in the course of backup planning.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

It is only natural that we all want our PCs to be in good working order, improved system performance, so that is exactly how programs are advertised to entice. They say things like:            •      PC crashes? Get registry cleaner to repair it!    …
INTRODUCTION The purpose of this document is to demonstrate the Installation and configuration of the Data Protection Manager product. Note that this demonstration was prepared on the basis of Windows OS is 2008 R2 and DPM 2010. DATA PROTECTI…
In this video, we discuss why the need for additional vertical screen space has become more important in recent years, namely, due to the transition in the marketplace of 4x3 computer screens to 16x9 and 16x10 screens (so-called widescreen format). …
With the advent of Windows 10, Microsoft is pushing a Get Windows 10 icon into the notification area (system tray) of qualifying computers. There are many reasons for wanting to remove this icon. This two-part Experts Exchange video Micro Tutorial s…

910 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

25 Experts available now in Live!

Get 1:1 Help Now