staengls Posted November 17, 2016 #1 Share Posted November 17, 2016 Hello! Has anyone resolved an InternalNumber via the UserName?When i try Get-IpPbxInternalNumber -UserName '...' i get an error: Quote Resolve-IpPbx_Entry : User '...' could not be found. Process aborted. If i try the same via InternalNumber or InternalNumberID it works. But i Need it from the username... Any ideas? With best regards! Stefan Link to comment Share on other sites More sharing options...
Most Valued User Martin Posted November 17, 2016 Most Valued User #2 Share Posted November 17, 2016 Cannot reproduce this here. Does get-ippbxuser -UserName '...' work with the name you've provided to Get-IpPbxInternalNumber? Link to comment Share on other sites More sharing options...
staengls Posted November 17, 2016 Author #3 Share Posted November 17, 2016 Yes, the get-ippbxuser -username '..' work in the origin script i come from the userid to the username: $User = Get-IpPbxUser -UserId 290 $UserName = $User.Name Get-IpPbxInternalNumber -UserName $UserName but both does not work here the whole error: Resolve-IpPbx_Entry : User 'Stängl Stefan (OERK-N SB)' could not be found. Process aborted. CallStack : Get-IpPbxInternalNumber At C:\Program Files (x86)\SwyxWare Administration\Modules\IpPbx\IpPbxInternalNumber.ps1:255 char:23 + $userId = Resolve-IpPbx_Entry -Entry $Entry -Name $UserName -EntryTy ... + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : NotSpecified: (:) [Write-Error], WriteErrorException + FullyQualifiedErrorId : Microsoft.PowerShell.Commands.WriteErrorException,Resolve-IpPbx_Entry Link to comment Share on other sites More sharing options...
MartinK Posted November 17, 2016 #4 Share Posted November 17, 2016 Hi Staengls, can you try this with a username that does not contain brackets like () ? Thanks a lot, Martin Link to comment Share on other sites More sharing options...
staengls Posted November 17, 2016 Author #5 Share Posted November 17, 2016 Hi Martin, yes, that´s the Problem. From a user without brackets i get the number. But nearly all of our 1000 users have a bracket in the username. What can i do? Stefan Link to comment Share on other sites More sharing options...
MartinK Posted November 17, 2016 #6 Share Posted November 17, 2016 Hi Stefan, I contacted a developer, he will answer soon Best regards Martin Link to comment Share on other sites More sharing options...
Most Valued User Sebastian Dreier Posted November 17, 2016 Most Valued User #7 Share Posted November 17, 2016 Hello Stefan, I am the developer Martin was speaking about :-) I had a quick look on your issue and I have to confess that this is a bug. I already created a fix for this problem and attached it to this post as a ZIP file (installation instructions are included). Kind regards Sebastian Dreier IpPbxPsModuleBugfix20161118.zip Link to comment Share on other sites More sharing options...
staengls Posted November 18, 2016 Author #8 Share Posted November 18, 2016 Hello Sebastian! First of all: I´m glad to hear you. I did not know if you were still in the company. Thank you for the fast response. With the new IpPbx i get 2 error first when i use execution policy remotesigned C:\Program Files (x86)\SwyxWare Administration\Modules\ippbx\IpPbxGeneral.ps1 cannot be loaded. The file C:\Program Files (x86)\SwyxWare Administration\Modules\ippbx\IpPbxGeneral.ps1 is not digitally signed. and this one if is set to unrestrcted connect-ippbx : Property 'Version' cannot be found on this object. Make sure that it exists. At C:\Batch\Swyx_2015\Schedules\Swyx_Schedule_RescueMission\RescueMission.ps1:54 char:9 + connect-ippbx $IpPbxServer + ~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : NotSpecified: (:) [Write-Error], WriteErrorException + FullyQualifiedErrorId : Microsoft.PowerShell.Commands.WriteErrorException,Connect-IpPbx Kind regards Stefan Link to comment Share on other sites More sharing options...
Most Valued User Sebastian Dreier Posted December 6, 2016 Most Valued User #9 Share Posted December 6, 2016 Hello Stefan, I am sorry for this late answer, I did not get a notification email for your reply. Do you still have this problem? If yes, which SwyxWare version are you using? I tested the bugfix with SwyxWare 2015 R30.5 and it worked fine. Kind regards Sebastian Dreier Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.