avhimkov
3/18/2017 - 7:58 AM

Disable_Offic_protView

Disable_Offic_protView

@Echo off
C:\Windows\System32\cmd.exe /k %windir%\System32\reg.exe ADD HKEY_CURRENT_USER\Software\Microsoft\Office\15.0\Word\Security\ProtectedView /v DisableInternetFilesInPV /t REG_DWORD /d 0 /f
C:\Windows\System32\cmd.exe /k %windir%\System32\reg.exe ADD HKEY_CURRENT_USER\Software\Microsoft\Office\15.0\Word\Security\ProtectedView /v DisableUnsafeLocationsInPV /t REG_DWORD /d 0 /f
C:\Windows\System32\cmd.exe /k %windir%\System32\reg.exe ADD HKEY_CURRENT_USER\Software\Microsoft\Office\15.0\Word\Security\ProtectedView /v DisableAttachmentsInPV /t REG_DWORD /d 0 /f
pause
@echo off
reg.exe ADD HKEY_CURRENT_USER\Software\Microsoft\Office\15.0\Word\Security\ProtectedView /v DisableInternetFilesInPV /t REG_DWORD /d 1 /f
reg.exe ADD HKEY_CURRENT_USER\Software\Microsoft\Office\15.0\Word\Security\ProtectedView /v DisableUnsafeLocationsInPV /t REG_DWORD /d 1 /f
reg.exe ADD HKEY_CURRENT_USER\Software\Microsoft\Office\15.0\Word\Security\ProtectedView /v DisableAttachmentsInPV /t REG_DWORD /d 0 /f
exit
@Echo off
C:\Windows\System32\cmd.exe /k %windir%\System32\reg.exe ADD HKEY_CURRENT_USER\Software\Microsoft\Office\15.0\Word\Security\ProtectedView /v DisableInternetFilesInPV /t REG_DWORD /d 1 /f
C:\Windows\System32\cmd.exe /k %windir%\System32\reg.exe ADD HKEY_CURRENT_USER\Software\Microsoft\Office\15.0\Word\Security\ProtectedView /v DisableUnsafeLocationsInPV /t REG_DWORD /d 1 /f
C:\Windows\System32\cmd.exe /k %windir%\System32\reg.exe ADD HKEY_CURRENT_USER\Software\Microsoft\Office\15.0\Word\Security\ProtectedView /v DisableAttachmentsInPV /t REG_DWORD /d 0 /f
pause