-1

I came across to some solutions on the internet and one of them says that we should delete wscript to prevent to create the shortcut virus on flash disk and here is steps to do that :

  1. takeown /f C:\Windows\System32\wscript.exe
  2. cacls C:\Windows\System32\wscript.exe /G GeekGates:F (you replace GeekGates with name of user )
  3. attrib -h -r -s /s /d g:*.*

something like that my question should do that to delete wscript is it virus and could someone elaborate the steps for that Thank you

Educ
  • 139

1 Answers1

4

wscript.exe is not a virus, and removing it is useless, because of cscript.exe, which is a wscript.exe alternative. What you can do is remove any file that cause it to trigger.

But if you really want to delete that file, then:

  1. Boot to safe mode
  2. Type these commands in an elevated command prompt:
    cd %SystemRoot%\System32
    takeown /f wscript.exe
    icacls /grant Administrators:F
    del wscript.exe /f

See also: wscript | Microsoft Docs, Windows Script Host - Wikipedia