Powershell脚本错误⽇志try{
Get-AD *>&1
}
catch{
Get-Date | Add-Content C:\
$_ | Add-Content C:\
"----------------------------------------------------------------------------------------
" | Add-Content C:\
}
>脚本发生错误怎么办