问题描述
Get-ADUser -Filter * -Properties * | Select-Object name | Export-Csv -Path \\some\network\location
返回错误:
Export-Csv : Access to the path '\\some\network\location' is denied.
关于文件夹安全设置,我拥有完全访问权限。
解决方法
Uggg...我没有在路径中定义文件名。这有效:
Get-ADUser -Filter * -Properties * | Select-Object name | Export-Csv -Path \\some\network\location\ADUsers.csv