Jump to content

Powershell Error


rick
 Share


Go to solution Solved by Virikas,

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

Link to comment
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>
Link to comment
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?

Link to comment
Share on other sites


  • 6 years later...
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

 

Link to comment
Share on other sites


Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share


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