Jump to content

Is there something like Get-IpPbxUserFreeStatusText?


ctp
 Share


Recommended Posts

Hello, 

 

I would like to write a script which automatically sets users status text, using Set-IpPbxUserFreeStatusText. 

 

But I only want to do that if the current status text is either empty or has been set by my script before. Which is why a have to read it before.  Get-IpPbxUserFreeStatusText doesn't exist. Is there a way doing that?

Link to comment
Share on other sites


  • Most Valued User

Hello ctp,

 

it is possible to access the status text of a user:

Connect-IpPbx

$user = Get-IpPbxUser -UserName "Sebastian" -AddPresenceInformation
$user.CurrentStatusText

Disconnect-IpPbx

 

By using the parameter "AddPresenceInformation" the following properties are added to every user entry:

AppointmentExpirationDate  NoteProperty SDateTime
AppointmentText                     NoteProperty string
CurrentStatusText                   NoteProperty string
IsAway                                       NoteProperty bool
IsDND                                        NoteProperty bool
StatusExpirationDate             NoteProperty SDateTime
StatusText                               NoteProperty string

 

Kind regards

 

Sebastian Dreier

Link to comment
Share on other sites


Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share


×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use and have taken note of our Privacy Policy.
We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.