-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

4

1 Answer 1

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

4
  • 1
    I don't think that's an answer to OP's question... Commented Mar 3, 2018 at 9:53
  • @Ultrasonic54321 I edited my answer to delete wscript.exe Commented Mar 3, 2018 at 9:56
  • 1
    It's not very in-depth... Safe Mode will NOT make a difference. The problem is in File Ownership. Commented Mar 3, 2018 at 9:58
  • @Ultrasonic54321 It's in-depth now... Commented Mar 3, 2018 at 10:08

Not the answer you're looking for? Browse other questions tagged .