<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><meta http-equiv=Content-Type content="text/html; charset=us-ascii"><meta name=Generator content="Microsoft Word 15 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
        {font-family:Wingdings;
        panose-1:5 0 0 0 0 0 0 0 0 0;}
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;
        mso-fareast-language:EN-US;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:#0563C1;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:#954F72;
        text-decoration:underline;}
p.msonormal0, li.msonormal0, div.msonormal0
        {mso-style-name:msonormal;
        mso-margin-top-alt:auto;
        margin-right:0cm;
        mso-margin-bottom-alt:auto;
        margin-left:0cm;
        font-size:12.0pt;
        font-family:"Times New Roman",serif;}
span.EmailStyle18
        {mso-style-type:personal;
        font-family:"Calibri",sans-serif;
        color:windowtext;}
span.EmailStyle19
        {mso-style-type:personal;
        font-family:"Calibri",sans-serif;
        color:windowtext;}
span.EmailStyle20
        {mso-style-type:personal;
        font-family:"Calibri",sans-serif;
        color:windowtext;}
span.EmailStyle21
        {mso-style-type:personal-reply;
        font-family:"Calibri",sans-serif;
        color:blue;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></head><body lang=EN-GB link="#0563C1" vlink="#954F72"><div class=WordSection1><p class=MsoNormal><span style='color:blue'>Hi<o:p></o:p></span></p><p class=MsoNormal><span style='color:blue'><o:p> </o:p></span></p><p class=MsoNormal><span style='color:blue'>Thanks for the feedback </span><span style='font-family:Wingdings;color:blue'>J</span><span style='color:blue'>, pleased to see it works for you.<o:p></o:p></span></p><p class=MsoNormal><span style='color:blue'><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-AU>I wanted to see if I could get a PowerShell script to run without specify HASH and HASHVALUE, the example in the documentation of external:everyscan:sync:fsmon.vbs doesn’t seem to work for .ps1 scripts, I assume because you need to use the powershell.exe process to call the script.<o:p></o:p></span></p><p class=MsoNormal><span style='color:blue'><o:p> </o:p></span></p><p class=MsoNormal><span style='color:blue'>Correct – if there's no default handler, you need to specify the process.<o:p></o:p></span></p><p class=MsoNormal><span style='color:blue'><o:p> </o:p></span></p><p class=MsoNormal><span style='color:blue'>I had a lot of trouble with the optional arguments and settled for documenting the guaranteed way it works! I'll have another look and see if I can make it clearer.<o:p></o:p></span></p><p class=MsoNormal><span style='color:blue'><o:p> </o:p></span></p><p class=MsoNormal><span style='color:blue'>Longer term, I'd like to make the hashes mandatory – it makes sense when deploying stuff to many servers to use them, in case the web server is compromised or returning error pages.<o:p></o:p></span></p><p class=MsoNormal><span style='color:blue'><o:p> </o:p></span></p><div><p class=MsoNormal><span style='color:blue;mso-fareast-language:EN-GB'>Zak </span><span style='font-size:9.0pt;font-family:"Arial",sans-serif;color:blue;mso-fareast-language:EN-GB'><o:p></o:p></span></p></div><p class=MsoNormal><span style='color:blue'><o:p> </o:p></span></p><div><div style='border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0cm 0cm 0cm'><p class=MsoNormal><b><span lang=EN-US style='mso-fareast-language:EN-GB'>From:</span></b><span lang=EN-US style='mso-fareast-language:EN-GB'> Brandon Dale [mailto:BDale@kitchengroup.com.au] <br><b>Sent:</b> 30 April 2016 10:15<br><b>To:</b> Beck, Zak <zak.beck@accenture.com>; xymon@xymon.com<br><b>Subject:</b> RE: Windows PowerShell client v2.15<o:p></o:p></span></p></div></div><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal><span lang=EN-AU>Hi Zak,<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-AU><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-AU>Just wanted to say the new externals functionality is awesome and makes everything easier, I have converted one of my PowerShell scripts to write the file in the expected format using the HASH and HASHVALUE and it all works as expected – very cool.<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-AU><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-AU>I wanted to see if I could get a PowerShell script to run without specify HASH and HASHVALUE, the example in the documentation of external:everyscan:sync:fsmon.vbs doesn’t seem to work for .ps1 scripts, I assume because you need to use the powershell.exe process to call the script.<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-AU><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-AU>In the documentation it says this “If PROCESS is used, HASH, HASHVALUE and ARGUMENTS must be specified. “ but I decided to try it anyway without specifying them and it seems to work fine, here is an example:<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-AU><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-AU>external:everyscan:sync:test.ps1|powershell.exe|-file "{script}"<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-AU><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-AU>So the documentation doesn’t seem to be completely clear on how you run a PowerShell script without the HASH and HASHVALUE specified.<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-AU><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-AU>Regards,<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-AU><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-AU>Brandon.<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-AU><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-AU><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-AU><o:p> </o:p></span></p></div></body></html>