PowerShell Errors when running threat (non-standard dash "-" found in source code)
clr2of8 opened this issue · 0 comments
clr2of8 commented
When Running NotPetya on Win10 Pro, I get errors in PowerShell window. Tasks error or remain pending after code has run. If I replace the non-standard dash "-" character in the source code (invoke-scheduledTask and invoke-wsreset, this fixes the error).
sed -i s/–/-/g functions/invoke-scheduleTask
sed -i s/–/-/g functions/invoke-wsreset