The following procedure works only under Windows Vista (untested) and Windows 7 (what I use). It will NOT work under Windows XP, as it lacks required features with the Task Scheduler. This procedure will create a new scheduled task that will be executed every time your computer awakes from sleep, stopping and restarting the Mezzmo service. This procedure solved the issues of the Mezzmo server disappearing (or taking up to 20 mins to appear on the media player).
1) Create a file named RestartMediaServer.bat, and put it in a location that is easy to access (for example, C:\ProgramData\Conceiva\Mezzmo\ . In this file, put the following two lines:
Code:
sc stop Mezzmo_(PCNAME)
sc start Mezzmo_(PCNAME)
PCNAME is usually your computer's name. If unsure what's the name of your Mezzmo service, start Mezzmo, go into "Media Server -> Media Server Settings", and see what's the name there for your Media Server Name, replacing spaces with an "_").
2) Create a temporary file located in an easy to access location (such as C:) named "task.xml", and containing the following:
Code:
<?xml version="1.0" encoding="UTF-16"?>
<Task version="1.2" xmlns="http://schemas.microsoft.com/windows/2004/02/mit/task">
<Triggers>
<EventTrigger>
<Enabled>true</Enabled>
<Subscription><QueryList><Query Id="0" Path="System"><Select Path="System">*[System[Provider[@Name='Microsoft-Windows-Power-Troubleshooter'] and (Level=4 or Level=0) and (EventID=1)]]</Select></Query></QueryList></Subscription>
</EventTrigger>
</Triggers>
<Principals>
<Principal id="Author">
<RunLevel>HighestAvailable</RunLevel>
</Principal>
</Principals> <Settings>
<MultipleInstancesPolicy>IgnoreNew</MultipleInstancesPolicy>
<DisallowStartIfOnBatteries>true</DisallowStartIfOnBatteries>
<StopIfGoingOnBatteries>true</StopIfGoingOnBatteries>
<AllowHardTerminate>true</AllowHardTerminate>
<StartWhenAvailable>false</StartWhenAvailable>
<RunOnlyIfNetworkAvailable>false</RunOnlyIfNetworkAvailable>
<IdleSettings>
<StopOnIdleEnd>true</StopOnIdleEnd>
<RestartOnIdle>false</RestartOnIdle>
</IdleSettings>
<AllowStartOnDemand>true</AllowStartOnDemand>
<Enabled>true</Enabled>
<Hidden>false</Hidden>
<RunOnlyIfIdle>false</RunOnlyIfIdle>
<WakeToRun>false</WakeToRun>
<ExecutionTimeLimit>P3D</ExecutionTimeLimit>
<Priority>7</Priority>
</Settings>
<Actions Context="Author">
<Exec>
<Command>D:\RestartMediashare.bat</Command>
</Exec>
</Actions>
</Task>
3) In that file, edit the line containing the <Command> block (near the end) to match the path pointing to the .bat file you create in the first step.
4) Open a command prompt with elevated privileges. To do so, go into your Start Menu -> All Programes ->Accessories ->Command Prompt. RIGHT click on Command prompt, and select "Run as Administrator".
5) In the command prompt, type the following command (specifying the correct path to where you located your task.xml file created in step 2 and 3):
Code:
schtasks /create /XML c:\task.xml /RU SYSTEM /TN RestartMezzmoOnWake
You should see the following response:
Code:
SUCCESS: The scheduled task "RestartMezzmoOnWake" has successfully been created.
If not, double check the path to your task.xml file.
6) You can now delete the task.xml file, as it is no longer required.
If this procedure actually resolved your issue, please reply to this thread - this will confirm that it actually works for other persons than myself.
Bookmarks