Link to home
Start Free TrialLog in
Avatar of IT Guy
IT Guy

asked on

bat script runs in GPO but does not work on PC's

i created a new GPO and add a bat script (if i execute the script locally its works) but via GPO it does nothing. i checked the GPO results and its running on the PC but its not being applied (domain controller - Server 2008 R2 and Win 8 PC and Win10 PC)

what could i be doing wrong?


@echo off  
setlocal
set userdir=%localappdata%\Microsoft\Office
set remotedir=\\myserver\NETLOGON\CustomOfficeRibbon
if not exist "%userdir%\Excel.officeUI" copy "%remotedir%\Excel.officeUI" "%userdir%\Excel.officeUI"
pause
endlocal
Avatar of McKnife
McKnife
Flag of Germany image

You are using that batch as a logon script? Or mistakenly as a startup script?
Are you aware that logonscripts are delayed by exactly 5 minutes on win8 and higher?
Avatar of IT Guy
IT Guy

ASKER

i was not aware - good tip :) i actually have it as a startup script. should i change it as a logon script
ASKER CERTIFIED SOLUTION
Avatar of McKnife
McKnife
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
Avatar of IT Guy

ASKER

ok changing to a logon script now