Powershell stop and restart multiple KDC

Categories: Blog

Powershell stop and restart multiple KDC We had a requirement to stop and restart the KDC on multiple remote DCs. Rather than go around each one , we wrote a script . function DateAndTimeLog { Get-date } function testIf { If (Test-Connection -comp $dc -count 1 -quiet) { $dc+” is online! ” } Else { […]