#12 How execute powershell on external scripts

v0.12
open
nobody
Externals (1)
5
2011-10-25
2011-10-25
Anonymous
No

I can´t get that any script writed in powershell (.ps1) can be executed on external scripts.

I try this:
<load value="powershell -command ..\ext\bb-iis.ps1" timer="5m" />

This command executed on a normal cmd, always give a correct result. But when I try on external scripts, never is executed.

Regards,

Carlos Arroba (eltate at gmail.com)

Discussion


  • Anonymous
    2011-10-25

    Thi is the log of BBWin:

    2011/10/25 11:51:27 [INFO]: bbwin is started.
    2011/10/25 11:51:27 [DEBUG]: [externals]: starting external 'cscript ..\ext\bb-winlogs.vbs'
    2011/10/25 11:51:27 [DEBUG]: [externals]: starting external 'cscript ..\ext\bb-hwinfo.wsf'
    2011/10/25 11:51:27 [DEBUG]: [externals]: starting external 'cscript ..\ext\bb-ftpopen.vbs'
    2011/10/25 11:51:27 [DEBUG]: [externals]: starting external 'cscript ..\ext\bb-hwinfo.wsf'
    2011/10/25 11:51:27 [DEBUG]: [externals]: starting external 'cscript ..\ext\bb-iishealth.vbs'
    2011/10/25 11:51:27 [DEBUG]: [externals]: starting external 'powershell -command ..\ext\bb-iis.ps1'
    2011/10/25 11:51:27 [DEBUG]: [cpu]: cpu review ended

     
    Last edit: Anonymous 2013-09-15
  • David Baldwin
    David Baldwin
    2011-12-05

    The following works for me:

    <load value='powershell.exe -nologo -NonInteractive -ExecutionPolicy Unrestricted -File "C:\Program Files (x86)\BBWin\ext\myext.ps1"' />