|
| |
| Windows Meiaplayer 11 auf einem Server 2003 R2 installieren |
|
|
|
 |
| |
| Da ich seit einiger Zeit eine XBOX360 besitze, bin ich ebenfalls ein großen Fan des Mediastreamings geworden. Über WLAN lässt sich dazu die XBOX mit einem Windows XP oder einem Mediacenter PC verbinden. Genutzt wird in beiden Fällen die Medienfreigabe des Mediaplayers 11.
Da allerdings fast alle meine Media Daten auf meinen Servern liegen und diese sowieso 24/7 im Betrieb sind, kam der Wunsch auf, das doch auch der Server die Dateien per Windows Media Freigabe ins Netz stellen könnte.
Hier also ein kleines Tutorial dazu. Wir benötigen hierfür:
Windows Server 2003 SP2 CD (das SP2 muss auf dem Server zwingend installiert sein)
Windows XP SP2 (SP3 geht NICHT)
Windows Mediaplayer 11 Setup Dateien
Zunächst besorgen wir uns den WMP11:
http://www.microsoft.com/windows/windowsmedia/de/player/download/download.aspx
Die Datein (wmp11-windowsxp-x86-DE-DE.exe) muss entpackt werden. Dazu eigenet sich z.B. WinRAR (http://www.winrar.de/)
In dem entpacten Ordner bedinden sich mehrere Dateien.
Zunächst Wmfdist11.exe im Kompatiblitätsmodus zu WinXP ausführen, anschließend Wmp11.exe ebenfalls im Kompatiblitätsmodus ausführen.

Der Server muss anschließend neu gestartet werden.
Nach dem reboot lässt sich WMP11 unter Server 2003 staten. -> *froi*
Beim Versuch die Medienfreigabe im WMP11 zu öffen, passiert dann leider erstmal garnichts :(
Ein schneller Check in der Ereignissanzeige bringt Licht ins Dunkel. Offenbar fehlt dem Server 2003 der SSDP sowie der UPNP Service.
Es erscheint zunächst folgende Fehlermeldung:
Der Dienst "Windows Media Player-Netzwerkfreigabedienst" ist von folgendem, nicht vorhandenem Dienst abhängig: upnphost
Wie sich herausstellte, lassen sich diese Dienste jedoch problemlos in Server 2003 nachüsten. Hier kommt die Windows XP SP2 CD ins Spiel.
Erstellt also eine Datei namens XtraServices.inf mit folgendem Inhlalt im Verzeichniss c:\windows\inf\ - Hierfür taugt z.B. der normale Windows Editor.
|
| |
 |
| |
| |
|
[version]
signature="$WINDOWS NT$"
ClassGUID={00000000-0000-0000-0000-000000000000}
LayoutFile=layout.inf
[DestinationDirs]
UPNP.SysFiles=11
UPNP.XMLFiles=11,icsxml
[Optional Components]
UPNPSvc
[UPNPSvc]
OptionDesc=%UPNP_DESC%
Tip=%UPNP_TIP%
IconIndex=93
CopyFiles=UPNP.SysFiles,UPNP.XMLFiles
Uninstall=UPNP.Remove
RegisterDlls=UPNP.RegisterDlls
AddService=upnphost, 0x410,UPNP_upnphost_Svc
AddService=SSDPSRV, 0x410,UPNP_SSDP_svc, UPNP_Evt
SizeApproximation=678976
[UPNP.Remove]
UnregisterDlls=UPNP.UnRegisterDlls
DelFiles=UPNP.SysFiles,UPNP.XMLFiles
DelService=upnphost
DelService=SSDPSRV
[UPNP.RegisterDlls]
11,, upnp.dll, 1
11,, upnphost.dll, 1
11,, upnpcont.exe,,,"/regserver"
[UPNP.UnRegisterDlls]
24,%lite_path%,%lite_prog%,,,"stop upnphost"
24,%lite_path%,%lite_prog%,,,"stop SSDPSRV"
11,, upnp.dll, 1
11,, upnphost.dll, 1
11,, upnpcont.exe,,,"/unregserver"
[UPNP.SysFiles]
ssdpsrv.dll,,,1
ssdpapi.dll,,,1
upnp.dll,,,1
upnphost.dll,,,1
upnpcont.exe,,,1
udhisapi.dll,,,1
upnpui.dll,,,1
[UPNP.XMLFiles]
cmnicfg.xml
ipcfg.xml
osinfo.xml
potscfg.xml
pppcfg.xml
[UPNP.SysFiles.Security]
"D:P(A;;GRGX;;;BU)(A;;GA;;;BA)(A;;GA;;;SY)(A;;GRGX;;;WD)"
[UPNP_upnphost_Svc]
Description=%UPNPHOST_Desc%
DisplayName=%UPNPHOST_Display%
ServiceType=0x20
StartType=3
ErrorControl=1
StartName="NT AUTHORITY"\LocalService
ServiceBinary=%11%\svchost.exe -k LocalService
AddReg=upnphost.AddReg.Secure, upnphost.AddReg
Dependencies=SSDPSRV
Security="D:(A;;GA;;;SY)(A;;GA;;;BA)(A;;GA;;;AU)(A;;GA;;;PU)(A;;CCDCLCSWLOCRRC;;;LS)"
[upnphost.AddReg]
HKR, Parameters, ServiceDll, 0x20000, "%%SystemRoot%%\System32\upnphost.dll"
HKLM, "Software\Microsoft\UPnP Device Host\HTTP Server", "MaxConnections", 0x00010001, 0x00000050
HKLM, "Software\Microsoft\UPnP Device Host\HTTP Server\VROOTS",,0x0010
[upnphost.AddReg.Secure]
HKLM, "Software\Microsoft\UPnP Device Host",,0x10
[upnphost.AddReg.Secure.Security]
"D:PAR(A;CI;KA;;;BA)(A;CIIO;KA;;;CO)(A;CI;KA;;;LS)(A;CI;KA;;;SY)(A;CI;KR;;;BU)"
[UPNP_SSDP_svc]
Description=%UPNP_Desc%
DisplayName=%UPNP_Display%
ServiceType=0x20
StartType=3
StartName="NT AUTHORITY"\LocalService
ErrorControl=1
ServiceBinary=%11%\svchost.exe -k LocalService
Security="D:(A;;GA;;;SY)(A;;GA;;;BA)(A;;GA;;;AU)(A;;GA;;;PU)(A;;RPWPDTRC;;;LS)"
AddReg=UPNP.AddReg
[UPNP.AddReg]
HKR, Parameters, ServiceDll, 0x20000, "%%SystemRoot%%\System32\ssdpsrv.dll"
[SourceDisksNames]
1=,,,i386
[SourceDisksFiles]
sp1.cab=1,,
sp2.cab=1,,
[StringHunt]
shl_img.inf
msagent.inf
pchealth.inf
wordpad.inf
msinfo32.inf
syssetup.inf
netupnph.inf
[Strings]
KEY_RUN="Software\Microsoft\Windows\CurrentVersion\Run"
KEY_RUNONCE="Software\Microsoft\Windows\CurrentVersion\RunOnce"
KEY_APPPATHS="Software\Microsoft\Windows\CurrentVersion\App Paths"
KEY_UNINSTALL="Software\Microsoft\Windows\CurrentVersion\Uninstall"
KEY_SAFEBOOT="System\CurrentControlSet\Control\SafeBoot"
KEY_PFPROFILE="Software\Policies\Microsoft\Windows\System\PCHealth"
KEY_SVCHOST="Software\Microsoft\Windows NT\CurrentVersion\Svchost"
KEY_LAME="SOFTWARE\Microsoft\PCHealth\Clients\Dialog Comments"
KEY_COMMENT_LINK="Control Panel\Desktop"
______LitePC_Local_Strings______=""
UPNP_DESC="Universal Plug and Play"
UPNP_TIP="Support to host Universal Plug and Play devices and to discover UPnP devices on your network."
UPNPHOST_Display="Universal Plug and Play Device Host"
UPNPHOST_Desc="Provides support to host Universal Plug and Play devices."
UPNP_Display="SSDP Discovery Service"
UPNP_Desc="Enables discovery of UPnP devices on your home network."
LCID="0409"
UILanguageID=1033
MsSHARED="Microsoft Shared"
OLDDB="Ole DB"
ADO="ado"
MSADC="msadc"
DAO="DAO"
MSSOAPBIN="MSSoap\Binaries"
MSSOAPBINRES="MSSoap\Binaries\Resources\1033"
MSInfo32_DESC="System Information"
MSInfo32_INFOTIP="Displays current system information."
SystemTools_GROUP="Accessories\System Tools"
MSINFOPATHL="Microsoft Shared\MSInfo"
|
|
|
| |
| Als nächstes erstellen wir eine neue Datei - c:\main.inf - mit folgendem Inhalt: |
| |
 |
| |
| |
|
[Version]
Signature="$Windows NT$"
[Global]
WindowTitle="Onemancan"
WindowTitle_Standalone="Onemancan"
[Components]
UPSSvc=ocgen.dll,OcEntry,"XtraServices.inf",,7
|
|
|
| |
| Dann solltet Ihr die XP SP2 CD bereit halten, es werden folgende Dateien benötigt: |
| |
| |
|
dpnhupnp.dll
upnp.dll
upnpcont.exe
upnphost.dll
upnpui.dll
ssdpsrv.dll
ssdpapi.dll
udhisapi.dll
cmnicfg.xml
ipcfg.xml
osinfo.xml
potscfg.xml
pppcfg.xml |
|
|
|
Die Dateien können entweder von einem XP SP2 Computer auf z.B. einen USB Stick gezogen werden, oder man liest sie direkt von CD aus ein. Weiter gehts - jetzt Start -> Ausführen:
|
| |
| |
|
sysocmgr.exe /i:C:\main.inf |
|
|
|
Das "C" im Pfad zur main.ini Datei muss immer GROSS geschrieben werden. Es handelt sich um eine Pfadangabe nicht um einen Parameter für sysocmgr!
Solle sich das Fenster nur sehr kurz öffnen und sofort wieder schließen, was mir einige User per Mail geschrieben haben, dann stimmt etwas mit den Inhalten der Main oder XtraServices.inf Datei nicht.
Für diesen Fall biete in die INI Dateien hier nochmals als Download an: Main.inf & XtraServices.inf
|
| |
 |
| |
Nachdem alles installiert wurden, müssen die Dienste noch von Hand in der Registry eingepfelgt werden:
Wir suchen die Struktur:
|
| |
| |
|
HKLM\software\microsoft\windows nt\currentversion\svchost |
|
|
| |
 |
| |
| Editiert wird der Wert "LocalService". Es werden je in einer eigenen Reihe die Werte "upnphost" und "SSDPSRV" hinzugefügt. |

|
| |
| Der Server muss nun neu gestartet werden. |
| |
| Anschließend öffnen wird die Dienst Konfiguration (services.msc) und setzen beim Universal PnP und SSDP Discovery Service den Starttyp auf automatisch. |
| |

 |
| |
| Voila .. es geht! |
| |
 |
| |
| Grüße & viel Vergnügen beim nachbauen - Lars |
| |
| |
| |
|