Asiframay Posted September 8, 2014 Posted September 8, 2014 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.
MordyT Posted September 9, 2014 Posted September 9, 2014 Lot more info needed? What happens if you run it by hand? What errors in the event log? Etc?
Arthur Posted September 9, 2014 Posted September 9, 2014 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
computer_expert Posted September 9, 2014 Posted September 9, 2014 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)
Arthur Posted September 9, 2014 Posted September 9, 2014 (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 September 9, 2014 by Arthur 1
Asiframay Posted September 11, 2014 Author Posted September 11, 2014 Thanks for replay it works by hand or on workstation but when we applied on server2k8 using GPO on logon script it does not work
Arthur Posted September 11, 2014 Posted September 11, 2014 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
Asiframay Posted September 14, 2014 Author Posted September 14, 2014 Arthur Thanks a lot. The Code you posted for this I have applied this and it works prefect. once again Thanks a lot for Help. Regards
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