We are having a couple issues while saving files. The error message we are receiving is ‘This operation has been cancelled due to restrictions in effect on this computer. Please contact your system administrator.’ The users that are experiencing this issue do not have access to the C drive, if you click ‘OK’ it will redirect to their documents area. Is there any way to prevent the error message from popping up or have documents save to the users documents area by default.
Thanks in advance.
Originally I was writing this: This normally happens if you are trying to save to a location like Shared drive or secure locations like Root C: or C:\Windows\System32. If you run Notepad++ as Administrator that should resolve the problem… unless you are on a work network and they do not give you admin rights. If you get the error again, try to save the file in your “Documents” and see if it works. If it does, that is a classic sign that you need admin rights to write to that location.
Pergatory comment :): If you set the shortcut to “Run as Administrator” you will receive a Right Click error message: Error: CreateProcess error=87, The parameter is incorrect. I have written to them a couple times about this error since 2008 but it has not been fixed yet. I did some research, it’s a Class Length error. I created a fix for it related to the Right Click option, I mentioned it below.
After re-reading your message 100% Yes, this is the problem. You can try to use “Run as Administrator”, as long as they have admin rights this will fix the problem. If they do not, then no they cannot. I’ve ran into it while trying to modify the c:\Windows\System32\Drivers\etc\hosts file. But if you set the shortcut to run as administrator you will receive the error I mentioned earlier. I created a VBScript to remove the Notepad++ Right Click option and replace it with a different one, that resolves the Error 87
In Settings > Preferences > Editing you can set the Default Directory to the Documents folder (or any folder you want)… that might be what you are looking for.