I have a install.bat file that is in a GPO and installs a software. When I click on the .bat file from a remote computer it installs fine, but the GPO wont work. I have the permissions on the share as the Everyone group with full control and ntfs permissions are authenticated users read\write. the gpo is enabled and linked to the OU with the laptops in it. There are no errors or anything in the application and system logs of the server or the client.
Any suggestions?
Thanks.
This bat file is in the Computer Configuration>Windows Settings>Startup. If I click on "Show files..." I see the .bat file in the SysVol>policies>guid>machine>scripts>startup folder (I put it in there manually).
Active DirectoryWindows Server 2008Networking
Last Comment
tolinrome
8/22/2022 - Mon
Joseph Daly
If you already have the install file in an MSI format why are you using a BAT file to install it?
With the file being an MSI you can skip the BAT and use group policy software installation in order to push it out.
You will want to use the publish option instead of assign.
tolinrome
ASKER
I was following the documentation of the vendor and thats the way they mention to do it. I'll try what you suggested, thanks.
tolinrome
ASKER
Check this out from the vendor. Still cant get it to work the way you suggested also. Actually thats how I initially did it also but I went according to the documentation, either way I cant get it to work.
This is the best money I have ever spent. I cannot not tell you how many times these folks have saved my bacon. I learn so much from the contributors.
rwheeler23
Joseph Daly
I see why they have you doing the BAT file installation now, you can not provide command line arguments with group policy software installation.
I do notice in your script you do not have the second part of the command line WSCONTEXT=xxxx you may or may not need this depending on your setup.
Did you create the share permissions and set everyone to have access to it? I believe computer startup scripts run as local system and you need to make sure the shared folder has permissions that will allow that to open the file.
What I would reccomend trying is this. Use the steps below and PSEXEC to open a command prompt as SYSTEM then attempt to browse to your shared folder. If you can get to it then you know it is accessible by the GPO. If not you need to alter your permissions.
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
Not exactly the question you had in mind?
Sign up for an EE membership and get your own personalized solution. With an EE membership, you can ask unlimited troubleshooting, research, or opinion questions.
With the file being an MSI you can skip the BAT and use group policy software installation in order to push it out.
http://support.microsoft.com/kb/816102
You will want to use the publish option instead of assign.