none
How can I encode a script file using the Microsoft Script Encoder?

    Question

  • Hi team,

    How can I encode a script file using the Microsoft Script Encoder?

     

    Thanks,


    Doria
    Friday, January 28, 2011 4:48 PM

Answers

All replies

    • Marked as answer by dydoria Friday, January 28, 2011 9:40 PM
    Friday, January 28, 2011 5:44 PM
  • Hi Bill,

    Thanks for your help. Sorry, I didn’t mean to be helpless.

     

    Regards,


    Doria
    Friday, January 28, 2011 9:39 PM
  • No problem and thanks for the follow-up.

    Bill

    Friday, January 28, 2011 10:14 PM
  • Hi Bill,

    Please take a look to the following output:

    --

    C:\temp>type sample.vbs

    WScript.Echo "Hello World!"

     

    C:\temp>cscript sample.vbs

    Microsoft (R) Windows Script Host Version 5.7

    Copyright (C) Microsoft Corporation. All rights reserved.

     

    Hello World!

     

    C:\temp>"c:\Program Files\Windows Script Encoder\screnc.exe" sample.vbs encode.v

    bs

     

    C:\temp>cscript encode.vbs

    Microsoft (R) Windows Script Host Version 5.7

    Copyright (C) Microsoft Corporation. All rights reserved.

     

    C:\temp\encode.vbs(1, 1) Microsoft VBScript compilation error: Expected statemen

    t

     

    Am I missing something?

     

    Thanks,


    Doria
    Tuesday, February 15, 2011 9:12 PM
  • It looks like the documentation is bad here. Try specifying .vbe as the file extension for your encoded script (e.g., "encode.vbe").

    Bill

    • Marked as answer by dydoria Wednesday, February 16, 2011 1:15 AM
    Tuesday, February 15, 2011 11:17 PM
  • Thanks Bill!


    Doria
    Wednesday, February 16, 2011 1:15 AM
  • Where I can download the screnc tools? I cannot find it from microsoft website now.
    Thursday, September 13, 2012 1:08 AM
  • Where I can download the screnc tools? I cannot find it from microsoft website now.

    Please stop asking the same incorrect question over and over.  The answer is that you cannot download them they are included in every system.


    ¯\_(ツ)_/¯

    Thursday, September 13, 2012 2:30 AM
  • but I did not find it in windows 2003 and windows 7.
    Thursday, September 13, 2012 3:31 AM
  • but I did not find it in windows 2003 and windows 7.

    screnc.exe does NOT exist.  You have to script it.  Older systems and some sites may still have copies of the old exe.  It does not exists on the Windows site anymore.

    If it does exixt or has been installed it will be here as everyone has posted:
    c:\Program Files\Windows Script Encoder\screnc.exe

    It will be on some older versions of XP.  It will al,ost nevber befound on WS2003 and Never on Windows Vista and later.

    Use the encoder control.  That is available on all systems.


    ¯\_(ツ)_/¯

    Thursday, September 13, 2012 5:52 AM
  • Where I can download the screnc tools? I cannot find it from microsoft website now.

    The Script Encoder is not supported in Windows Vista or Windows 7.

    Grant Ward, a.k.a. Bigteddy

    Thursday, September 13, 2012 7:43 AM
  • Where I can download the screnc tools? I cannot find it from microsoft website now.

    The Script Encoder is not supported in Windows Vista or Windows 7.

    Grant Ward, a.k.a. Bigteddy

    Or windows 2003.


    ¯\_(ツ)_/¯

    Thursday, September 13, 2012 11:50 AM
  • http://gallery.technet.microsoft.com/scriptcenter/16439c02-3296-4ec8-9134-6eb6fb599880

    This works flawless, create encoder.vbs and drag your source(s) scripts to Encoder.vbs and they will be encoded... at least obfuscated from curious eyes... not from "real" hackers though.

    Monday, December 10, 2012 6:12 PM
  • Thank You!

    That is absolutely perfect. ScrEnc did work on Windows 7, just didn't come with it. But this better. Enough obfuscation to deter the curious.

    Friday, February 07, 2014 10:24 AM