Skip to content

Instantly share code, notes, and snippets.

@gioxx
Created December 27, 2014 10:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gioxx/8c2cc2d6c13919b1b1a3 to your computer and use it in GitHub Desktop.
Save gioxx/8c2cc2d6c13919b1b1a3 to your computer and use it in GitHub Desktop.
Corregge l'errore di Office: "This operation has been cancelled due to restrictions in effect on this computer."
@echo off
cls
echo "This operation has been cancelled due to restrictions in effect on this computer"
echo Fix valido per Microsoft Office 2007/2010 su Windows Xp o superiore.
echo (Test effettuati su configurazione Win7 con Office 2010)
echo GSolone feb.2012
echo;
echo ATTENZIONE:
echo SALVARE IL PROPRIO LAVORO E CHIUDERE TUTTE LE FINESTRE DEI SOFTWARE OFFICE APERTE PRIMA DI CONTINUARE!
echo;
pause
:CHIUSURAPROGRAMMI
echo Verifica e chiusura processi Office ...
echo;
taskkill /IM WINWORD.EXE /F
if errorlevel 1 echo Processo gia' chiuso, procedo.
echo;
taskkill /IM EXCEL.EXE /F
if errorlevel 1 echo Processo gia' chiuso, procedo.
echo;
:RIPRISTINOREGISTRO
echo Ripristino valori chiavi di registro ...
REG ADD HKEY_CURRENT_USER\Software\Classes\.htm /ve /d htmlfile /f
REG ADD HKEY_CURRENT_USER\Software\Classes\.html /ve /d htmlfile /f
REG ADD HKEY_CURRENT_USER\Software\Classes\.shtml /ve /d htmlfile /f
REG ADD HKEY_CURRENT_USER\Software\Classes\.xht /ve /d htmlfile /f
REG ADD HKEY_CURRENT_USER\Software\Classes\.xhtml /ve /d htmlfile /f
echo;
echo Impostare ora Internet Explorer come predefinito, quindi riprovare a selezionare uno dei collegamenti ipertestuali non funzionanti prima dell'applicazione di questo fix.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment