且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

无法使用PowerShell运行计划任务

更新时间: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