-2

My user works on a piece of software that requires me to edit the Config.nt file in the windows directory to work.

Now I navigated to the file location and tried to edit the file by opening with Notepad (as you would any .bat file). I edited it all well and good albeit with a little concern as to how empty the config .sys file was. (it consisted of only one small line which happened to be the one I needed to edit) when I went to save it I got Access Denied. at this point I was logged in as local administrator of the computer. I then tried logging in as the network admin, my own network admin account, and even tried to create a new administrator to see if I could start the permissions from scratch.

I then tried to right click on the windows file and opened properties to change the security. It allowed me to click Edit but did not allow me to add or delete a user and all the tick boxes are greyed out... is there any way I can gain full control of the windows file/ directory in Windows 8? it seems pretty much impossible.

[Update]

I have tried the Command lines suggested in the linked question and none of these work I still get permission denied or that the changes couldn't be made even with elevated cmd. will deactivating UAC make any difference?

ThunderToes
  • 660
  • 3
  • 15
  • 33

2 Answers2

2

UAC prevents users with administrator privileges to change system files when you open them through Explorer. I am not sure about Windows 8, but in Windows 7 you could start Notepad with the 'Run as administrator' option, open the file from notepad, edit and save it.

mtak
  • 17,262
0

I managed to get the icacls and Takeown to work in elevated command prompt and this helped me to take ownership and gain full control rights to the File. what I wasn't aware of was that there were two different Config.nt files one in the root of System32 and another in one of the folders in WinSxS. I happened to give myself control to the wrong config file. I corrected this, changed the Files=40 to Files=50 and it worked fine. StockPro is now fully operational.

ThunderToes
  • 660
  • 3
  • 15
  • 33