[英]How to get all OU in Ad with parameter (description blank ) - without description?
I am new in Powershell. 我是Powershell的新手。 Wanna to get all Organizational Units in Domain without description.
想要获取域中的所有组织单位而无需描述。 ( description - blank )
(说明-空白)
I have script which gets all users with paramater "null description" But i need to find OUs. 我的脚本可以使所有用户使用参数“空描述”,但是我需要找到OU。
$NoDescrUsers = Get-AdUser -Filter {(Enabled -eq "True" ) -and (description -notlike '*')} -Properties Description $ NoDescrUsers = Get-AdUser -Filter {(Enabled -eq“ True”)-and(description -notlike'*')}-属性说明
Can anyone help to modify this script for OU-s? 任何人都可以帮助修改此OU-s脚本吗?
$NoDescrAD = Get-ADOrganizationalUnit -Filter {(description -notlike "*")} -Properties description
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.