|30 Nov 2012||#21|
| || |
I right-clicked on the file, selected properties and then the security tab, clicked "edit" and answered the UAC prompt, added myself explicitly to the security info, set "full control" and I can now edit the file with Notepad++
The temptation is to leave it like that, but I'll remove my access now I've achieved what I want.
I may create a little batch jpb to do this with CACLS.
Ah. It appears that CACLS is "deprecated", I should use ICACLS now.
I have two little batch files (you'd need to change this to use your favourite editor)
icacls c:\windows\system32\drivers\etc\hosts /grant %username%:(F) "C:\Program Files (x86)\Notepad++\notepad++.exe" c:\windows\system32\drivers\etc\hosts
icacls c:\windows\system32\drivers\etc\hosts /remove %username%
If there's a way to stall the CMD processing while the editor is active, this could all be done in a single batch file, removing the possibility of forgetting the save.
|My System Specs|
|Similar help and support threads for2: Security issues (Access Denied)|
|Cannot start Windows Security Center Services. Error 5 access denied||System Security|
|Drive Access Denied! Took the ownership, but no security tab! Help!!||General Discussion|
|Win 7 - Local Security Policy, Access Denied||General Discussion|
|Can access Vista shares from XP but not from Windows 7 (access denied)||Network & Sharing|
|"Access denied:" How to overcome denied access to a folder||General Discussion|
|Access denied and user privileges issues||BSOD Help and Support|
|Software won't install and "access denied" issues||Software|
|Our Sites ||Site Links ||About Us ||Find Us |
© Designer Media Ltd
All times are GMT -5. The time now is 08:59 AM.