<div dir="ltr"><div dir="ltr"><div class="gmail_default" style="font-family:verdana,sans-serif;font-size:small">Zak, all</div><div class="gmail_default" style="font-family:verdana,sans-serif;font-size:small"><br></div><div class="gmail_default" style="font-family:verdana,sans-serif;font-size:small">I pushed my revised script out to a few servers. Most all have upgraded powershell, but a few 2008 & 2008R2 still have PS v2. Script will not start, but no clear error about why. It runs fine on the '08 servers with PS v3, v4, or v5. The ones with v2 seem to be running the script in a v1 instance. Error: Program C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe for service XymonPSClient exited with return code 4294770688. Any way to force it to run in v2? Or do you see anything in the new function that would choke v1?</div><br></div></div><br><div class="gmail_quote"><div dir="ltr">On Tue, Oct 9, 2018 at 9:28 AM Timothy Williams <<a href="mailto:tlwilliams4@vcu.edu">tlwilliams4@vcu.edu</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div class="gmail_default" style="font-family:verdana,sans-serif;font-size:small">Sounds good to me. I've only been powershell coding a year, so I'm sure there are more elegant and efficient ways than what I've devised.<br clear="all"></div><div class="gmail_quote"><div><span class="gmail_default" style="font-family:verdana,sans-serif;font-size:small"></span></div><div><span class="gmail_default" style="font-family:verdana,sans-serif;font-size:small">Tim</span> </div></div></div>
</blockquote></div>