Skip to content

Commit a3f6744

Browse files
committed
fix bug
1 parent 6c672fa commit a3f6744

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

private/functions/Get-DecryptedObject.ps1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ function Get-DecryptedObject {
103103
"LinkedServer" {
104104
"SELECT sysservers.srvname AS Name,
105105
NULL AS Quotename,
106-
syslnklgns.name AS Identity,
106+
syslnklgns.name AS [Identity],
107107
SUBSTRING(syslnklgns.pwdhash, 5, $ivlen) AS iv,
108108
SUBSTRING(syslnklgns.pwdhash, $($ivlen + 5), LEN(syslnklgns.pwdhash) - $($ivlen + 4)) AS pass,
109109
NULL AS MappedClassType,
@@ -116,7 +116,7 @@ function Get-DecryptedObject {
116116
"Credential" {
117117
"SELECT cred.name AS Name,
118118
QUOTENAME(cred.name) AS Quotename,
119-
cred.credential_identity AS Identity,
119+
cred.credential_identity AS [Identity],
120120
SUBSTRING(obj.imageval, 5, $ivlen) AS iv,
121121
SUBSTRING(obj.imageval, $($ivlen + 5), LEN(obj.imageval) - $($ivlen + 4)) AS pass,
122122
cred.target_type AS MappedClassType,

0 commit comments

Comments
 (0)