How can I encode a script file using the Microsoft Script Encoder?
-
Friday, January 28, 2011 4:48 PM
Hi team,
How can I encode a script file using the Microsoft Script Encoder?
Thanks,
Doria
All Replies
-
Friday, January 28, 2011 5:44 PMModerator
Hi,
Have you tried searching first?
http://lmgtfy.com/?q=How+to+encode+a+script+using+the+Microsoft+Script+EncoderThis link in particular:
http://msdn.microsoft.com/en-us/library/xw61tsx7.aspx
HTH,
Bill
- Marked As Answer by dydoria Friday, January 28, 2011 9:40 PM
-
Friday, January 28, 2011 9:39 PM
Hi Bill,
Thanks for your help. Sorry, I didn’t mean to be helpless.
Regards,
Doria -
Friday, January 28, 2011 10:14 PMModerator
No problem and thanks for the follow-up.
Bill
-
Tuesday, February 15, 2011 9:12 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 11:17 PMModerator
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
-
Wednesday, February 16, 2011 1:15 AM
Thanks Bill!
Doria -
Thursday, September 13, 2012 1:08 AMWhere I can download the screnc tools? I cannot find it from microsoft website now.
-
Thursday, September 13, 2012 2:30 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 3:31 AMbut I did not find it in windows 2003 and windows 7.
-
Thursday, September 13, 2012 5:52 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.exeIt 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 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
-
Thursday, September 13, 2012 11:50 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.
¯\_(ツ)_/¯
-
Monday, December 10, 2012 6:12 PM
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.

