rowed Posted February 10, 2010 Posted February 10, 2010 Hi all Anyone know how to create a .bat file that will run a exe using GPO? Thanks in advance
soveryapt Posted February 10, 2010 Posted February 10, 2010 You mean just run an EXE file from a batch file under GPO? in batch file: @echo off "\\server\path\to\file.exe" in GPO then set this to run as either a login or startup script per machine / user whatever, and off you go .. unless there is more to your question? 1
rowed Posted February 10, 2010 Author Posted February 10, 2010 how simple.... feel a bit daft now... but thanks again.
rowed Posted February 10, 2010 Author Posted February 10, 2010 Is there a way of installing this blind?
superfletch Posted February 10, 2010 Posted February 10, 2010 By blind do you mean silently? If so check the switches on the exe, ie use command prompt and navigate to the folder then type the name of the file with the help switch - filename /? This will list the syntax for the exe and any silence switches that may exist, you can use this info to work out how to install the app silently.
rowed Posted February 11, 2010 Author Posted February 11, 2010 it doesn't look like there are any switches, it's a installation exe. It runs when i click the bat file, but not when using GPO.
apeo Posted February 11, 2010 Posted February 11, 2010 BTW if the exe is running of a shared folder you need to make sure "Domain Computers" have atleast read rights, more if you need to write back to the share. Whats the application?
rowed Posted February 11, 2010 Author Posted February 11, 2010 we can install the batch file (installing the exe) on the machine manually, but not via group policy.
soveryapt Posted February 11, 2010 Posted February 11, 2010 What's the EXE file for? Is it something you could get an MSI for and then deploy with GPO instead of trying to run the EXE? If you're running it as a login script then you might have a problem if you have security in place to stop users running EXE files on the local machine.
soveryapt Posted February 11, 2010 Posted February 11, 2010 how simple.... feel a bit daft now... but thanks again. PS. We all have moments like that! lol ..
apeo Posted February 11, 2010 Posted February 11, 2010 we can install the batch file (installing the exe) on the machine manually, but not via group policy. Yes but did you check you share permission on the network share the exe is in? and whats the EXE.. what application is it?
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now