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)
View and moderate all "bugs Discussion" comments posted by this user
Mark all as spam, and block user from posting to "Bugs"
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
The following works for me:
<load value='powershell.exe -nologo -NonInteractive -ExecutionPolicy Unrestricted -File "C:\Program Files (x86)\BBWin\ext\myext.ps1"' />