更新时间:2023-11-06 19:08:28
$Group
是一个对象,但是实际上您需要检查$Group.samaccountname.StartsWith("string")
是否.
$Group
is an object, but you will actually need to check if $Group.samaccountname.StartsWith("string")
.
将$Group.StartsWith("S_G_")
更改为$Group.samaccountname.StartsWith("S_G_")
.