65002 Posted December 15, 2015 #1 Share Posted December 15, 2015 Hey all, does anyone know if there is a way to set the phone pin of all users to their extensions? For example: User 1 has the phone pin 1234. Should get the phone pin 1234. User 2 has the phone pin 5678. Should get the phone pin 5678. . . . Would be great if that would be possible. Unfortunately, I have not the experience to figure out the best way to do it. Thanks so far! Link to comment Share on other sites More sharing options...
Most Valued User Varmenni Posted December 15, 2015 Most Valued User #2 Share Posted December 15, 2015 Use PowerShell. Something along the lines of: $users = get-ippbxgroupmember -groupname Everyone foreach ($user in $users) { if ($user.InternalNumberEntryCollection[0] -ne $null) { $user.LanPhonePIN = $user.InternalNumberEntryCollection[0].Number update-ippbxuser -entry $user } } Link to comment Share on other sites More sharing options...
65002 Posted December 15, 2015 Author #3 Share Posted December 15, 2015 1 hour ago, Varmenni said: Use PowerShell. Something along the lines of: $users = get-ippbxgroupmember -groupname Everyone foreach ($user in $users) { if ($user.InternalNumberEntryCollection[0] -ne $null) { $user.LanPhonePIN = $user.InternalNumberEntryCollection[0].Number update-ippbxuser -entry $user } } Hi Varmenni, thanks a lot. The code above lets me get an error. But after deleting the "-entry" in the last row everthing works like a charme. , That's the code that worked for me: $users = get-ippbxgroupmember -groupname Jeder foreach ($user in $users) { if ($user.InternalNumberEntryCollection[0] -ne $null) { $user.LanPhonePIN = $user.InternalNumberEntryCollection[0].Number update-ippbxuser $user } } Link to comment Share on other sites More sharing options...
Most Valued User Varmenni Posted December 15, 2015 Most Valued User #4 Share Posted December 15, 2015 update-ippbxuser -userentry $user Should be update-ippbxuser -userentry $user Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.