<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=Windows-1252">
</head>
<body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; color: rgb(0, 0, 0); font-size: 14px; font-family: Calibri, sans-serif;">
<div>So it looks like the WinPSClient hasn’t been updated in a few months. I had seen a thread from quite a while ago about some issues David was running into, but can’t tell if he’s still around and willing/able to work on it.</div>
<div><br>
</div>
<div>I’ve been able to get XymonPSClient.exe (aka SrvAny) to run powershell natively as a 64-bit executable. The only change necessary to enable this was changing the PowerShell executable to running as %windir%\sysnative\WindowsPowerShell\v1.0\powershell.exe.
 The sysnative portion prevents a 32-bit program (SrvAny) from being redirected to %windir%\SysWow64. (See <a href="http://msdn.microsoft.com/en-us/library/windows/desktop/aa384187(v=vs.85).aspx">http://msdn.microsoft.com/en-us/library/windows/desktop/aa384187(v=vs.85).aspx</a>).</div>
<div><br>
</div>
<div>I also found a better service wrapper than SrvAny, namely nssm (<a href="http://nssm.cc">http://nssm.cc</a>/). This has the ability to detect if powershell fails and restart it, which is something SrvAny lacks. It also comes in both 32-bit and 64-bit versions,
 so when using the latter the sysnative piece isn’t necessary. I’ve only been working at this for a day or two, so it probably needs more testing, but it looks promising.</div>
<div><br>
</div>
<div>Is there any work (design contemplation) about how xymonclient.ps1 could handle external scripts? I assume this was just a future phase and not so much a limitation or barrier that hadn’t yet been overcome.</div>
<div><br>
</div>
<div>Thanks.</div>
<div><br>
</div>
<div>
<p class="MsoNormal" style="margin: 0in 0in 0.0001pt; font-size: 11pt; ">---<o:p></o:p></p>
<p class="MsoNormal" style="margin: 0in 0in 0.0001pt; font-size: 11pt; "><o:p> </o:p></p>
<p class="MsoNormal" style="margin: 0in 0in 0.0001pt; font-size: 11pt; ">Jason Richards Pagh<o:p></o:p></p>
<p class="MsoNormal" style="margin: 0in 0in 0.0001pt; font-size: 11pt; "><br>
</p>
</div>
</body>
</html>