Most Valued User BigDaveH Posted September 3, 2019 Most Valued User #1 Share Posted September 3, 2019 I would like to add user with a generated powershell script. All goes well but if the User logges on, there are no status shown on the Netphone Client. that should have been Green. Can I force it so get the Status Info ? I have manually added the User without Phonenumber. And then ran the Script where I changed the top line $NewUser=Get-IpPbxUser -UserName "Test, Nethpone" And now I see the Status. Is there a bug in the $New Script Import-Module IpPbx Connect-IpPbx "netphone.badhandel.local" $NewUser = New-IpPbxUser -Name "Test, Nethpone" -EmailAddress "n.test@reuter.de" -Comment "Hotline" $NewUser.LocationID = 5 $NewUser.SecondCallEnabled=0 $NewUser.FwdOnBusy =$False $NewUser.FwdOnBusyNumber = "210" $NewUser.FwdOnNoAnswer =$False $NewUser.FwdOnNoAnswerNumber = "210" $NewUser.FwdOnNoAnswerTimeout = 15 $CreatedUser = Add-IpPbxUser $NewUser -Passthru Add-IpPbxUserWindowsAccount -UserEntry $CreatedUser -NTAccount "BADHANDEL\NethponeTest" Connect-IpPbx "netphone.badhandel.local" $InternalNumber = New-IpPbxInternalNumber -InternalNumber 244 $InternalNumber.Hide=$False Add-IpPbxInternalNumberToUser -InternalNumberEntry $InternalNumber -UserEntry $CreatedUser # "Test, Nethpone" $PublicNumber=New-IpPbxPublicNumber -PublicNumber "+49xxxxxx244" Add-IpPbxPublicNumber -InternalNumber "244" -PublicNumberEntry $PublicNumber $InternalNumber2 = New-IpPbxInternalNumber -InternalNumber 9844 $InternalNumber2.Hide=$True Add-IpPbxInternalNumberToUser -InternalNumberEntry $InternalNumber2 -UserEntry $CreatedUser $PublicNumber2=New-IpPbxPublicNumber -PublicNumber "+492xxxxxxx844" Add-IpPbxPublicNumber -InternalNumber "9844" -PublicNumberEntry $PublicNumber2 $UserData = Get-IpPbxUser -UserName "Hotline Vorlage" | Get-IpPbxUserData Set-IpPbxUserData -UserData $UserData -UserName "Test, Nethpone" Set-IpPbxUserData -UserEntry $CreatedUser -UserData $userdata $templateUser = Get-IpPbxUser -UserName "Hotline Vorlage" Copy-IpPbxUserCallRouting -SourceUserEntry $templateUser -TargetUserEntry $CreatedUser -Overwrite -Confirm:$false Add-IpPbxGroupMember -UserEntry $CreatedUser -GroupName "Vertrieb (810)" Add-IpPbxGroupMember -UserEntry $CreatedUser -GroupName "Vertrieb EN (816)" Add-IpPbxGroupMember -UserEntry $CreatedUser -GroupName "Vertrieb FR (815)" Add-IpPbxGroupMember -UserEntry $CreatedUser -GroupName "Hotline (814)" Add-IpPbxGroupMember -UserEntry $CreatedUser -GroupName "Hotline (818)" Add-IpPbxGroupMember -UserEntry $CreatedUser -GroupName "Service (850)" 1 Link to comment Share on other sites More sharing options...
Most Valued User BigDaveH Posted September 3, 2019 Author Most Valued User #2 Share Posted September 3, 2019 found the answer $CreatedUser = Add-IpPbxUser $NewUser -Passthru -AddToEveryoneGroup the user should be added to the Everyone Group !!!! 1 Link to comment Share on other sites More sharing options...
Solution Tom Wellige Posted September 3, 2019 Solution #3 Share Posted September 3, 2019 Just create a group (or use the existing "Everyone" group) which configures mutual status signalling among its members. When adding a new user (either manually or via PowerShell) just add the new user to this group and status signalling will work. Link to comment Share on other sites More sharing options...
Tom Wellige Posted September 3, 2019 #4 Share Posted September 3, 2019 Exactly 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