PS - pick Windows-Authentication Info from ippbxuser

Recommended Posts

Hello Community!


i´m trying to automate the profile-picture assignment by using power shell. To do this i need to pick the Windows-Authentication Username from IpPbxUser-Object of Connect-IpPbx Module in Power shell. As i see there is no way getting there information directily from the mentioned PowerShell-Object. Is there anybody who can make a suggestion how to pic this information?


kind reguards


Share this post

Link to post
Share on other sites

The user object has a property called UserNTAccountEntryCollection which contains all Windows Accounts associated with the SwyxWare user.


Note: There might be more than one item in the collection.

Note: If you use the SwyxWare AD Integration (via the Microsoft Active Users and Computers snapin), the SwyxWare <-> AD User link can be retrieved via 


$UserEnum = $LibManager.GetUserEnum()

$User = Get-IpPbxUser -Username "Otto" 
$Sid = $UserEnum.GetADOwner($User.UserID) # you can and should reuse the userEnum when calling this with different user ids

SwyxWare returns Windows Security Identifiers (SIDs). To get the username use something like this:

$sid = new-object "System.Security.Principal.SecurityIdentifier" -ArgumentList $SID


Share this post

Link to post
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