Editing a file in \windows\inf |
![]() |
|
|
Thread Tools | Search this Thread |
|
|
#1 |
|
Forum Member
Join Date: Mar 2003
Services: Win7x64, i7-2600k, 16GB DDR3, 128GB SSD v3 + 2TB Spinpoint, GeForce 8600GTS
Posts: 11,158
|
Editing a file in \windows\inf
So due to some kind of corruption or something, I have a Windows 7 PC with no networking at all, LAN and WLAN do not work.
The LAN and WLAN adapter and also three miniport 'adapters' have exclamation marks in Device Mangler. Uninstalling and reinstalling the drivers for the physical adapters gets them back in there with a status of 'working properly' (allegedly). However without reinstalling the miniport stuff there's still no network access. I've tried following this article but I cannot comment out the section in the .INF file because Windows won't let me resave the file after the edit. I've tried saving it under another name but can't delete the original file to replace it with the modified one. I've tried booting off mini-XP to manually delete the file without 7 running, access denied. There are no attributes on the file except archive, no system or hidden properties etc. Even a local administrator apparently doesn't have permissions to edit the ACL on the file or on the parent folder. How the hell are you supposed to edit and save a file in this folder? |
|
|
|
|
Please sign in or register to remove this advertisement.
|
|
|
#2 |
|
Forum Member
Join Date: Nov 2004
Location: Pembrokeshire, Wales
Services: Sony KDL32EX503U, Sony BDP-S350, Sky+ HD, IDNET Home Plus
Posts: 555
|
Try saving the edited file onto the desktop, or somewhere that you have permission to save it to and then copy it back into the windows\inf folder and allow the UAC prompt.
I've seen this when trying to edit files in protected directories as UAC doesn't seem to pop up to let you allow the save it just plain refuses. Hope that helps. |
|
|
|
|
|
#3 |
|
Forum Member
Join Date: Jul 2006
Location: Nottingham -You lost the game!
Services: VM 10Mb, Sky+, WHS2011, Win7, iphone 4S 32GB, Squeezebox Duet
Posts: 31,589
|
Run Notepad as administrator, then open the files.
|
|
|
|
|
|
#4 |
|
Forum Member
Join Date: Jun 2005
Posts: 8,496
|
Yep, saving the file in a different location and then copy/pasting over the original file usually works. But the question now is whether or not this specific file can actually be overwritten. If not, the usual fallback of booting from Linux should allow you to delete or replace the original file.
|
|
|
|
|
|
#5 |
|
Forum Member
Join Date: Apr 2011
Services: Old Boilers
Posts: 3,004
|
sometimes its worth burning a linux live iso as it will have ntfs support and won't be riddled with some of the problems that windows will have, that assumes you know linux enough to be able to mount a filesystem and edit a file should the live cd not do it for you
|
|
|
|
|
|
#6 |
|
Forum Member
Join Date: Mar 2006
Services: A hoover or some other generic vacuum cleaning machine.
Posts: 27,599
|
|
|
|
|
|
|
#7 |
|
Forum Member
Join Date: May 2006
Posts: 18,880
|
I think there's a bigger chance binary files referenced in inf file are corrupted and the inf itself is OK. You'd see immediately it's wrong, it's a text file. I'd say check those binary files, compare with a running OS.
|
|
|
|
|
|
#8 |
|
Forum Member
Join Date: Dec 2007
Posts: 1,007
|
As others have said, run notepad as administrator, then open the file and edit.
Alternatively, turn off UAC and it should let you edit it normally. |
|
|
|
|
|
#9 | |
|
Forum Member
Join Date: Sep 2003
Location: Sandy Heath, Beds, UK
Posts: 5,014
|
Quote:
You have done what I would have tried, which is removing and reinstalling all the NIC drivers. I assume you tried System Restore too. Sometimes the only proper fix is a reinstall of Windows. |
|
|
|
|
|
|
#11 | |
|
Forum Member
Join Date: Sep 2003
Location: Sandy Heath, Beds, UK
Posts: 5,014
|
Quote:
Yes, you could try resetting the whole TCP/IP stack. You don't actually need all the 'miniport stuff' unless you are using some kind of VPN. Just a working adaptor should be enough. |
|
|
|
|
|
|
#12 | |
|
Forum Member
Join Date: Jul 2006
Location: Nottingham -You lost the game!
Services: VM 10Mb, Sky+, WHS2011, Win7, iphone 4S 32GB, Squeezebox Duet
Posts: 31,589
|
Quote:
It's widely acknowledged that even if you know what you are doing that running everything with administrative rights (which is what happens with UAC off) breaks the security model of Windows post-XP, and leaves you much more prone to viruses and other malware taking control of your machine. Now that most applications have learned how to coexist with UAC, advising that someone runs without UAC is (to me) akin to recommending that they run no anti-virus. |
|
|
|
|
|
|
#13 |
|
Forum Member
Join Date: Mar 2006
Services: A hoover or some other generic vacuum cleaning machine.
Posts: 27,599
|
|
|
|
|
|
|
#14 | |
|
Forum Member
Join Date: May 2005
Posts: 6,318
|
Quote:
If bob187 had said ''Alternatively, turn off UAC and it should let you edit it normally but when you have edited switch it back on again'', would that have been ok ? |
|
|
|
|
|
|
#15 | |
|
Forum Member
Join Date: Mar 2006
Services: A hoover or some other generic vacuum cleaning machine.
Posts: 27,599
|
Quote:
It wouldn't have been any different to just running as admin or compatibility settings. |
|
|
|
|
|
|
#16 | |
|
Forum Member
Join Date: May 2005
Posts: 6,318
|
Quote:
I agree about running as admin etc though. |
|
|
|
|
|
|
#17 | ||
|
Forum Member
Join Date: Mar 2003
Services: Win7x64, i7-2600k, 16GB DDR3, 128GB SSD v3 + 2TB Spinpoint, GeForce 8600GTS
Posts: 11,158
|
Quote:
Tried and failed. Quote:
|
||
|
|
|
|
|
#18 |
|
Forum Member
Join Date: Mar 2003
Services: Win7x64, i7-2600k, 16GB DDR3, 128GB SSD v3 + 2TB Spinpoint, GeForce 8600GTS
Posts: 11,158
|
|
|
|
|
|
|
#19 | |
|
Forum Member
Join Date: Mar 2003
Services: Win7x64, i7-2600k, 16GB DDR3, 128GB SSD v3 + 2TB Spinpoint, GeForce 8600GTS
Posts: 11,158
|
Quote:
This is what I am leaning towards. Not sure about a virus. The user admits to running 'System Mechanic' the evening before 'it just stopped working'. I wasted more time than a flat reload would have taken today, but not as much as it will take for reload/app installs/data restore. |
|
|
|
|
|
|
#20 | |
|
Forum Member
Join Date: Mar 2003
Services: Win7x64, i7-2600k, 16GB DDR3, 128GB SSD v3 + 2TB Spinpoint, GeForce 8600GTS
Posts: 11,158
|
Quote:
![]() b) Tried the netsh command - no dice c) Well the LAN and WLAN adapters are 'working normally' according to windows, yet I have no network adapters even showing as being installed in Network and Sharing Center. |
|
|
|
|
|
|
#21 |
|
Forum Member
Join Date: Mar 2003
Services: Win7x64, i7-2600k, 16GB DDR3, 128GB SSD v3 + 2TB Spinpoint, GeForce 8600GTS
Posts: 11,158
|
Thanks all for your feedback so far.
I will give it one more try in the morning, then I am reloading it. |
|
|
|
|
|
#22 | |
|
Forum Member
Join Date: Jun 2005
Posts: 8,496
|
Any form of Windows is likely to prevent you from modifying/overwriting the file, but Linux won't give a crap.
Quote:
|
|
|
|
|
|
|
#23 |
|
Forum Member
Join Date: Apr 2006
Posts: 4,302
|
Admittedly i've never actually seen this do anything myself, but since nobody else has suggested it you could try sfc /scannow from an elevated command prompt?
|
|
|
|
|
|
#24 |
|
Forum Member
Join Date: Jun 2005
Posts: 8,496
|
You're not the only one - I don't think I can even recall hearing anyone say that it worked. I've never understood why it became such a common 'cure-all' recommendation.
|
|
|
|
|
|
#25 |
|
Forum Member
Join Date: Mar 2003
Services: Win7x64, i7-2600k, 16GB DDR3, 128GB SSD v3 + 2TB Spinpoint, GeForce 8600GTS
Posts: 11,158
|
Laptop was restored to factory defaults using recovery partition this morning by one of my techs.
Would have been interested to figure out the fix - or maybe the recovery was the only fix. |
|
|
|
![]() |
«
Previous Thread
|
Next Thread
»
| Thread Tools | Search this Thread |
|
All times are GMT +1. The time now is 17:11.




