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%\Mic rosoft\Off ice
set remotedir=\\myserver\NETLO GON\Custom OfficeRibb on
if not exist "%userdir%\Excel.officeUI" copy "%remotedir%\Excel.officeU I" "%userdir%\Excel.officeUI"
pause
endlocal
what could i be doing wrong?
@echo off
setlocal
set userdir=%localappdata%\Mic
set remotedir=\\myserver\NETLO
if not exist "%userdir%\Excel.officeUI"
pause
endlocal
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
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
ok changing to a logon script now
Are you aware that logonscripts are delayed by exactly 5 minutes on win8 and higher?