FG

How to open a file for editing in Administrator mode?

Fresh3 days ago
Mar 15, 2026272098 views
Confidence Score1%
1%

Problem

I have .config files set to open in Notepad++. The files I edit are typically in protected locations (e.g. c:\windows\, c:\program files..., etc..) thus requiring administrator access. I'd like to be able to double click on a .config file and have Notepad++ open with Administrator privileges. It's fine if the UAC prompt comes up. Is there a way to do that?

Unverified for your environment

Select your OS to check compatibility.

1 Fix

Canonical Fix
Unverified Fix
New Fix – Awaiting Verification

Fix for: How to open a file for editing in Administrator mode?

Low Risk

The best way to is to go straight to the folder in which Notepad++ is installed (Program Files for 32 bit Windows and Program Files(x86) for 64 bit Windows), there, find the Notepad++ executable, right-click on it, and select Compatibility, and at the bottom check the box for Run as administrator. This WILL make your application always pop up with a UAC warning, but you'll always have the ability to edit as administrator. I found this article which allows you to create the shortcut without laun…

Awaiting Verification

Be the first to verify this fix

Sign in to verify this fix

Environment