Skip to content
View amandadebler's full-sized avatar

Sponsoring

@cdubz

Organizations

@psconfeu

Block or report amandadebler

Block user

Prevent this user from interacting with your repositories and sending you notifications. Learn more about blocking users.

You must be logged in to block users.

Please don't include any personal information such as legal names or email addresses. Maximum 100 characters, markdown supported. This note will be visible to only you.
Report abuse

Contact GitHub support about this user’s behavior. Learn more about reporting abuse.

Report abuse

Pinned Loading

  1. PSRoboAdvisor PSRoboAdvisor Public

    The robo advisor for DIY S&P 500 indexing that nobody asked for - in PowerShell.

    PowerShell 2 1

  2. Bootlegs Bootlegs Public

    Skype for Business and other cmdlets, reimagined

    PowerShell

  3. Snippets to get a list of computers ... Snippets to get a list of computers by role in Skype for Business/Lync topology
    1
    $SBAs = (Get-CsPool).where({$_.services -like "*registrar*" -and $_.services.where({$_ -like "WebServer*"}).count -eq 0}).computers 
    2
    $frontEndServers = (Get-CsPool).where({$_.services -like "*registrar*" -and $_.services -like "Conferencing*"}).computers
    3
    $directorServers = (Get-CsPool).where({$_.services -like "*registrar*" -and $_.services -like "WebServer*" -and $_.services.where({$_ -like "Conferencing*"}).count -eq 0}).computers
    4
    $mediationServers = (Get-CsPool).where({$_.services -like "*Mediation*" -and $_.services.where({$_ -like "registrar*"}).count -eq 0}).computers
    5
    $edgeServers = (Get-CsPool).where({$_.services -like "*Edge*"}).computers
  4. For CVE-2019-5736 (runc container br... For CVE-2019-5736 (runc container breakout)
    1
    # works with both Get-AzAks cluster object and az aks list | ConvertFrom-Json PSCustomObjects
    2
    function Get-AKSHotfixVersion {
    3
        param($AKSCluster)
    4
        $hotfixVersions = @{'12'='1.12.5'; '11'='1.11.7'; '10'='1.10.12'; '9'='1.9.11'}
    5
        foreach ($cluster in $AKSCluster) {
  5. Gets the version of all the SBAs in ... Gets the version of all the SBAs in your Lync/Skype for Business topology using their web interfaces, so it works even if they're locked down. Only works for AudioCodes SBAs so far.
    1
    (Get-CsPool).where({$_.services -like "*registrar*" -and $_.services.where({$_ -like "WebServer*"}).count -eq 0}).computers | foreach { (Invoke-WebRequest -Uri "http://$_/Home/LogOn").content -match "(1\.\d+\.\d+\.\d+)" | out-null; [pscustomobject]@{PSTypeName='SBAVersion'; ComputerName = $_; Version = $matches[0] } }
  6. Getting Skype server-related info wi... Getting Skype server-related info with only read access to Active Directory
    1
    # Using native AD module
    2
    $configurationContainer = 'CN=Configuration,'+ (((get-adforest).name.split('.') | foreach {"DC=$_"}) -join ',')
    3
    
                  
    4
    # All pools, whether Director, FrontEnd or SBA
    5
    $rawPools = get-adobject -LDAPFilter '(objectClass=msrtcsip-pool)' -SearchBase $configurationContainer -Properties 'name','dnshostname','msrtcsip-pooldata','msrtcsip-pooldisplayname','distinguishedname'