powershell.exe以退出代码1073807364终止

时间:2016-08-11 09:59:50

标签: powershell try-catch

如何获取有关powershell.exe以1073807364退出的更多信息?

powershell脚本包含如下内容:

start-transcript
try{
    # import modules xxx
    # import modules yyy
    # running function of module xxx
    # running function of module yyy
}catch{
    write-host "Errors - Global.exceptions: $global:error.exception; Script.exceptions: $script:error.exception"
    write-host "Errors - Global.exceptions: $global:error.exception; Script.exceptions: $script:error.exception"
    $_ | Out-String
}finally{
    Stop-Transcript
}

0 个答案:

没有答案