Chapter 23. Scripts Packaging and Protection


Do you ever worry about your users seeing your script source code and somehow learning more than they should? Or, perhaps you just want to ensure that your scripts aren’t modified and run by someone who shouldn’t be doing so. Encrypted or encoded scripts offer a solution to these problems, and Microsoft offers a Script Encoder tool to use with your administrative scripts. The Encoder can take a script and turn it into something like this:


Although it looks like gibberish, ...

Get VBScript, WMI, and ADSI Unleashed: Using VBScript, WMI, and ADSI to Automate Windows® Administration now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.