amandadebler
Follow
Pinned Loading
-
PSRoboAdvisor
PSRoboAdvisor PublicThe robo advisor for DIY S&P 500 indexing that nobody asked for - in PowerShell.
-
-
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
-
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
2function Get-AKSHotfixVersion {
3param($AKSCluster)
4$hotfixVersions = @{'12'='1.12.5'; '11'='1.11.7'; '10'='1.10.12'; '9'='1.9.11'}
5foreach ($cluster in $AKSCluster) {
-
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] } }
-
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 ',')
34# 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'
Something went wrong, please refresh the page to try again.
If the problem persists, check the GitHub status page or contact support.
If the problem persists, check the GitHub status page or contact support.