I am trying to query an SQL DB that has one encrypted column. I can query everything but the EncryptedNotes field. The encryption is done via certificate, but I don’t know the commands needed to invoke this process. An example of a record is below with both the unencrypted Notes field and what is returned currently from the EncryptedNotes field. The code I’m using is the code that can be found in the first sample script from this site: http://www.systemcentercentral.com/powershell-how-to-connect-to-a-remote-sql-database-and-retrieve-a-data-set/.
UserID : jdandy
FirstName : Jim
LastName : Dandy
Notes : MMN: Smith
COB: Juno
EncryptedNotes : {0, 16, 28, 56…}