更新时间:2022-12-02 19:34:58
你不能写到C:\的可能性很大。试试这个!
$
You cannot write to C:\ more than likely. Try this!
Get-ADUser -Identity "asharma5" | select * | Out-File -FilePath C:\users\
ENV:USERNAME \ appdata\local\temp\aduser.txt
ENV:USERNAME\appdata\local\temp\aduser.txt