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

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 (50 points)
0 votes
0 answers

I am trying to find a way to create Groups based off an OU and a list of options (check boxes) within the portal For example: Select the Target OU to add groups ... 3 - Remote Administrators Option 3 - Remote Developers Option 4 - Readers Option 4 - Writers

asked Sep 11, 2020 by dknapp (100 points)
0 votes
1 answer

In the Reports section, there is an option to view "All Users" and then export the view. There is also an option to include additional columns. If I include "Manager", ... along with the complete AD path gets exported. Is it possible to export only the name?

asked Jan 14, 2014 by sdavidson (730 points)
2,756 questions
2,490 answers
1,458,841 users