mirror of
https://github.com/PowerShellMafia/PowerSploit
synced 2026-06-08 12:13:33 +00:00
Fix improper use of $Error[0]
This commit is contained in:
@@ -57,7 +57,7 @@
|
||||
return [System.Text.UnicodeEncoding]::Unicode.GetString($OutBlock)
|
||||
}
|
||||
|
||||
catch {Write-Error "$Error[0]"}
|
||||
catch {Write-Error $Error[0]}
|
||||
}
|
||||
|
||||
#ensure that machine is domain joined and script is running as a domain account
|
||||
|
||||
Reference in New Issue
Block a user