Jump to content

Setting the phone pin to the users extension


65002

Recommended Posts

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


  • Most Valued User

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


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


Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.