As of Windows Vista Microsoft really doesn't want services or scheduled tasks to be interactive, so they have introduced session 0 isolation. Programs that need user interaction (for error handling, settings or whatever) are instead expected to provide some kind of interface that can be run as a regular program by the logged in user. Such an interface is being prepared for Mercury v5.
In the meantime it's possible to access some setting using the webtools package, but if the program runs in session 0 and you need the Mercury console window it gets tricky.
I haven't tested this, but I could think of two ways that might work:
1. Run Mercury in a virtual machine.
2. Use the workaround described here to have a remote session running as your normal user connecting back to your own computer.
If this doesn't work for you there are at least two ways to shut down Mercury remotely.
1. By sending an email:
MercExec Daemon
http://tstephenson.com/Mercury/MercExec150.zip
This is a
daemon for Mercury/32 by David Harris to execute a command on the server by
sending an email.
·Copy MercExec.dll
and
MercExec.xml to your Mercury/32 directory.
·Check and adjust all the settings in
the XML file
·Add an alias in the Aliases
to map the
email address to the daemon.
All
settings need to be done my manually editing an XML file.
<MercExec Version="1.0">
<Options>
<FirstLinePassword Value="12345" />
</Options>
<Commands>
<Command Value="REBOOT" Exec="shutdown -r -f -t 0"
Hide="1" />
<Command Value="REBOOT SERVER2" Exec="shutdown -r -f
-t 0 -m \\server2" />
<Command Value="SCRIPT" Exec="bash –login -c
/home/user/script" Directory="c:\cygwin\bin" />
</Commands>
</MercExec>
2. By using a commandline tool:
http://community.pmail.com/forums/thread/30032.aspx
/Rolf
<p>As of Windows Vista Microsoft really doesn't want services or scheduled tasks to be interactive, so they have&nbsp;introduced&nbsp;session 0 isolation. Programs that need user interaction (for error handling, settings or whatever) are instead expected to provide some kind of interface that can be run as a regular program by the logged in user. Such an interface is being prepared for Mercury v5.</p><p>In the meantime it's possible to access some setting using the webtools package, but if the program runs in session 0 and you need the Mercury console window it gets tricky.</p><p>I haven't tested this, but I could think of two ways that might work:</p><p>1. Run Mercury in a virtual machine.</p><p>2. Use the workaround described <a href="http://wiki.imacros.net/How_to_Schedule_a_RemoteInteractive_Session" target="_blank" mce_href="http://wiki.imacros.net/How_to_Schedule_a_RemoteInteractive_Session">here</a> to have a remote session running as your normal user connecting back to your own computer.</p><p>If this doesn't work for you there are at least two ways to shut down Mercury remotely.</p><p>1. By sending an email:</p><blockquote><div align="left"><i><font face="Arial" size="3"><span style="FONT-SIZE: 14pt">MercExec Daemon</span></font></i></div><div align="left"><i><font size="3"><span class="Apple-style-span" style="font-family: 'Lucida Sans Unicode'; font-size: 16px; ">http://tstephenson.com/Mercury/MercExec150.zip</span></font>&nbsp;</i></div>
<div align="left"><i><font face="Arial" size="2"><span style="FONT-SIZE: 10pt">
</span></font></i></div>
<div align="left"><i><font face="Arial" size="2"><span style="FONT-SIZE: 10pt">This is a
daemon for Mercury/32 by David Harris to execute a command on the server by
sending an email.</span></font></i></div>
<div align="left"><i><font face="Arial" size="2"><span style="FONT-SIZE: 10pt"><b>
</b></span></font></i></div>
<div align="left"><i><font face="Arial" size="2"><span style="FONT-SIZE: 10pt"><b>How to
install</b></span></font></i></div>
<div align="left"><i><font face="Arial" size="2"><span style="FONT-SIZE: 10pt">
</span></font></i></div>
<div style="TEXT-INDENT: 0mm; MARGIN: 0mm 0mm 0mm 13mm" align="left"><i><font face="Arial" size="1"><span style="FONT-SIZE: 9pt">·</span></font><font face="Arial" size="2"><span style="FONT-SIZE: 10pt">Copy </span></font><font face="Courier New" size="2"><span style="FONT-SIZE: 10pt">MercExec.dll
</span></font><font face="Arial" size="2"><span style="FONT-SIZE: 10pt">and
</span></font><font face="Courier New" size="2"><span style="FONT-SIZE: 10pt">MercExec.xml </span></font><font face="Arial" size="2"><span style="FONT-SIZE: 10pt">to your Mercury/32 directory.</span></font></i></div>
<div align="left"><i><font face="Arial" size="2"><span style="FONT-SIZE: 10pt">
</span></font></i></div>
<div style="TEXT-INDENT: 0mm; MARGIN: 0mm 0mm 0mm 13mm" align="left"><i><font face="Arial" size="1"><span style="FONT-SIZE: 9pt">·Check and adjust all the settings in
the XML file</span></font></i></div>
<div align="left"><i><font face="Arial" size="1"><span style="FONT-SIZE: 9pt">
</span></font></i></div>
<div style="TEXT-INDENT: 0mm; MARGIN: 0mm 0mm 0mm 13mm" align="left"><i><font face="Arial" size="1"><span style="FONT-SIZE: 9pt">·</span></font><font face="Arial" size="2"><span style="FONT-SIZE: 10pt">Add an alias in the </span></font><font face="Courier New" size="2"><span style="FONT-SIZE: 10pt">Aliases
</span></font><font face="Arial" size="2"><span style="FONT-SIZE: 10pt">to map the
email address to the daemon.</span></font></i></div>
<div align="left"><i><font face="Arial" size="2"><span style="FONT-SIZE: 10pt">
</span></font></i></div>
<div align="left"><i><font face="Arial" size="2"><span style="FONT-SIZE: 10pt"><b>XML
settings file</b></span></font></i></div>
<div align="left"><i><font face="Arial" size="2"><span style="FONT-SIZE: 10pt">All
settings need to be done my manually editing an XML file.</span></font></i></div>
<div align="left"><i><font face="Courier New" size="1"><span style="FONT-SIZE: 8pt">&lt;MercExec Version="1.0"&gt; </span></font></i></div>
<div align="left"><i><font face="Courier New" size="1"><span style="FONT-SIZE: 8pt">&lt;Options&gt; </span></font></i></div>
<div align="left"><i><font face="Courier New" size="1"><span style="FONT-SIZE: 8pt">&lt;FirstLinePassword Value="12345" /&gt;
</span></font></i></div>
<div align="left"><i><font face="Courier New" size="1"><span style="FONT-SIZE: 8pt">&lt;/Options&gt; </span></font></i></div>
<div align="left"><i><font face="Courier New" size="1"><span style="FONT-SIZE: 8pt">&lt;Commands&gt; </span></font></i></div>
<div align="left"><i><font face="Courier New" size="1"><span style="FONT-SIZE: 8pt">&lt;Command Value="REBOOT" Exec="shutdown -r -f -t 0"
Hide="1" /&gt; </span></font></i></div>
<div align="left"><i><font face="Courier New" size="1"><span style="FONT-SIZE: 8pt">&lt;Command Value="REBOOT SERVER2" Exec="shutdown -r -f
-t 0 -m \\server2" /&gt; </span></font></i></div>
<div align="left"><i><font face="Courier New" size="1"><span style="FONT-SIZE: 8pt">&lt;Command Value="SCRIPT" Exec="bash –login -c
/home/user/script" Directory="c:\cygwin\bin" /&gt; </span></font></i></div>
<div align="left"><i><font face="Courier New" size="1"><span style="FONT-SIZE: 8pt">&lt;/Commands&gt;</span></font></i></div>
<p><i><span class="Apple-style-span" style="font-family: 'Courier New'; font-size: 11px; ">&lt;/MercExec&gt;</span></i></p></blockquote><p>2. By using a commandline tool:</p><p><a href="http://community.pmail.com/forums/thread/30032.aspx" mce_href="http://community.pmail.com/forums/thread/30032.aspx">http://community.pmail.com/forums/thread/30032.aspx</a></p><p><a href="http://community.pmail.com/forums/thread/30032.aspx" mce_href="http://community.pmail.com/forums/thread/30032.aspx"></a>/Rolf&nbsp;</p><p>&nbsp;</p>