usslindstrom
asked on
Enable user for Lync if not already
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.
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.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Apologies in delay in closing this question.