Solved

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

Posted on 2011-03-17
11
952 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
Migrating Your Company's PCs

To keep pace with competitors, businesses must keep employees productive, and that means providing them with the latest technology. This document provides the tips and tricks you need to help you migrate an outdated PC fleet to new desktops, laptops, and tablets.

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

Courses: Start Training Online With Pros, Today

Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
DHCP restore question Server 2003 to 2012 3 48
Reading registry key from HKCU and not hklm 10 104
robocopy vs xcopy vs copy 8 108
Share and Advanced Sharing permissions 8 98
Can I legally transfer my OEM version of Windows to another PC?  (AKA - Can I put a new systemboard in my OEM PC?) Few of us are both IT and legal experts but we all have our own views of Microsoft's licensing rules and how they apply.  There are…
Remote Apps is a feature in server 2008 which allows users to run applications off Remote Desktop Servers without having to log into them to run the applications.  The user can either have a desktop shortcut installed or go through the web portal to…
Windows 8 came with a dramatically different user interface known as Metro. Notably missing from that interface was a Start button and Start Menu. Microsoft responded to negative user feedback of the Metro interface, bringing back the Start button a…
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…

808 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