Windows 7 RDP Won't Run Program

Hello Experts,

I configured RDP to run a batch file when it connects as shown in the image, but it won't run the batch file. Can someone shed some light on why?

rdp
Cheers
cpatte7372
cpatte7372Asked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

JohnBusiness Consultant (Owner)Commented:
What is says is "Run a Program"  Try running a program instead of a batch file to see if a regular program works.
0
John SalleSenior IT Systems EngineerCommented:
You might not have the Group Policy Object assigned to the correct OU with the proper security settings.

On the target machine, if you do a 'gpresult /r' in the command line does your GPO show there? Is it applied or filtered out possibly?
0
JohnBusiness Consultant (Owner)Commented:
Another thing to check is all the permissions at each line of the batch file. That was one reason to test with a program as they are a simpler entity.
0
Cloud Class® Course: SQL Server Core 2016

This course will introduce you to SQL Server Core 2016, as well as teach you about SSMS, data tools, installation, server configuration, using Management Studio, and writing and executing queries.

NVITCommented:
Can you confirm if it even 'tries' to run the .bat? Not certain if event viewer would show anything.

Also try in your "program path and filename"...
- If not already done, change...
\\share\n21\downloads\bginfo\callit.bat
to...
cmd /c \\share\n21\downloads\bginfo\callit.bat
0
cpatte7372Author Commented:
Hello NewVillage,

I entered the following command:

cmd /c \\10.1.20.110\n21\downloads\bginfo\callit.bat

But it didn't work
0
cpatte7372Author Commented:
John,

On the target machine, if you do a 'gpresult /r' in the command line does your GPO show there? Is it applied or filtered out possibly?

rdp
0
cpatte7372Author Commented:
Hello John,

I tried with C:\Windows\system32\mspaint.exe

But it still didn't work
0
JohnBusiness Consultant (Owner)Commented:
Is the computer for sure Windows 7 Pro (and not Home)?

Try running System File Checker. Open cmd.exe with Run as Administrator and run SFC /SCANNOW. Allow to complete, shut down, start up and test.
0
cpatte7372Author Commented:
Definitely Windows 7 Pro
0
QlemoBatchelor, Developer and EE Topic AdvisorCommented:
The gpresult output is clear: The GPO does not apply, and that is where you should start with. Check the OU the user or machine is in. You'll need to get the GPO applied before doing any other troubleshooting.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
joinaunionCommented:
This may help a little.
It may be a link issue to server.
http://www.chicagotech.net/Security/gp6.htm
0
cpatte7372Author Commented:
Cheers
0
joinaunionCommented:
Just want to add this link for you to read. When running  gpresult you need to define the user.
https://blog.thesysadmins.co.uk/group-policy-gpresult-examples.html
0
QlemoBatchelor, Developer and EE Topic AdvisorCommented:
No, you don't have to provide an user.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Windows Batch

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.