none
problem with vbscript please help me RRS feed

  • Question

  • hello, i wanted to do a script using vbscript to disable windows defender directly from exe or winrar file

    my script looks like this

    ' ScriptCryptor Project Options Begin
    ' HasVersionInfo: No
    ' Companyname: 
    ' Productname: 
    ' Filedescription: 
    ' Copyrights: 
    ' Trademarks: 
    ' Originalname: 
    ' Comments: 
    ' Productversion:  0. 0. 0. 0
    ' Fileversion:  0. 0. 0. 0
    ' Internalname: 
    ' Appicon: 
    ' AdministratorManifest: No
    ' ScriptCryptor Project Options End
    If WScript.Arguments.length = 0 Then
       Set objShell = CreateObject("Shell.Application")
       'Pass a bogus argument, say [ uac]
       objShell.ShellExecute "wscript.exe", Chr(34) & _
          WScript.ScriptFullName & Chr(34) & " uac", "", "runas", 1
    Else
       Dim oShell
    Set oShell = WScript.CreateObject ("WScript.Shell")
    oShell.run "PowerShell.exe Set-MpPreference -DisableRealtimeMonitoring $true"
    Set oShell = Nothing
    
    End If
    
    

    its working perfectly when it's a .vbs file but when i convert it to .exe or put it on winrar and launch it, it gives random fails

    • Moved by Bill_Stewart Wednesday, May 30, 2018 7:33 PM Off-topic
    Thursday, April 5, 2018 5:54 PM

All replies

  • You will have to contact the vendors of the EXE builder and the RAR program for this.

    These EXEs are not likely able to be trusted by TrendMicro software.


    \_(ツ)_/

    Thursday, April 5, 2018 6:19 PM