[wpkg-users] Issue running Powershell script on startup
Holger Kröber
kroeber at biom.uni-freiburg.de
Thu Nov 12 14:21:13 CET 2015
Hi,
i have 2 suggestions:
* try it with comspec: <install cmd='%comspec% /C powershell
-NoProfile -NonInteractive -ExecutionPolicy bypass -File
"\\path\to\file\script.ps1">C:\Output.txt'/>
* for further troubleshooting, like Marco said before:
To run an interactive shell with SYSTEM account, use psexec:
psexec -d -s -i cmd
Regards,
Holger
Am 12.11.2015 um 13:46 schrieb Sam Colman, Primrose:
> Hello,
>
> 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.
>
> Install command:
>
> <install cmd='powershell -NoProfile -NonInteractive -ExecutionPolicy
> bypass -File "\\path\to\file\script.ps1"'/>
>
> Any help or suggestion are much appreciated.
>
> Thanks.
>
> Kind regards,
>
> Sam
> -------------------------------------------------------------------------
> SSLrack - get your cheap cheap SSL certificates (standard, wildcard, EV)
> http://www.sslrack.com/
> -------------------------------------------------------------------------
> wpkg-users mailing list archives >>
> http://lists.wpkg.org/pipermail/wpkg-users/
> _______________________________________________
> wpkg-users mailing list
> wpkg-users at lists.wpkg.org
> https://lists.wpkg.org/mailman/listinfo/wpkg-users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.wpkg.org/pipermail/wpkg-users/attachments/20151112/b30ef855/attachment.html>
More information about the wpkg-users
mailing list