Inside The Web
    Facebook Twitter Instagram
    Inside The Web
    • Office
      • Excel
      • Ms Word
      • OneDrive
      • Google Docs
      • Google Sheets
      • Google Drive
    • Email
      • Gmail
      • Outlook
      • Emal Etiquette
    • Office Etiquette
    • Productivity
    Inside The Web
    Home»Office»Excel»Fixed: This Operation Has Been Canceled Due to Restrictions

    Fixed: This Operation Has Been Canceled Due to Restrictions

    Nisha GurungBy Nisha GurungNovember 26, 2023 Excel 5 Mins Read

    On Windows, you will encounter “This operation has been canceled due to restrictions in effect on this computer” when the programs or apps cannot launch on your PC.

    It mainly occurs when you have modified Registry Key settings and blocked programs like Device Manager, Local Drive, Run command, and so on from running. However, many users reported they received the same error while trying to open the hyperlinks on Microsoft Office programs—mostly, on Microsoft Outlook. 

    Now, in this case, you’ll get this error when you are using an Organizational account, or the default browser cannot access links. So, simply switching to a personal account or a different browser should fix it.

    In addition to it, we have 5 other fixes to troubleshoot this error in Microsoft Office programs. 

    Remove School/Work Account

    Are you using your school or work’s Microsoft Account?

    If you’ve logged on to the organizational account on your PC, you may have restrictions to some features or apps—especially when you’re not the Administrator. So, try using Office programs from your personal account. 

    To check and remove an account, here are the steps. 

    1. Launch Windows Settings. 
    2. Navigate to Accounts > Emails & accounts.
      Navigate to Accounts- Emails & accounts
    3. Expand your Organizational Email and click on Manage. 
      Expand your Organizational Email and click on Manage
    4. Choose Delete account.
      Choose Delete account from this device
    5. Click Delete to confirm.

    Change Default Browser

    Sometimes, minor factors like browser-related issues could be another reason why you get the “This operation has been canceled due to restrictions” error message while opening hyperlinks. 

    The default browser itself might have glitches or faulty extensions that cannot open the links. Try changing the Default Browser to access hyperlinks. 

    As an example, I will set Microsoft Edge as the default browser.

    1. Enter Windows + I for Settings. 
    2. Navigate to Apps > Default apps.
      Navigate to Apps-Default apps
    3. From the app lists, locate and click on the Browser. Then, hit the Set default button.
      hit the Set default button

    Disallow Run

    Next, you’ll get the error message if your Microsoft Office Applications are added to Disallow Run. This feature basically blocks the program from running in your Windows. 

    In that case, you can remove all the programs from the Disallow Run by limiting its data value to 0.

    After that, you should be able to launch the Microsoft applications. 

    1. Press the Windows + R key to open the Run.
    2. Type regedit in the field and hit OK.
      Type regedit in the field and hit OK
    3. On the confirmation, click Yes.
    4. Enter HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer path in the Registry Editor.
      Enter file path in the Regsitry Editor
    5. Right-click on DisallowRun. Then, choose Modify.
      Right-click on DisallowRun and choose Modify
    6. On Value Data, enter 0 and click OK.
      On Value Data, enter 0 and click OK

    Change Local Group Policy

    If tweaking the Disallow Run settings did not fix the error, change the Local Group Policy. When you set the Group Policy setting to enabled, a number of Disallowed applications cannot run. It’s possible that Office Applications are on that restricted list. 

    Eventually, when you attempt to launch those programs, it’ll result in this error.

    So, your best bet is to modify the Local Group Policy and set it as “Not Configured” to solve the problem. 

    1. Press the Windows + R keys to launch Run.
    2. Type gpedit.msc and hit OK.
      In Open, type gpedit.msc and hit OK
    3. On Local Group Policy Editor, expand User Configuration > Administrative Templates.
      expand User Configuration-Administrative Templates
    4. Click on System.
      Click on System
    5. Right-click on Don’t run specified Windows applications and choose Edit.
      Right-click on Don’t run specified Windows applications and choose Edit
    6. Select Not Configured and OK.
      Select Not Configured and OK

    Edit .HTML Value Data

    If you encounter the error when opening a hyperlink in Excel, Outlook, Word, etc, there are chances that the value data of the HTML Registry Key setting is misconfigured. 

    By default, the value for .html must be htmlfile. In case it is set to .FireFoxHTML, .GoogleChromeHTML, or any other values, you’ll receive the error. To fix that, verify and change the value data if required.

    1. Launch the Run command. For that, enter the Windows + R key.
    2. Enter regedit and click OK.
      Enter regedit in the field and hit OK
    3. Hit Yes on the prompt.
    4. Now, on the Registry Editor, enter this HKEY_CURRENT_USER\Software\Classes\.html path.
      on the Registry Editor, enter this HKEY_CURRENT_USER-Software-Classes-.html path
    5. Right-click on the (Default) file. Then, select Modify.
      Right-click on the (Default) file and select Modify
    6. On the Edit String window, type in htmlfile to change the Value data and click OK.
      type in htmlfile and click OK
    7. Now, repeat the same step for .htm, .shtml, .xhtml, .xht files. 

    Import the Registry Key

    A corrupted Registry Key can also trigger the “This operation has been canceled due to restrictions” error. You can import the Registry key from a different PC without error during such an instance. 

    Warning: As even the slightest mistake could affect the Registry keys and result in serious computer system problems, be careful when you perform these steps. I highly recommend you backup Registry first.

    Step 1: Export Registry Key

    1. Firstly, export the Registry from another PC without the error. Launch the Run command. Enter regedit and hit OK.
      Enter regedit and hit OK
    2. Click Yes on the prompt.
    3. Now, copy and paste this file path HKEY_LOCAL_MACHINE\SOFTWARE\Classes\htmlfile\shell\open\command in the Registry Editor. Press Enter.
      copy and paste this file path in the Registry Editor
    4. Head to File > Export.
      Head to File- Export
    5. Choose a Location to save the file on your PC. Enter a File name and click Save.
       Enter a File name and click Save
    6. Close the Registry Editor Window. Then, transfer that saved file to the problematic PC with an error using Pen-drive.

    Step 2: Import Registry Key

    1. Once you have the file on your problem PC, double-click on the .reg file. 
    2. When prompted, choose Yes. Click OK.
    3. After you’ve completed importing the Registry Key, make sure the value of the .html is htmlfile.

    Repair Microsoft Office

    If you still get the error after modifying the Registry key settings, maybe the problem is from Microsoft Office’s side itself. Now, if this is the case, you’d have to be patient and wait for the Office to fix the error.

    However, you could run an Online Repair yourself to see if it troubleshoots the issue and makes any difference. 

    1. Launch Settings. 
    2. Click Apps > Installed apps.
      Go to Apps-Installed apps
    3. Head to Microsft 365 and click on the More options. Choose Modify.
      Find Microsoft 365 and select More icon -Modify
    4. Pick Yes on the prompt.
    5. On Microsoft Window, click Online Repair. Hit the Repair button.
      On Microsoft Window, click Online Repair
    6. Again, choose Repair.
      Choose Repair

    In case Online Repair does not help, reinstall the Office App. 

    Excel Error
    Nisha Gurung

      As a Business Student, Nisha first used Excel to outline data trends for her college projects. Later, she started exploring basic Excel functions when she realized it is a powerful tool for all businesses today. Nisha believes she can relate to many of the issues users face when starting their Excel Journey. She uses this knowledge and experience to curate contents that are fit for all types of Excel users. Apart from writing, she enjoys reading books and traveling.

      Related Posts

      Excel By Nisha Gurung

      How to Compare Two Columns in Excel Using VLOOKUP

      Excel By Nisha Gurung

      How to Share Excel Files with Multiple Users

      Excel By Nisha Gurung

      How to Filter Based on a List in Excel

      Add A Comment
      Table of ContentsToggle Table of ContentToggle
      • Remove School/Work Account
      • Change Default Browser
      • Disallow Run
      • Change Local Group Policy
      • Edit .HTML Value Data
      • Import the Registry Key
        • Step 1: Export Registry Key
        • Step 2: Import Registry Key
      • Repair Microsoft Office
      • Home
      • About Us
      • Privacy Policy
      © 2025 Inside The Web

      Type above and press Enter to search. Press Esc to cancel.