2017-02-02 121 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,但我怎麼能升級我的蔚藍的網站?

回答