Avatar of Chris Collins
Chris CollinsFlag for United States of America

asked on 

What method can I use to correct a socket permissions error when obtaining IPs via DHCP?

I have an HP Pavilion 15 laptop (TPN-Q130) on which I recently did an in-place upgrade from Windows 10 Build 1909 to Build 21H1. Ever since the upgrade, my network adapters (both WiFi and Ethernet) are unable to obtain IPs via DHCP. When using ipconfig /renew from the command line, I get the error: "an attempt was made to access a socket in a way forbidden by its access permissions".


I tried using static IP assignments instead, but to no avail.


When I attempt some basic troubleshooting (e.g. PING 127.0.0.1) I get a General Failure error. This would normally indicate to me that the TCP/IP stack is damaged somehow. I have tried resetting using various NETSH commands.  I've tried disabling miniport drivers. I was going to revert back to the previous Windows build, but when I tried that, I received a message indicating that the "files needed to restore your previous version have been removed".  Aaaarghh!!!!


So, I ran the in-place upgrade process again in the hope that it would replace any damaged or missing networking components. No good. 


Has anyone encountered this before? Is there a fix that doesn't involve factory resetting the PC? There are numerous files, programs, and settings on it that I really don't want to lose.


Any help would be appreciated.


Thanks.  :-)

DHCPWindows OSWindows 10Networking Protocols* Microsoft DHCP

Avatar of undefined
Last Comment
Hello There
Avatar of Hello There
Hello There

Uninstall antivirus and disable Windows Firewall. Then try it again.
Avatar of Chris Collins
Chris Collins
Flag of United States of America image

ASKER

Hi there. Sadly, that is also among the many things I've tried. Still getting the same error.

Also, I ran sfc /scannow and got the result "Windows Resource Protection has found corrupted files and repaired them." Unfortunately, that did not resolve the issue either.  :-(
Avatar of Hello There
Hello There

Have you run DISM /Online /Cleanup-Image /RestoreHealth?
Avatar of Hello There
Hello There

I would also uninstall everything that might affect a network configuration (AV, VPN software, etc.)
Avatar of Chris Collins
Chris Collins
Flag of United States of America image

ASKER

Actually running DISM now.  Will advise. (fingers crossed)

There are no VPN clients installed and no evidence that the user ever tried to create a VPN or Broadband connection via Windows.
Avatar of Chris Collins
Chris Collins
Flag of United States of America image

ASKER

DISM output the following message: "The restore operation completed successfully. The operation completed successfully"

Still experiencing the same issue - even after a reboot. :-(
Avatar of Chris Collins
Chris Collins
Flag of United States of America image

ASKER

Here's a weird development. When I run regedit as an Administrator and try to access the key HKLM\System\CurrentControlSet\Control\NetworkSetup2 I get an error that reads: "An error is preventing this key from being opened. Details: access is denied."

If I try to modify the permissions on that key I am unable to - same reason: access denied.
Avatar of Hello There
Hello There

What's in Event Viewer?
Avatar of Chris Collins
Chris Collins
Flag of United States of America image

ASKER

Loads of Warnings and errors. For example:
Error - Event ID 4307 Source: netBT "Initialization failed because the transport refused to open initial addresses"
Warning - Event ID 2504 Source: Server "The server could not bind to the transport \Device NetbiosSmb."

Avatar of Hello There
Hello There

Just read a thread with same symptoms. This was the solution:
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Nsi -> {eb004a00-9b1a-11d4-9123-0050047759bc} -> right-click the subfolder named 26 -> select Permissions -> set Everyone to have Full Control 
Run netsh int ip reset and reboot.
https://davidvielmetter.com/tricks/netsh-int-ip-reset-says-access-denied/
Avatar of Chris Collins
Chris Collins
Flag of United States of America image

ASKER

Gonna try it right now. Thanks (fingers crossed again).  :-)
ASKER CERTIFIED SOLUTION
Avatar of Hello There
Hello There

Blurred text
THIS SOLUTION IS ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
Avatar of Chris Collins
Chris Collins
Flag of United States of America image

ASKER

Strangely, there are six (6) iterations of that sub-key - all named exactly the same: {eb004a00-9b1a-11d4-9123-0050047759bc}

My instinct is to remove 5 of them. But, for now I think I'll just change the permissions on the "26" sub-key in each of them. Sound right?
Avatar of Hello There
Hello There

Yes, give it a try.
Avatar of Chris Collins
Chris Collins
Flag of United States of America image

ASKER

*sigh*

Nope. No good.

I really don't want to have to do a clean install but it's starting to look like I may have no other options. I really appreciate your willingness to offer such helpful suggestions? Anything else you can think of?
Avatar of Hello There
Hello There

There is an option to reinstall Windows 10 using installation media with the option Keep Everything (data, apps, settings). Is this what you performed?
https://support.microsoft.com/en-us/windows/reinstall-windows-d8369486-3e33-7d9c-dccc-859e2b022fc7#bkmk_reinstall_windows_10_using_installation_media
Avatar of Chris Collins
Chris Collins
Flag of United States of America image

ASKER

Yep, that's what I did.
Avatar of Hello There
Hello There

Safe Mode gives you the same results?
Avatar of Hello There
Hello There

You can try to reset network from Settings -> Network -> Status -> Reset network
And can you provide a list of installed apps?
Avatar of Chris Collins
Chris Collins
Flag of United States of America image

ASKER

Not sure. For some reason the user's password doesn't seem to work in Safe Mode. My best guess is that the local account has a different password than the Microsoft accoutn with which she must normally sign in. Although, with no Internet access, I'm not sure how she's signing in to an online account (unless there's a cached copy of her creds).

Anyway, I really appreciate your insights. But, It's after 4PM where I am and I'm gonna' have to bite the bullet and just do a clean install as I need to get this machine off my bench before close of business.

Thanks so much for your help.
Avatar of Hello There
Hello There

I hope it will fix the whole thing.
Windows OS
Windows OS

This topic area includes legacy versions of Windows prior to Windows 2000: Windows 3/3.1, Windows 95 and Windows 98, plus any other Windows-related versions including Windows Mobile.

129K
Questions
--
Followers
--
Top Experts
Get a personalized solution from industry experts
Ask the experts
Read over 600 more reviews

TRUSTED BY

IBM logoIntel logoMicrosoft logoUbisoft logoSAP logo
Qualcomm logoCitrix Systems logoWorkday logoErnst & Young logo
High performer badgeUsers love us badge
LinkedIn logoFacebook logoX logoInstagram logoTikTok logoYouTube logo