Link to home
Start Free TrialLog in
Avatar of cpatte7372
cpatte7372Flag for United Kingdom of Great Britain and Northern Ireland

asked on

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?

User generated image
Cheers
cpatte7372
Avatar of John
John
Flag of Canada image

What is says is "Run a Program"  Try running a program instead of a batch file to see if a regular program works.
Avatar of John Salle
John Salle

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?
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.
Avatar of NVIT
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
Avatar of cpatte7372

ASKER

Hello NewVillage,

I entered the following command:

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

But it didn't work
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?

User generated image
Hello John,

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

But it still didn't work
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.
Definitely Windows 7 Pro
ASKER CERTIFIED SOLUTION
Avatar of Qlemo
Qlemo
Flag of Germany image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
This may help a little.
It may be a link issue to server.
http://www.chicagotech.net/Security/gp6.htm
Cheers
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
No, you don't have to provide an user.