2017-02-02 61 views
1

无法执行的powershell脚本5.0作为蔚蓝webjob

我想提取一个zip文件,但我从我的webjob日志文件中得到这个错误:

[02/02/2017 21:37:20 > b2afe2: ERR ] + Expand-Archive $output -DestinationPath $env:WEBROOT_PATH 
[02/02/2017 21:37:20 > b2afe2: ERR ] + ~~~~~~~~~~~~~~ 
[02/02/2017 21:37:20 > b2afe2: ERR ]  + CategoryInfo   : ObjectNotFound: (Expand-Archive:String) [], Comm 
[02/02/2017 21:37:20 > b2afe2: ERR ] andNotFoundException 
[02/02/2017 21:37:20 > b2afe2: ERR ]  + FullyQualifiedErrorId : CommandNotFoundException 
[02/02/2017 21:37:20 > b2afe2: ERR ] 
[02/02/2017 21:37:20 > b2afe2: SYS INFO] Status changed to Success 

嘛展开 - 归档需要PowerShell的5.0,但我怎么能升级我的蔚蓝的网站?

回答