rick Posted September 15, 2015 #1 Share Posted September 15, 2015 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, oroperable program. Check the spelling of the name, or if a path was included, verify that the path is correct and tryagain.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 Link to comment Share on other sites More sharing options...
Tom Wellige Posted September 15, 2015 #2 Share Posted September 15, 2015 Have you called "import module" and "connect-ippbx" first? Link to comment Share on other sites More sharing options...
Most Valued User Marcus Posted September 15, 2015 Most Valued User #3 Share Posted September 15, 2015 PS C:\Users\Administrator> $user = Get-IpPbx_User -Name "rick" Use: Get-IpPbxUser Link to comment Share on other sites More sharing options...
rick Posted September 16, 2015 Author #4 Share Posted September 16, 2015 i have activate the powershell option at the swyx administration, but don't know if have connected with IpPbx PS C:\Users\Administrator> connect-ippbxconnect-ippbx : The term 'connect-ippbx' is not recognized as the name of a cmdlet, function, script file, or operableprogram. 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 More sharing options...
Most Valued User Markus Wallner Posted September 16, 2015 Most Valued User #5 Share Posted September 16, 2015 try 'import-module ippbx' first Link to comment Share on other sites More sharing options...
rick Posted September 16, 2015 Author #6 Share Posted September 16, 2015 PS C:\ippbx> import-module ippbxPS 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 More sharing options...
Most Valued User Solution Virikas Posted September 16, 2015 Most Valued User Solution #7 Share Posted September 16, 2015 Do what the warning message says Assign the AD Account your powershell is running under to an IpPbxUser (which has administrational rights). Link to comment Share on other sites More sharing options...
rick Posted September 16, 2015 Author #8 Share Posted September 16, 2015 thanks for all the help Link to comment Share on other sites More sharing options...
Ben Vlaeminck Posted January 13, 2022 #9 Share Posted January 13, 2022 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? Link to comment Share on other sites More sharing options...
DeadlyEmu Posted January 14, 2022 #10 Share Posted January 14, 2022 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 More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now