?
Solved

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

Posted on 2011-03-17
11
Medium Priority
?
960 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 5
  • 3
  • 2
  • +1
11 Comments
 
LVL 12

Accepted Solution

by:
mwochnick earned 1400 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 79

Assisted Solution

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

0
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
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
 
LVL 79

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 79

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

Office 365 Training for Admins - 7 Day Trial

Learn how to provision tenants, synchronize on-premise Active Directory, implement Single Sign-On, customize Office deployment, and protect your organization with eDiscovery and DLP policies.  Only from Platform Scholar.

Question has a verified solution.

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

Issue: Unstable cursor in Windows XP and Windows runs extremely slow in that any click will bring up the Hour glass (sometimes for several seconds before giving you what you want) . Troubleshooting Process and the FINAL FIX: This issue see…
Sometimes people don't understand why download speed shows differently for Windows than Linux.Specially, this article covers and shows the solution for throughput difference for Windows than a Linux machine. For this, I arranged a test scenario.I…
This video Micro Tutorial explains how to clone a hard drive using a commercial software product for Windows systems called Casper from Future Systems Solutions (FSS). Cloning makes an exact, complete copy of one hard disk drive (HDD) onto another d…
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…
Suggested Courses

777 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