Skip to content
This repository was archived by the owner on Jan 21, 2021. It is now read-only.

Commit 321e53e

Browse files
committed
Fix improper use of $Error[0]
1 parent eb85e1c commit 321e53e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Exfiltration/Get-GPPPassword.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@
5757
return [System.Text.UnicodeEncoding]::Unicode.GetString($OutBlock)
5858
}
5959

60-
catch {Write-Error "$Error[0]"}
60+
catch {Write-Error $Error[0]}
6161
}
6262

6363
#ensure that machine is domain joined and script is running as a domain account

0 commit comments

Comments
 (0)