itm4n / PrivescCheck

Privilege Escalation Enumeration Script for Windows
BSD 3-Clause "New" or "Revised" License
2.91k stars 422 forks source link

Getting erros when trying to run it #51

Closed aboubamba closed 9 months ago

aboubamba commented 9 months ago

C:\temp>powershell -ep bypass -c "C:\temp\PrivescCheck.ps1; Invoke-PrivescCheck" At C:\temp\PrivescCheck.ps1:40 char:60

lap1nou commented 9 months ago

Hello @aboubamba,

It's because you haven't downloaded PrivescCheck correctly, if you read your file you'll see some HTML because you have probably copy pasted or something like that which also copied the Github HTML source code. Either clone the repository or click the Download raw file button here: https://github.com/itm4n/PrivescCheck/blob/master/PrivescCheck.ps1 and then try to launch the script again.

Regards.

aboubamba commented 9 months ago

Ca marche maintenant, merci.