我正在尝试将所有控制台输出记录到文件中.move-item D:\ scripts\fileA D:\ scripts\fileB -verbose -Force | Out-File D:\ scripts\move.log -Append
如果文件不存在,则正在创建该文件.但是此文件中不存在详细信息和最终的PowerShell错误.我怎样才能获得这些信息?
powershell
powershell ×1