ADSi mit Powershell - Abfragen ob eine Gruppe besteht
Hi
Ich will im Poweshell Script abfragen ob eine bestimmte Gruppe im ActiveDirectory besteht.
Ich benutze dazu dieses Kunstrukt:
[adsi]::exists($F)
Das liefert jedoch auch true wenn $F leer ist oder es die Variable garnicht gibt.
Warum ist das so?
Danke
SC
Ich will im Poweshell Script abfragen ob eine bestimmte Gruppe im ActiveDirectory besteht.
Ich benutze dazu dieses Kunstrukt:
[adsi]::exists($F)
Das liefert jedoch auch true wenn $F leer ist oder es die Variable garnicht gibt.
Warum ist das so?
Danke
SC
Please also mark the comments that contributed to the solution of the article
Content-Key: 172754
Url: https://administrator.de/contentid/172754
Printed on: April 26, 2024 at 14:04 o'clock
2 Comments
Latest comment