Quantcast
Channel: Recent Edits
Viewing all articles
Browse latest Browse all 12198

More fancy Powershell to detect and correct this issue via WinRM

$
0
0
Figured someone else might benefit from this:write-host "Checking for duplicate CIDs and reinstalling MSDTC if needed."$servers = "server1","server2","server3"$CIDs = Invoke-Command -ComputerName $servers -ScriptBlock { gci Microsoft.PowerShell.Core\Registry::HKEY_CLASSES_ROOT\CID | foreach { $_.Name } | Out-String -Stream } #Array of all CIDs on all servers$UniqueCIDs = $CIDs | select -Uniqueif($CIDs.Length -eq $UniqueCIDs.Length){Write-Output "All CIDs are unique, so we don't need to reinstall

Viewing all articles
Browse latest Browse all 12198

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>