Jump to content

Recommended Posts

Posted

Hi

I am new at 3rd Level support job I have problem deploying the batch file to change Adobe compatibility setting change for 200 user of Win-8.

the batch file applies using GPO in Server 2k8 environment under GPO---USER----Ploicy----Script----Logon but no result

the script is here please help. @echo off

echo Program to run Adobe Acrobat Reader in Windows 8

echo %vers% | find "Windows 8" > nul

if %ERRORLEVEL% == 0 goto ver_8

:ver_8

:Run Windows 8 specific commands here.

reg.exe Add "HKLM\Software\Microsoft\Windows NT\CurrentVersion\AppCompatFlags\Layers" /v "C:\Program Files (x86)\Adobe\Reader 11.0\Reader\AcroRd32.exe" /d "WIN8RTM" /f

goto:eof

Thanks in Advance.

Posted

Does this work for you?

 

@echo off

if not exist %SystemRoot%\system32\systeminfo.exe goto :eof
systeminfo | find "OS Name" > %TEMP%\osname.txt
FOR /F "usebackq delims=: tokens=2" %%i IN (%TEMP%\osname.txt) DO set vers=%%i
echo %vers% | find "Windows 8" > nul
if %ERRORLEVEL% == 0 goto ver_8
goto :eof

:ver_8
:: Run Windows 8.x specific commands here
echo Setting Adobe Reader compatibility mode to WIN8RTM
reg.exe Add "HKLM\Software\Microsoft\Windows NT\CurrentVersion\AppCompatFlags\Layers" /v "C:\Program Files (x86)\Adobe\Reader 11.0\Reader\AcroRd32.exe" /d "WIN8RTM" /f

Posted

Do the users have the ability to write to HKLM?

 

If not, try putting it under startup scripts in computer settings rather than user settings in GPO. You could also use group policy preferences with item level targeting to apply it to windows 8 machines (again, use computer config rather than user config)

Posted (edited)
Do the users have the ability to write to HKLM?

You're right actually. Users won't have permission by default (nor should they) so this batch file isn't going to work as a logon script. :)

 

try putting it under startup scripts in computer settings rather than user settings in GPO. You could also use group policy preferences with item level targeting to apply it to windows 8 machines (again, use computer config rather than user config)

+1. GPP would be far better IMO.

Edited by Arthur
  • Thanks 1
Posted

Try the per-user key under HKCU (or use GPP).

 

@echo off

if not exist %SystemRoot%\system32\systeminfo.exe goto :eof
systeminfo | find "OS Name" > %TEMP%\osname.txt
FOR /F "usebackq delims=: tokens=2" %%i IN (%TEMP%\osname.txt) DO set vers=%%i
echo %vers% | find "Windows 8" > nul
if %ERRORLEVEL% == 0 goto ver_8
goto :eof

:ver_8
:: Run Windows 8.x specific commands here
echo Setting Adobe Reader compatibility mode to WIN8RTM
reg.exe Add "[color="#FF0000"]HKCU[/color]\Software\Microsoft\Windows NT\CurrentVersion\AppCompatFlags\Layers" /v "C:\Program Files (x86)\Adobe\Reader 11.0\Reader\AcroRd32.exe" /d "WIN8RTM" /f

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 account

Sign in

Already have an account? Sign in here.

Sign In Now



×
×
  • Create New...