In the past week, I encountered a curious problem on 2 clients' Windows Vista PCs. The symptom are:
- A red "X" on the network icon in the tray displaying the pop message - Connection status: Unknown The dependency service or group failed to start
- The PC is able to see available wireless networks
- The PC connects to available wireless networks but the status is limited and cannot connect to the Internet
- Both systems are running Windows Vista and Trend Micro virus protection
I spent a lot of time researching this problem and found that the error message "The Dependency Service or Group Failed to Start" is a somewhat generic message addressing Windows services issues. I also found that many Internet help sites are littered with tons of bad information on this issue. I tried many of the 'fixes' without success. Then I found a thread on Microsoft's TechNet Forum that correctly identified my clients' problem and offered a fix that worked. So, I give credit to Terry Downing for the fix. It worked like a charm.
The problem: Trend Micro's virus protection is getting confused and mistakenly identifies a Windows file as being infected with a virus. In its efforts to remove the supposed virus, it corrupts the Windows Network Location Awareness service. This service collects and stores network configuration information for the network and notifies programs when this information is modified. If this service is stopped, configuration information might be unavailable. If this service is disabled, any service that explicitly depends on it will fail to start. The Network List Service will not run when the Network Location Awareness service is disabled. Hence, the error message that a dependency service failed to start. The Network Location Awareness service is found in nlasvc.dll which is located in the system32 directory.
Above is a screenshot of the Services window in the Computer Management window with Network Location Awareness service highlighted.
The fix: The corrupted system file, nlasvc.dll, needs to be replaced with a working version of the file. For your convenience, I have put a copy of it here. Click on the link to download the file:
If you need to delete or overwrite a system file in Windows Vista, you'll quickly notice that you cannot delete system files, even as administrator. This is because Windows Vista's system files are owned by the TrustedInstaller service by default and Windows File Protection will keep them from being overwritten. Thankfully, there's a way that you can get around this. You need to take ownership of the files, and then assign yourself rights to delete or modify the file. For this, we'll use the command line.
First, open an administrator command prompt by typing cmd into the start menu search box, and hit the Ctrl+Shift+Enter key combination.
To take ownership of the file, you'll need to use the takeown command.
At the command prompt type: takeown /f c:\windows\system32\nlasvc.dll
That will give you ownership of the file, but you still have no rights to delete, move and rename it. Next, you need to run the cacls command to give yourself full control rights to the file:
At the command prompt type: cacls c:\windows\system32\nlasvc.dll /G your username:F
Make sure that you replace "your username" with your username exactly as it is spelled for the currently active user account on your computer.
At this point, you should be able to change the file. Rename the file from nlasvc.dll to nlasvc.dll.old. Next, copy the new source file that you downloaded from above to c:\windows\system32.
Once the file has been replaced you need to set the permissions back to its original state. Locate nlasvc.dll in c:\windows\system32 in the Windows File Manager. Right mouse button click on the file and choose Properties.
Click Security tab; Click Advanced button; Click Owner tab; Click Edit button; Click Other User or Group and type in NT SERVICE\TrustedInstaller.
Press Ok on all dialogs until all property dialogs are closed. Restart the PC and you should be back in business.
Please post a comment if this has been helpful to you.
Contact Info: info@consideritfixed.com
Computer repair in West Hartford, Computer repair in Avon, Computer repair in Simsbury, Computer repair in Farmington, Computer repair in Newington, Computer repair in Canton, Computer repair in Hartford, Computer repair in Bloomfield, Computer repair in Unionville, Computer repair in Wethsfield, Computer repair in Glastonbury
Thank you Nanette, your way worked for me and I only went up to step 7! :)
Posted by: Maria | August 30, 2013 at 03:46 PM
hi
can u help me with this problem
Windows Resource Protection found corrupt files but unable to fix some of them.
Details are included in CBS.Log windir/Logs/CBS/CBS.Log. For example C:/Windows/Logs/CBS/CBS.Log.
when I am trying to open the CBS.Log file it says access is denied
Posted by: julio | August 28, 2013 at 11:37 PM
Nanette's post worked for me like a charm,
Thanks Nanette!
Joe
Posted by: Joe Williams | July 15, 2013 at 02:59 PM
Typing
netsh winsock reset
in the cmd window opened using Ctl+Shift+Enter
worked for me!!
After a lot of other efforts!
Thanks everyone! :)
Posted by: S | May 28, 2013 at 12:12 PM
A combination of replacing the nlasvc.dll file and Nanette's STEP #8 did it for me, after trying about five other methods. Finally back online! :)
Posted by: Nathan Jay | May 27, 2013 at 11:10 AM
Thanks a mil! The replacement of the file solved it for me, I tried all the other mentioned fixes (from other sites before comming here) and none of them worked.
Thanks again!
Posted by: Koos | May 21, 2013 at 05:36 AM
Just performed reset worked a treat ...i love the internet .. great thank you alk
Posted by: maurice oconnell | May 14, 2013 at 05:41 AM
I fixed mine by opening Sytem configuration then services. I disabled all the services and pressed apply and rebooted, I then went back in and pressed "enable all" rebooted again which worked
Posted by: Micent | April 12, 2013 at 06:05 AM
Many thanks for the help. I did everything but it worked until I ran the "netsh winsock reset". It was a great support, tks again!
Posted by: John Tellez | April 10, 2013 at 10:26 PM
Thank you soooo much! It worked like a charm! :-)
Posted by: Daniella | April 07, 2013 at 04:55 PM
Hallelujah,
ESET's Smart security caused the same problem on my fathers laptop. It's been a while since I've worked on a vista system. The fix worked after following the additional steps from nanette. Thankyou!
As a side note for downloading the file to the PC. You can configure a static IP address on the network adapter that you know will work on your network, allowing you to send/receive traffic, but you will need to know what addresses are normally assigned to your network. If you need more info on how to do that look here http://www.howtogeek.com/howto/19249/how-to-assign-a-static-ip-address-in-xp-vista-or-windows-7/
Posted by: reeseFEST | April 01, 2013 at 05:24 PM
excellent.it workd
Posted by: venkat | March 15, 2013 at 06:25 AM
One other thing: I forgot to mention what my problems were that led me to this site.
I use a USB Stick through Virgin Boost Mobile to connect to the Internet and no matter how much troubleshooting I did, even uninstalling, I had no success connecting. Further I received the message, "The Dependency Service or Group Failed to Start" at the bottom right of the screen when looking at the connectivity issue.
The other situation: when I opened RealPlayer I received the message "Unknown Winsock Error" so I knew this would be the forum to repair my problem.
You are very intelligent. I'm saving as my FAVORITE>
Posted by: Jocelyn | March 10, 2013 at 07:30 PM
Thank you! Yes!!!!
This is what I did--and NOTHING ever goes right for me it seems, but this did:
Type "netsh winsock reset"
I'd followed the previous recommendations and restarted my computer but the problems existed. When I typed the above in the command box and restarted, VOILA!!!! My daughter and I high-fived one another.
Also I'd never had this problem before. I have Windows VISTA. Had been using AVG the free version for a year recently I switched to AVAST.....
someone mentioned TREND....I did have trend on my computer but that's been well over a year, maybe two....sometimes you just don't know with these computers, but I sure thank you guys and this forum for existing.
Posted by: Jocelyn | March 10, 2013 at 07:25 PM
Well I must say thank you to you all, I had to try a variety of solutions offered here - including starting windows in safe mode to be able to change the dodgy .dll - and then finish with some of the others as well. Genuinely appreciate you ladies and gents sharing the knowledge. cheers
c
Posted by: Chris from Cosby | March 05, 2013 at 03:59 PM
Nannette, thank you!!!! I appreciated the step by step version for a tech illiterate like me. It worked!
Posted by: Jill | February 24, 2013 at 03:10 PM
Original post &
Posted by: Nanette | June 16, 2012 at 03:30 PM
^^^
Thanks! I wish I would have found this before I spent $40 on a new driver / OS disc to wipe computer.
Posted by: Misty | February 21, 2013 at 10:30 PM
I am managed to solve the problem with the mentioned solution. Thanks for a very nice share. Keep posting
Posted by: Muhamamd Ahmed | January 28, 2013 at 04:00 AM
Hi! I encountered the same problem and the netsh winsock reset worked! Thanks so much! :D
Posted by: AC | January 22, 2013 at 01:54 AM
It works...:) Thank you so much
Posted by: Tree | January 19, 2013 at 01:33 PM
Guys do try a "System Restore" before you try to do it the hard way. I am telling because i did it the hard way and went for the simple solution after it did not work.So just try a "System Restore" and then do the above steps if does not work.But if you do not have a restore point created then the above is the best way :D
Posted by: Shanaka Aravinda | December 24, 2012 at 12:46 AM
Omg The post by Nanette helped and my computer is working like a charm. Thanks!!!!
Posted by: rselgynl | December 13, 2012 at 10:04 PM
Thanks for a great solution. I just opened command prompt as an administrator and typed netsh windsock reset. Then rebooted my computer. Worked like a charm. I would suggest others to try this solution first. I also think this problem mostly affects vista machines.
Posted by: Sairam | November 15, 2012 at 10:20 PM
I us3d nanette's fix and it worked. (I didn't have to do the last step.) Thanks so much....!
Posted by: Tom Chow | November 11, 2012 at 10:54 AM
Melanie's Post Work For Me and I'm able to see from my computer my network connections this is a simple and easy fix... thanks Melanie, I have added a little bit of helpful information to her post just to simplify it for those who don't no abou command etc...here you go
1. open an administrator command prompt- to do this go to the start menu type in cmd in the start search spot then -- (right click the cmd prompt-- clicking run as admin
2. type netsh winsock reset in the blinking area and hit enter, then restart or
3. reboot.
Thanks
Posted by: Ann | November 06, 2012 at 08:46 AM
Perfect... Thanks
Posted by: Pedro Gomes | October 22, 2012 at 07:33 AM
Nanette, your "dumbed down" instructions were a Godsend for a non-techy guy like me. Thank you very much!
Posted by: Paul | October 12, 2012 at 12:47 PM
Followed every step, trying to recall some of the DOS class I took long ago. I learned that cacls has been "depricated" and must use Icals. Finally got the correct syntax on everything, and got positive feedback from DOS at each step. -No change!! I continued to read posts on this site. I entered the "Netsh Winsock reset" at cmd prompt. I think that is what did the trick. Without this post and two asprin, my problems would still be making me crazy. Thank you very much!
Posted by: Wayne V | October 08, 2012 at 09:23 PM
Excellent .... it is working fine.. Thank you sooo much
Suman
Posted by: suman | September 21, 2012 at 11:36 PM
great work for me thank Q
Posted by: zain | September 06, 2012 at 05:18 AM
Amazing ! The second solution worked for me
Posted by: Farhan | August 29, 2012 at 10:15 PM
Wow.. I have spent about three hours trying to fix my sister's computer. I'm SO HAPPY to have found this solution. I can't thank you enough!
Posted by: SB | August 21, 2012 at 03:45 AM
Thanks Nanette.. Your instructions worked!!!
Posted by: JeanG | August 16, 2012 at 11:13 AM
Thanks a ton. I spent hours but could not follow any suggestions on the net since I was not able to run cmd as admin. Kept getting an error that windows could not access the specified file. Finally, logged in safe mode, ran cmd as admin and replaced the dll, did takeown command and now everything works just fine in normal mode. Can't thank u enough.
Btw, my problem was that I couldnt connect to the internet, kept getting the dependency service error.
-Rashmi
Posted by: Rashmi Ganesh | July 29, 2012 at 01:31 PM
Windows 7 Home Premium - worked like a charm. Thanks a bunch!
Posted by: Tc | July 21, 2012 at 03:07 AM
Vista home premium 32 bit
Got this problem after a bsod when closing tor connection.
Did the op's instructilns followed by nannettes comment on june 16th and it worked
Thanks
Posted by: Hcgjbvfjb | July 16, 2012 at 09:01 AM
I tryied all of them twice no luck.
Ok for the first Fix:
every thing went right till
(At this point, you should be able to change the file. Rename the file from nlasvc.dll to nlasvc.dll.old. }
It would not change. every time i change it would go back to normal.
For the second Fix.
a) At the prompt type: net localgroup Administrators /add networkservice then press enter
THE SPECIFIED LOCAL GROUP DOES NOT EXIST.
and the same answer for the second command.
Thank you all.
Can someone help me plzzzzzzzzzzzzzzzzzzz.
:(. :(.
Posted by: shiraz | July 10, 2012 at 07:04 PM
I am just an ordinary computer user, so these steps were challenging for me. It may sound so elementary to the experts, but we're not all experts!
This is a documentation of what I did, so some steps may have been repetitive (and possibly not necessary)
I am not sure if it is a combination of everything I did but I have a huge guess that the LAST STEP (#8) made the difference and may be done first before anything else. I have no way of knowing but it may save some time for everybody if they tried it first.
1)I tried exactly as instructed but it didn't work after all the successful feedback from DOS after each command. So I continued...
2) Click START and type RUN, press enter
3) Type REGEDIT, press enter
4) (Per Dominic'S feedback above)
- go to
>HKEY_LOCAL_MACHINE
>SYSTEM
>CurrentControlSet
>services
>NlaSvc
--Right-click to edit this key´s pemissions. Select user SYSTEM and check FULL CONTROL & READ. Do the same for Administrators and Users. Click OK and close Registry Editor window.
5)Click START, then All Programs, Accessories and right-click Command Promt, then select Run as Administrator
6)At the command prompt, type netsh winsock reset then press enter
7) Restart computer
8)LAST STEP (That made it work for me) > go to START, All Programs, Accessories and right click on command prompt select "Run as Administrator". Follow the instructions as follows:
a) At the prompt type: net localgroup Administrators /add networkservice then press enter
b) Type: net localgroup Administrators /add localservice then press enter
c) Type: EXIT then press enter
d) Restart your computer
(Source - http://www.techsupportforum.com/forums/f217/solved-vista-home-premium-dependency-service-or-group-failed-to-start-535234.html)
Like I said, I could not tell if the Last Step #7 did the trick by itself. It might be worth trying first. I just shared everything that I did which made it work in the end.
Good luck to those who come across the same problem!
Posted by: Nanette | June 16, 2012 at 03:30 PM
Nice article. Got a Vista system here that didn't have trendmicro, but has had (at one time or another: AVG, Avast, Spybot, and Malwarebytes)
My symptoms were: Could see wireless networks and couldnt connect.
Posted by: Mannard | June 15, 2012 at 01:42 PM
Excellent. Thanks for the help! Worked like a charm.
Posted by: Jessica | June 13, 2012 at 06:48 PM
I applied the netsh winsock reset and it worked
like a charm. Thank you very very much. You saved my hours of a real headache.
Posted by: bolilo | June 10, 2012 at 07:04 AM
Posted by: Melanie | September 13, 2011 at 11:24 PM
Melanie's Post Work For Me and I'm able to see from my computer my network connections this is a simple and easy fix... thanks Melanie, I have added a little bit of helpful information to her post just to simplify it for those who don't no abou command etc...here you go
1. open an administrator command prompt- to do this go to the start menu type in cmd in the start search spot then -- (right click the cmd prompt-- clicking run as admin
2. type netsh winsock reset in the blinking area and hit enter, then restart or
3. reboot.
this worked for Melanie her's is saying unknown network mine is showing the network great fix, thanks again Melanie
Posted by: Mary R | June 07, 2012 at 10:06 PM
I did everything, but it didn't work. I have to untake the ownership of the file
Posted by: Rafael | June 06, 2012 at 02:23 AM
i tried this and now cannot give permissions back says cannot access control editor
Posted by: jake | June 05, 2012 at 07:23 PM
I skipped straight to the netsh winsock reset part (as admin) and it worked! It was the only thing I had to do. Sweet, thanks fpr the helpful post!
Posted by: jeff | May 19, 2012 at 05:44 PM
it worked perfectly for me.. thanks heaps...
Posted by: pradeep | May 14, 2012 at 04:41 AM
how do i remove a script?
Posted by: mike | April 30, 2012 at 05:14 AM
INCREDIBLE !!! YOU ARE JUST GREAT ....DO NOT FORGET the
typing "netsh winsock reset" in the adminstrator cmd prompt, and then rebooting the computer,
GREAT !!!
Posted by: Abhishek | April 24, 2012 at 10:56 PM
Don't understand the part locate nlasvc.dll in c:\windows\system32 in the Windows File Manager. Where is the Windows File Manager, plz help me.
Posted by: Tiffany | April 08, 2012 at 05:19 PM
Peter Verrey / Thank you so much! You saved me many hours of anguish tnyrig to figure out how I could get the bloody thing to work. Never had this problem before, and all of a sudden
Posted by: Sam | April 07, 2012 at 02:02 AM