Link to home
Start Free TrialLog in
Avatar of usslindstrom
usslindstromFlag for Japan

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.
ASKER CERTIFIED SOLUTION
Avatar of Will Szymkowski
Will Szymkowski
Flag of Canada image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of usslindstrom

ASKER

This solution worked out perfect for us.  Thank you sir!

Apologies in delay in closing this question.