0 votes

Hello.

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
1 answer

I had a script that would copy the values from adm-CustomAttributeTextMultiValue1 and save them into extensionAttribute15 as a comma seperated list. The script somehow got deleted and I can't seem to find the tutorial I used to create it before.

asked Jul 1 by jordan (110 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)
2,797 questions
2,530 answers
6,594 comments
57,120 users