while (!(Get-ADgroup -Filter { Name -like "the_AD_object"})) { write-host wait start-sleep -m 1000 }
Powershell wait for AD object to be created
Reply
while (!(Get-ADgroup -Filter { Name -like "the_AD_object"})) { write-host wait start-sleep -m 1000 }
<QueryList> <Query Id="0" Path="Security"> <Select Path="Security">* [EventData[Data[@Name='TargetUserName']='administrator']]</Select> </Query> </QueryList>
netdom query /domain:dom.local fsmo