Jump to content

Get-IpPbxInternalNumber - Usernam


staengls

Recommended Posts

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


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


  • Most Valued User

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


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


  • 3 weeks later...
  • Most Valued User

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


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.