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?

Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

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.
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?
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.
Active Protection takes the fight to cryptojacking

While there were several headline-grabbing ransomware attacks during in 2017, another big threat started appearing at the same time that didn’t get the same coverage – illicit cryptomining.

NVITEnd-user supportCommented:
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...
cmd /c \\share\n21\downloads\bginfo\callit.bat
cpatte7372Author Commented:
Hello NewVillage,

I entered the following command:

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

But it didn't work
cpatte7372Author Commented:

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?

cpatte7372Author Commented:
Hello John,

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

But it still didn't work
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.
cpatte7372Author Commented:
Definitely Windows 7 Pro
Qlemo"Batchelor", 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.

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
This may help a little.
It may be a link issue to server.
cpatte7372Author Commented:
Just want to add this link for you to read. When running  gpresult you need to define the user.
Qlemo"Batchelor", Developer and EE Topic AdvisorCommented:
No, you don't have to provide an user.
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.