Skip to content

Instantly share code, notes, and snippets.


Fabian Bader f-bader

View GitHub Profile
f-bader / ClearKerberosComputerTicketsAndCertutilCache.ps1
Created Dec 5, 2017
Clear Computer Kerberos tickets and certutil cache
View ClearKerberosComputerTicketsAndCertutilCache.ps1
# Clear Computer Kerberos tickets
klist -li 0x3e7 purge | Out-Null
# Clear certutil cache
certutil -f -policyserver * -policycache delete | Out-Null
f-bader / TFSIdentSyncHistory.sql
Created Nov 9, 2017
Query TFS Identity Synchronization job history
View TFSIdentSyncHistory.sql
[QueuedReasons] = CASE jobHist.[QueuedReasons]
WHEN 1 THEN N'Scheduled'
WHEN 2 THEN N'Manual'
ELSE 'Unknown'
f-bader / Sync-TfsIdentity.ps1
Last active Mar 17, 2021 — forked from jstangroome/Sync-TfsIdentity.ps1
Force TFS 2018 to synchronize Active Directory group memberships
View Sync-TfsIdentity.ps1
param (
[Parameter(Mandatory=$true, Position=0)]
$ErrorActionPreference = 'Stop'
Set-StrictMode -Version Latest
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