ctp Posted March 1, 2021 #1 Share Posted March 1, 2021 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 More sharing options...
Most Valued User Sebastian Dreier Posted March 1, 2021 Most Valued User #2 Share Posted March 1, 2021 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 1 Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now