Get-ADUser Script运行但在返回所有结果之前发出错误命令 [英] Get-ADUser Script Runs but issues error command before returning all results
问题描述
问候;
我正在运行Windows Server 2008-R2并尝试按如下方式执行PowerShell命令:
I am running Windows Server 2008-R2 and try to execute a PowerShell command as follows:
我正在尝试查找自9月份以来一直处于非活动状态的用户对象1并且没有任何Exchange邮箱。查询确实运行,我确实获得了许多记录,但是,发出了错误,如上所示。
I am trying to locate user objects that have been inactive since September 1 and do not have any Exchange mailboxes. The query does run and I do get a number of records, however, the error is issued, as shown above.
请问我为何收到此错误消息?我很感激你的时间。
can you please shed some light as to why I am getting this error message? I do appreciate your time.
Behrooz
推荐答案
您需要发布您的脚本而不是它的图片。 错误很容易复制到剪贴板并粘贴到此处。
You need to post your script and not a picture of it. The error can easily be copied to the clipboard and pasted here.
很明显,过滤器的语法错误。 我不想在 中输入所有内容。什么时候你可以粘贴它。
It is clear that the syntax of your filter is wrong. I do not want to have to type all of that in when you canjsut paste it.
这篇关于Get-ADUser Script运行但在返回所有结果之前发出错误命令的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!