Media Sharing Bug Fix for Windows Vista

Update: Since SP1 has been released for Windows Vista the fix described below does not work for 64bit installations.  A comment was left below that offers a quick and easy fix that worked for that reader.  Thanks "wounding"! =]

I ran into a bug when trying to share my media with my XBox 360.  Each time I tried to enable the sharing through the Network and Sharing Center in Windows Vista Ultimate I received this error message:

Media sharing is currently disabled, either because the sharing service is no longer running or your firewall settings have changed. To restart sharing you must first confirm your sharing settings.

Regardless of how many times I enabled sharing, this message would always pop up the next time I attempted to re-enable sharing.  After a bit of investigating I was able to finally fix this issue.  Here are the steps that you need to take in order to fix this issue.

  1. Open a command prompt (be sure to right-click and choose "Run as administrator" or you will receive a "system error 5 has occured. Access denied." error)
  2. Type net stop winmgmt.  If it warns you about other services stopping just type Y to continue.
  3. Delete the folder (choose the option that fits your Operating System)
      - Vista 32Bit: %SystemRoot%\System32\WBEM\Repository and all its contents
      - Vista 64Bit: %SystemRoot%\sysWOW64\WBEM\Repository and all its contents
  4. Reboot
  5. Once the system has rebooted open a command prompt and type net localgroup administrators NetworkService /ADD

That should fix your problem!  This should also fix the problem where you receive the server execution error in the Network and Sharing Center.

Disclaimer: Although no one has reported a problem with the solution above, please be aware that you are running these commands at your own discretion.  I will be glad to assist in any way I can, but I do not take responsibility for any issues incurred.

Kick It!

  • Permanent link to this post Permalink 
  • Share this post! Share It! 
  • View this post's comments Comments (81) 
  • RSS Feed for this post's comments Comment RSS
  •    


Comments

Posted on 12.18.2007 04:51 AM #

Brian

Brian us
Wow thank you so much. I would have never figured that out.

Posted on 12.18.2007 18:06 PM #

Danny

Danny us
No problem Brian - glad I could help.

Posted on 12.19.2007 09:29 AM #

Vince

Vince us
U rock man. I've scoured the net for this issue. I was leaning towards Norton being the root of this problem, but your instructions have completely fixed the prob.

Posted on 12.19.2007 16:55 PM #

Danny

Danny us
Thanks for the kind words Vince - glad I could help you fix the issue. =]

Posted on 12.21.2007 18:45 PM #

Steve

Steve us
Thanks for this post ... what a pain! ...

Good to go! no thanks to MS!

Posted on 12.30.2007 20:48 PM #

Danny

Danny us
Anytime Steve. No need to hate on Microsoft. Smile

Posted on 01.31.2008 21:51 PM #

me168

me168 us
when I try to run net stop winmgmt and enter y it tells me: System error 5 has occured. Acess denied.

Posted on 01.31.2008 21:53 PM #

Danny

Danny us
This is typically because you are not running under an administrator account. Can you verify that you are logged into windows vista as a system administrator?

Posted on 01.31.2008 22:09 PM #

me168

me168 us
I just went in to the start menu clicked my icon and it said I am an administrator so I am pretty sure that is what kind of accout I have

Posted on 01.31.2008 22:11 PM #

me168

me168 us
ok yeah I am positive now

Posted on 01.31.2008 22:12 PM #

Danny

Danny us
Unfortunately this is an issue I've run into with several people. I've worked with a number of people that cannot execute this command even under an administrator account. I will forward this an individual at Microsoft that can hopefully assist with this issue. Once I have more information I'll update this comment thread.

Sorry I don't have an immediate answer for you.

Posted on 01.31.2008 22:14 PM #

me168

me168 us
ok thanks

Posted on 02.5.2008 23:19 PM #

Danny

Danny us
I have received a response from Microsoft. First off I'd like to thank Scott Guthrie, Ian Ellison-Taylor, and Nitan Bhat at Microsoft for their time and assistance. Yet another example of why I enjoy working with Microsoft people/products.

The "system error 5" issue occurs when you do not open the command prompt as an administrator (User Access Control Issue - or UAC). To bypass this error simply navigate to your command prompt executable (C:\windows\System32\cmd.exe for most, replace windows with your system root if necessary). Right-click an choose Run as administrator. Then complete the commands as instructed in the blog post.

I also feel obligated to mention that Nitan Bhat explained that this is not the recommended solution. Attempt at your own risk. I can say that no one who has successfully completed the steps above has reported any issue. I have logged a request for the recommended solution with Nitan and will post it once I have it.

Posted on 02.9.2008 14:43 PM #

me168

me168 us
awesome, I guess I can wait a little longer to see whats recomended. Thank you very much

Posted on 02.12.2008 17:37 PM #

me168

me168 us
hey, just wondering if you have heard anything or if you think i should just do what everyone else did. thanks for all the middle man work you are doing.

Posted on 02.12.2008 18:35 PM #

Danny

Danny us
Unfortunately I have not, but I did follow up today requesting an update. The solution above has worked for everyone that has spoke to me...but again, it is at your own risk.

I have personally used this solution on my computer, btw...

Posted on 02.13.2008 22:21 PM #

me168

me168 us
lol, not much luck but bad luck for me, I tried again and the run as administrator worked but after I restarted and put in net localgroup administrators NetworkService /ADD, I recieved another beautiful error message saying: system error 1378 has occured. The specified account name is already a member of the group.

Posted on 02.15.2008 00:25 AM #

Tshroom

Tshroom us
"Anyways, if you read through the post, I've read and tried what you've just posted and it only removed the error message that prompt up but doesn't let me actually connect to any shares still as it still shows as not being able to find a network connection."

Saw that on another forum. I went through the steps and the same thing happens for me. No more error message at the start, but it still says I am not connected to a network even though I know I am. This is frustrating because I am trying to connect my 360 to share media. My PC sees the 360 but the 360 does not see the PC. If I can't get it fixed I might switch back to 32bit.

Posted on 02.23.2008 21:16 PM #

me168

me168 us
I dont think this matters at all but I am running the 32-bit home basic vista. Here is a pic of what happened after I rebooted and made the command. viewmorepics.myspace.com/index.cfm I dont know what I am doing wrong but hopefully you know.

Posted on 02.24.2008 18:06 PM #

Danny

Danny us
@me168 - It looks like you are missing a space between "NetworkService" and "/ADD".

Posted on 02.24.2008 18:52 PM #

me168

me168 us
Ok your right but now I come up with the previous problem. viewmorepics.myspace.com/index.cfm

Posted on 02.24.2008 19:07 PM #

me168

me168 us
What files now exist in your repository folder? I am thinking about getting the files from an XP that is working fine and putting them in place of my bad repository files.

Posted on 02.25.2008 09:53 AM #

Danny

Danny us
Update: This bug is now in the hands of the Microsoft Network Sharing team and is being investigated. They are working to provide a fix. I will continue to post with any updates.

Posted on 03.1.2008 16:02 PM #

wounding

wounding us
This is important for x64 vista users

instead of follwing the system32 folder delete the repository folder found in sysWOW64

Excellent work on fixing this bug, I have been fighting this for a month.

Posted on 03.2.2008 03:20 AM #

Danny

Danny us
@wounding,
Thanks, you are correct - 64 bit users will need to follow that path. Glad you were able to get things fixed!

Posted on 03.2.2008 23:10 PM #

Tori

Tori us
i am having this same issue...i have about 200 divx movies on my computer and when i try to connect thru x-box it says i am not connected...then there is a message in wmp that the sharing svc has been stopped...this is strange because it happened out of the blue...i was able to share fine for months...then i started getting this problem...but it doesnt happen with every movie...sometimes it will happen at the start of the movie...in the middle or i can finish the movie...very confusing

Posted on 03.3.2008 09:00 AM #

Danny

Danny us
@Tori,
I have never heard of this issue happening intermittently as you described. Have you tried the fix suggested in the post? If so, what were there results?

Posted on 03.3.2008 21:58 PM #

me168

me168 us
Tori may have something disruppting singal like a microwave or phone or something like that maybe?

Posted on 03.3.2008 22:33 PM #

Danny

Danny us
I do not think that is the case since he is seeing the sharing service stopped. Good thought though...

Posted on 03.7.2008 18:40 PM #

Justin Wilcox

Justin Wilcox us
Awesome. Just saved me from reformatting my computer, again. Smile

Posted on 03.10.2008 19:54 PM #

Danny

Danny us
@Justin,
Fantastic! I'm glad I was able to save you that time and effort. Enjoy!

Posted on 03.11.2008 15:41 PM #

John

John us
If you relly want to fix it, here is how. Open the control panel, Then open the administrative tools. Next click on Services. Scroll towards the bottom of the list and find "Windows Media Network Sharing Service. Make sure that this is running. Also right click on this and go to properties. In the properties make sure that this is set to run automaticaly when windows starts. This fixed my Problem and hopefully will fix yours.

Posted on 03.11.2008 16:58 PM #

Danny

Danny us
@John,
This issue is typically not fixed by your solution. In fact, every time I've heard of someone trying that it has displayed an error while trying to start the service. Thanks for the helpful response.

Posted on 03.18.2008 13:35 PM #

wounding

wounding us
I have noticed that this issue seems to revolve around the service pack 1 update for Vista. Everytime I have installed a beta update or the official update my pc reverts back to the previous issue of not being able to detect my network or share my media. Does this theory have any validity??

Posted on 03.18.2008 13:59 PM #

wounding

wounding us
Ok have a problem. Once I have installed service pack 1 on Vista the fix will no longer work as I no longer have the Repository folder within the Wbem folder of SysWow64. The error I am receiving is the exact same as the one I had experienced before.

Posted on 03.23.2008 19:33 PM #

me168

me168 us
I wonder if the sharing team has gotten anywhere

Posted on 04.8.2008 09:41 AM #

Michael

Michael us
I have the same problem and think it may be related to SP1 for VIsta ... everything was fine until the update - now, I can't share, I get the same repeating problem, I go into AdminTools --> Services and can't start WM Network Sharing, and even though I'm running x64, I don't have the correct directory. even when I follow the instructions here for the System32 folder, I don't have the correct privileges to delete the folder in question. What am I doing wrong?!?

Posted on 04.10.2008 16:02 PM #

wounding

wounding us
Same issues here Michael. As far as I can tell this fix no longer works with SP1 (at least for us 64bit users). Simply going to have to wait for an official solution from MS as this is becoming troubling.

Posted on 04.11.2008 05:22 AM #

wounding

wounding us
run a command prompt as an administrator (right-click on it and click "Open as Administrator") then enter the following command line:

net localgroup "Administrators" "NT Authority\Local Service" /add


This worked for me after SP1 in x64 edition.
Credit:docinventor @Xoxide forums

Posted on 04.13.2008 09:51 AM #

Danny

Danny us
This does seem to be much more common no 64bit instances of Vista. I will send another email requesting a status update tomorrow.

Posted on 04.25.2008 05:30 AM #

cuneyt

cuneyt gb
hi i can not delete the file repository, it tells me that the file is open in another program which it isnt. i am running 32bit vista home premium

Posted on 05.6.2008 01:08 AM #

matt

matt us
Have you any news on this yet?

Posted on 05.6.2008 16:40 PM #

Danny

Danny us
Unfortunately no I have not received a response. It looks like SP1 did not help this issue, which would lead me to believe more significant time will be required to fix this bug.

Posted on 05.8.2008 22:16 PM #

matt

matt us
Found a fix for myself.
I already owned nero 8 and it lets me stream my music, pictures, and video.
Very easy to operate and works with network discovery off so I can bypass Windows Vista Ultimate.

Thanks for your quick response though!!!

Posted on 05.11.2008 16:35 PM #

Steve

Steve gb
I've just started getting the error when trying to view videos on my Xbox. It says media sharing is not enabled when it clearly is.

I have to open windows media player on my computer for me to click apply and ok everytime I want to watch something.

I've tried the above steps mentioned but still nothing.... any other hints or tips?

Posted on 05.12.2008 21:24 PM #

Danny

Danny us
@Steve - "woudning" left a comment above (www.dannydouglass.com/.../...or-Windows-Vista.aspx that discusses some possible alternatives since SP1 has been released. It seems that 64bit users are out of luck since the release of SP1 in regards to my fix above.

Let me know if that works for you.

Also, no word back from Microsoft, sorry everyone. :/

Posted on 05.15.2008 15:42 PM #

wounding

wounding us

This fix will also work:



1. Click Start, click Run, type cmd, then press ENTER

2. For Windows Vista, type the following command, and then press ENTER:

secedit /configure /cfg %windir%\inf\defltbase.inf /db defltbase.sdb /verbose

3. You receive a "Task is completed" message, and a warning message that something could not be done. You can safely ignore this message. For more information about this message, view the %windir%\Security\Logs\Scesrv.log file.
Note In Windows Vista, the defltbase.inf file is a Security configuration template for the default security. You can view the settings for this file in the following location: %windir%\inf\defltbase.inf

Posted on 06.15.2008 09:30 AM #

Peter Nunn

Peter Nunn gb
Hi Danny,

I have tried both solutions posted above - yours and woundings, but I simply cannot get the sharing service to stay running. It seems to run for the briefest of sessions and then stops. The event viewer quotes Error 0x80004002 which I believe is a user cancellation error. I am running Windows Vista 32 bit and trying to share my media with my PS3 via a wireless connection. I have no firewall software other than that which comes with Windows and the hardware one that comes with the router,

Cheers,

Peter

Posted on 06.17.2008 00:13 AM #

Danny

Danny us
@Peter - It is a bit confusing that it works at times for you. These solutions have consistently been "mark-or-break" scenarios to this point. Someone else mentioned this week at work having issues sharing with their PS3 so I will investigate more and share any solutions I come across.

Sorry I do not have more right now.

Posted on 06.17.2008 21:51 PM #

kevin

kevin us
This problem only occurred for me after I installed SP1 for x86 Home Basic (if that helps the MS tech ppl). Your fix solved the problem! Thank you - you are a gentleman and a scholar my good man.

Posted on 06.29.2008 14:35 PM #

John

John us
This may be obvious.... but I was doing everything listed here and totally missed that for some reason I had UPnP device Host disabled. Make sure you have that enabled as well or Media sharing will not work with an XBox or PS3.
I just did that and Voila.

Posted on 07.1.2008 15:33 PM #

Sean

Sean us
i just tried these steps and it works now....THANKS!!!!

Posted on 07.5.2008 10:34 AM #

Joshua

Joshua us
I had this problem all morning. It suspiciously started after my computer turned off last night possibly due to a power outage. Anyway, after reading this entire comment list I read the comments on hxxp://www.vistax64.com/.../...-enable-media-sharing.html and found the solution to my problem. The SSDP Discovery service was disabled. By changing it to automatic, starting the service, and then starting the wmp network sharing service- voila working like usual.

Btw, this is my first post ever in 13 years of mooching off the info provided by others, but the importance of media sharing requires me to help when possible.

Posted on 07.16.2008 07:05 AM #

robp

robp us
Joshua:

Great tip. Nothing above worked for me, but that (enabling teh SSDP service) finally did it.

Some sort of Windows Update must have disabled it. I'd shared files with my Xbox360 for probably a year without issue until this nightmarish seemingly no solution issue arose. I'd tried everything (Danny's solution, several netsh modifications back and forth, several router changes, etc.). Nothing worked. By merely setting the SSDP Discovery service to automatic, it now works again.

Thank you.

Posted on 07.16.2008 21:15 PM #

me168

me168 us
WOW thank you SO much Joshua, I have been following this thread forever trying everything and changing the ssdp did it! You can not imagine how long i have been waiting for this lol.

Posted on 07.19.2008 08:07 AM #

dave

dave gb
Hy Danny,

I messed this up and I want to get back to square 1.
I completed "Type net stop winmgmt. If it warns you about other services stopping just type Y to continue".
This stopped a lot of stuff and now I cant re-connect to my preffered network.
How to I start those services again?
Many thanks.
I know Im stupid!!

Dave

Posted on 07.27.2008 19:05 PM #

Dave

Dave us
Is this suppose to work if you *want* Media Sharing enabled?

I ask because I enable it through my network configurations and get that error in WMP11. However, when I follow the instructions it seems to completely disable Sharing. It gets rid of the error when WMP11 starts, but if I re-enable Media Sharing, the error starts coming up again.

It almost seems like the instructions simply disable Media Sharing as a means to avoid the error with WMP.

Posted on 08.6.2008 18:45 PM #

simon

simon gb
ok quick fix on this one seems something has disabled the ssdp service which is a dependent for the sharing service so from here this is what we do:
click on start then run type in services.msc hit enter this will bring up the services window scroll down till you see ssdp discovery that should be set to disabled now but we want to set it to automatic tyo do this right click it select properties and there is a drop down box with disabled in it click on it and choose automatic in the same window click on start then you can click on ok to close the window for ssdp discovery.
Next scroll down the services window till you see Windows Media Player network sharing service just right click on that and choose start.
Hope this helps as it helped me now to find out whats stopped the ssdp discovery service.

Posted on 08.8.2008 03:31 AM #

BlackGoku03

BlackGoku03 us
Simon, that worked for me. I did everything I could think of and googled but nothing worked. Setting the SSDP service to automatic fixed it. Thanks.

Posted on 08.9.2008 15:12 PM #

Outomas

Outomas us
Simon... thanks man.. worked for me, and very easy to do it... thanks again... i owe you Tong

Posted on 08.10.2008 07:04 AM #

simon

simon gb
No problem still trying to find out what and why the ssdp service was disabled must have been something recent as my sharing was messed up only recently will post back if i find anything out.

Posted on 08.19.2008 16:05 PM #

chris

chris gb
simon.....thank you, your method worked for me 2, quick and easy, thanks

Posted on 08.19.2008 16:11 PM #

chris

chris gb
simon not sur eif this is a stupid question or if u can help me but i wanted media centre to work so i could play my movies and music through my tv, the movies play fione but all the music i downloaded via napster wont play on my ps3, it says unsupported data even though they are wma files which the ps3 is enabled to play??

Posted on 08.20.2008 14:30 PM #

simon

simon gb
Hi chris glad the fix worked for you regarding your question about wma playback just a quick one for you but have you enabled it on the ps3 in the settings you have to goto system settings then scroll right down till you see "enable wma playback" other than that im sorry but i dont know you could just try converting them too mp3.

Posted on 08.31.2008 13:12 PM #

Ste H

Ste H gb
Hi Danny
Your thread seemed most promising for the wmp fix but it hasn't worked Frown
You still seem like the most promisisng source however having tried several other places. One I tried has resulted in my network connection status being displayed as unknown despite being able to download and surf, if i try to disconnect/reconnect then it still displays the same unknown status but the net goes.
I believe this is my new problem root, d'you have any suggestions on this?

Posted on 09.1.2008 04:48 AM #

Trent

Trent us
When I tried to start the Windows Media Player Networking Sharing Service I got this,

"The Windows Media Player Networking Sharing Service service on Local Computer started then stopped. Some services stop automaticall if they are not in use by other services or programs."

So I don't know what to do now.

Also, my Xbox360 sees my WindowsXP machine just fine. I want to be able to share my media between all my computers. My Vista sees everything on my network; Xbox360 and XP computer.

Posted on 09.4.2008 17:49 PM #

DonMike

DonMike us
tried this, and every other fix out there... but still unable to connect my xbox360 as a media extender.....

Posted on 09.4.2008 20:57 PM #

quafftime

quafftime gb
many thanks to simon and danny, the fix worked for me

Posted on 09.14.2008 13:51 PM #

Ryan

Ryan au
Quite refreshing to find a fix so quickly! Thank you for the easy to understand instructions, and for helping me get Media Center to work on the 360.

Posted on 09.14.2008 18:11 PM #

James C

James C us
thanks a ton dude

Posted on 09.19.2008 23:10 PM #

Kevin W

Kevin W us
I had this problem, but the fix listed here didn't work. I eventually took a look and found that on vista my network discovery was set on 'custom' and whenever I tried to change it to 'on' it would do nothing and go back to custom. I looked in my task manager and saw that 'WMPNetworkSVC' was stopped, but when I tried to start it I would get an error. So I went to my service manager and saw that 'Windows Media Player Network Sharing Service' was stopped and had a startup type of 'Manual', so I changed the startup type to 'Automatic' and restarted the service. Now my network discovery can finally turned on and sharing now works. I have no idea how the settings got switched, but it could be due to a windows update resetting some of my settings.

Posted on 09.24.2008 23:01 PM #

Aslyn

Aslyn au
Delete the folder (choose the option that fits your Operating System)
- Vista 32Bit: %SystemRoot%\System32\WBEM\Repository and all its contents

how do i delete this folder abd all its contents????

Posted on 09.29.2008 21:53 PM #

Andrew

Andrew us
when i type net localgroup administrators NetworkService /ADD it says

"System error 1378 has occured."
"The specified account name is already a member of the group"

Posted on 10.7.2008 16:34 PM #

Richard

Richard gb
Many thanks for posting this, and all the wonderful replies. I had just this issue with Media Sharing constantly disabling itself. As it turns out SSDP was disabled in my Vista32.

I've just updated TVersity to the latest version, and noticed that it has an option during installation to disable SSDP. Might be one reason why SSDP was disabled for me (from the previous install), and for others.

Posted on 10.9.2008 16:14 PM #

another oneder

another oneder
YOUr solution did not work for me amigo

BUT
i was able to find this one
wiki.answers.com/.../Why_do_I_get_an_Error_1068_when_I_try_to_share_my_media_in_WMP11_in_WXP_pro_sp2_start_service_in_services

this one worked for me and i suggest you post it with your solution!

Posted on 10.14.2008 23:39 PM #

Chris

Chris us
ok my problem is when i try to play a video on the xbox, i get an error on my laptop that says windows media player network sharing service stopped working and was closed. anyone know how to fix this????

Posted on 10.26.2008 00:09 AM #

Oyun indir

Oyun indir au
As it turns out SSDP was disabled in my Vista32.

Posted on 11.4.2008 15:08 PM #

Bill D

Bill D us
Dan: This fix did not work for me, It tells me it does not reconize the command

Posted on 11.13.2008 20:50 PM #

aron

aron ca
Dan, your fix worked for me! thanks so much!

Posted on 11.19.2008 22:28 PM #

Estetik

Estetik tr
Relativamente alla domanda, di come ci si senta quando si è un blogger, le mie sensazioni su questo sono ambigue. Io sono certa che c’è qualcuno che pensa che io non sia una vera blogger perché raramente pubblico più di un testo alla settimana e non mi avvolgo giornalmente nelle discussioni con i commentatori del mio blog. Ritengo che la risposta a queste persone sarebbe una domanda:’Voi non avete una vita/ occupazione/ qualcos’altro da fare?’ E finora non esistono regole per i blogger, né un loro sindacato.

Posted on 11.20.2008 09:58 AM #

Site ekle

Site ekle uy
when i type net localgroup administrators NetworkService /ADD it says

Add comment


(Will show your Gravatar icon)  

  Country flag

biuquote
  • Comment
  • Preview
Loading

search


AddThis Feed Button

blog categories

blog tags

my pictures

Flickr Gallery Coming Soon!

recent comments   RSS Feed for this post's comments