Skip to content

Instantly share code, notes, and snippets.

Avatar

Fabian Bader f-bader

View GitHub Profile
@f-bader
f-bader / TFSIdentSyncHistory.sql
Created Nov 9, 2017
Query TFS Identity Synchronization job history
View TFSIdentSyncHistory.sql
SELECT
[QueueTime],
[StartTime],
[EndTime],
[Result],
[QueuedReasons] = CASE jobHist.[QueuedReasons]
WHEN 1 THEN N'Scheduled'
WHEN 2 THEN N'Manual'
ELSE 'Unknown'
END,
@f-bader
f-bader / Sync-TfsIdentity.ps1
Last active May 28, 2020 — forked from jstangroome/Sync-TfsIdentity.ps1
Force TFS 2018 to synchronize Active Directory group memberships
View Sync-TfsIdentity.ps1
[CmdletBinding()]
param (
[Parameter(Mandatory=$true, Position=0)]
[uri]
$ServerUri
)
$ErrorActionPreference = 'Stop'
Set-StrictMode -Version Latest
@f-bader
f-bader / Get-ADCluster.ps1
Created Oct 19, 2017
List all Microsoft Failover Cluster computer objects
View Get-ADCluster.ps1
Get-ADComputer -Filter { servicePrincipalName -like "MSServerCluster*"} | Select-Object DNSHostName
You can’t perform that action at this time.