<html>
<head>
<meta content="text/html; charset=windows-1252"
http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#FFFFFF">
Hi,<br>
<br>
i have 2 suggestions:<br>
<ul>
<li>try it with comspec: <install cmd='%comspec% /C powershell
-NoProfile -NonInteractive -ExecutionPolicy bypass -File
"\\path\to\file\script.ps1">C:\Output.txt'/>
</li>
<li>for further troubleshooting, like Marco said before: <br>
<pre wrap="">To run an interactive shell with SYSTEM account, use psexec:
psexec -d -s -i cmd</pre>
</li>
</ul>
<p>Regards,<br>
Holger<br>
</p>
<pre class="moz-signature" cols="72">
</pre>
<div class="moz-cite-prefix">Am 12.11.2015 um 13:46 schrieb Sam
Colman, Primrose:<br>
</div>
<blockquote cite="mid:56448A21.5040908@primrose.co.uk" type="cite">Hello,
<br>
<br>
I am having trouble executing a Powershell script on startup. I am
able to run the command manually. However, it's just not working
on boot.
<br>
<br>
Install command:
<br>
<br>
<install cmd='powershell -NoProfile -NonInteractive
-ExecutionPolicy bypass -File "\\path\to\file\script.ps1"'/>
<br>
<br>
Any help or suggestion are much appreciated.
<br>
<br>
Thanks.
<br>
<br>
Kind regards,
<br>
<br>
Sam
<br>
-------------------------------------------------------------------------
<br>
SSLrack - get your cheap cheap SSL certificates (standard,
wildcard, EV)
<br>
<a class="moz-txt-link-freetext" href="http://www.sslrack.com/">http://www.sslrack.com/</a>
<br>
-------------------------------------------------------------------------
<br>
wpkg-users mailing list archives >>
<a class="moz-txt-link-freetext" href="http://lists.wpkg.org/pipermail/wpkg-users/">http://lists.wpkg.org/pipermail/wpkg-users/</a>
<br>
_______________________________________________
<br>
wpkg-users mailing list
<br>
<a class="moz-txt-link-abbreviated" href="mailto:wpkg-users@lists.wpkg.org">wpkg-users@lists.wpkg.org</a>
<br>
<a class="moz-txt-link-freetext" href="https://lists.wpkg.org/mailman/listinfo/wpkg-users">https://lists.wpkg.org/mailman/listinfo/wpkg-users</a>
<br>
</blockquote>
<br>
</body>
</html>