Experts,
This should be relatively simple, but I'm drawing a blank from my searches. If possible, can someone point me in the right direction on how to handle PS negative returns?
This is in regards to Lync, where I need to execute the following:
Enable-CSUser –identity “sAMAccountName” –RegistrarPool “SpecifiedPool” –sipAddressType EmailAddress
But, I need to add it in the "fail" portion of "Get-CSUser". Basically, if a user isn't enabled, to go ahead and do it.
Thanks for any assistance that can be provided. Apologies for the basic question, I've searched quite a bit for this, but keep coming back empty.
Apologies in delay in closing this question.