Jump to content
rick

ANSWERED Powershell Error

Recommended Posts

 PS C:\Users\Administrator> $user = Get-IpPbx_User -Name "rick"


Get-IpPbx_User : The term 'Get-IpPbx_User' is not recognized as the name of a cmdlet, function, script file, or

operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try

again.

At line:1 char:9

+ $user = Get-IpPbx_User -Name "rick"

+         ~~~~~~~~~~~~~~

    + CategoryInfo          : ObjectNotFound: (Get-IpPbx_User:String) [], CommandNotFoundException

    + FullyQualifiedErrorId : CommandNotFoundException

 

PS C:\Users\Administrator> foreach ($number in $user.InternalNumberEntryCollection) {

>>   $number.Hide = $true}

>> $user.Update($true)

>>

You cannot call a method on a null-valued expression.

At line:3 char:1

+ $user.Update($true)

+ ~~~~~~~~~~~~~~~~~~~

    + CategoryInfo          : InvalidOperation: (:) [], RuntimeException

    + FullyQualifiedErrorId : InvokeMethodOnNull

 

has somebody also had the same problem please help

post-711-0-23600400-1442327665_thumb.png

Share this post


Link to post
Share on other sites

i have activate the powershell option at the swyx administration, but don't know if have connected with IpPbx


 


PS C:\Users\Administrator> connect-ippbx

connect-ippbx : The term 'connect-ippbx' is not recognized as the name of a cmdlet, function, script file, or operable

program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.

At line:1 char:1

+ connect-ippbx

+ ~~~~~~~~~~~~~

    + CategoryInfo          : ObjectNotFound: (connect-ippbx:String) [], CommandNotFoundException

    + FullyQualifiedErrorId : CommandNotFoundException

 

PS C:\Users\Administrator>

Share this post


Link to post
Share on other sites
PS C:\ippbx> import-module ippbx

PS C:\ippbx>

PS C:\ippbx> Connect-IpPbx -ServerName "WIN-4NLA0S4DFT0"

 

WARNING: Windows User Account is not assigned to any IpPbxUser. PhoneClient Facade cannot be used.

 

do you also know how to solve this problem?

Share this post


Link to post
Share on other sites
On 1/13/2022 at 10:05 AM, Ben Vlaeminck said:

I have installed some Swyx Servers that are not AD integrated. Is it correct that Powershell is not usable in this case? So I need AD integration to use Powershell?

You can specify the account to use if you with to use swyx auth. see below. 

 

C:\PS>$Credentials = New-Object System.Management.Automation.PSCredential "Username", (ConvertTo-SecureString -String "Password" -AsPlainText -Force)
    
Connect-IpPbx -UseIpPbxLogin -Credentials $Credentials

 

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...

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