0 votes


Is there a way to get a drop down list with custom and dynamic content in Adaxes administration console (or web)?

1. Get list of available number in dailplan from a PS script on the skype server.
2. Present this list on a dropdown to the user in Adaxes
3. Run a script to set that telephone number on the skypeserver.

The scripting to get the available (#1) numbers is done;

$nummerplan = (600..899) | %{$namn='Free';$tel=$_;[pscustomobject]@{Namn=$namn;Tel=$tel}}
$anknytningar = $nummerplan

$sessionOptions = New-PSSessionOption -SkipRevocationCheck -SkipCACheck -SkipCNCheck #-Culture "en-US" -UICulture "en-US" 
$session = New-PSSession   -ConnectionUri https://skypeserver/OcsPowershell -SessionOption $sessionOptions -Authentication NegotiateWithImplicitCredential 
$null =  Import-PSSession $Session -CommandName Get-CsUser -AllowClobber

$anknytningar = Get-CsUser | where{$_.lineuri} | %{$namn = (get-aduser $_.identity).name; $tel=$_.lineuri.substring($_.lineuri.length-3); [pscustomobject]@{Namn=$namn;Tel=$tel}} | Sort-Object tel
$anknytningar +=Get-CsRgsWorkflow | %{$namn =$_.name; $tel=$_.lineuri.substring($_.lineuri.length-3); [pscustomobject]@{Namn=$namn;Tel=$tel}} | Sort-Object tel 
$freeTelephoneNumbers= $nummerplan | where {$anknytningar.tel -notcontains $_.tel}

#3 on the list maybe use built in action ‘Enable or disable for Lync’ from a temp variable populated in #2.

How can we address #2?

by (460 points)

Please log in or register to answer this question.

Related questions

0 votes
1 answer

Is it possible to populate Custom Command Drop-Down List and Checkbox List items using PowerShell? If not, is such a feature on the Adaxes roadmap?

asked Dec 12, 2022 by Viajaz (110 points)
0 votes
1 answer

In AdaxesConfig>Management>Forms and Views>User form - We want the ability to for Department field, when we click Configure to look similar to Manager (when it is configure is ... . I wanted to add some screenshots but didn't see the option to do it.

asked Feb 17 by mchaudh (40 points)
0 votes
1 answer

Good Morning, I was hoping to get some assistance in creating a powershell script that I could run daily that would do the following. 1. Gather a list of all AD ... "Manager" field in a property pattern with found users Any assistance would be great. Thanks!

asked Jun 15, 2018 by jhair (520 points)
0 votes
1 answer

We are using the dynamic dist list script found below. The issue is we also have to be able to provide overrides, which we are achieving through secondary static ... ADS_PROPERTY_UPDATE", "member", $userDNs) } # Save the changes $Context.TargetObject.SetInfo()

asked Jun 6, 2018 by willy-wally (3.2k points)
0 votes
1 answer

How do I go about getting an export of users that are assigned to a particular dynamic group? The existing export rules don't seem to do the trick. It only pulls info ... the dynamic group, i would like to also report on those that have been licensed for O365

asked Mar 20, 2017 by cubedit (60 points)
3,164 questions
2,868 answers
505,668 users