VMware Cloud Community
GuilhermeStela
Enthusiast
Enthusiast
Jump to solution

How to Secure my PowerCLI script?

     Is there a way to secure my script from people who wants to see my beautiful code??Smiley Happy

Reply
0 Kudos
1 Solution

Accepted Solutions
LucD
Leadership
Leadership
Jump to solution

If you don't use PowerGui Pro ($), you can also do it yourself.

See Keith Hill's Make-PS1ExeWrapper and the PS2EXE project on Codeplex.


Blog: lucd.info  Twitter: @LucD22  Co-author PowerCLI Reference

View solution in original post

Reply
0 Kudos
2 Replies
chriswahl
Virtuoso
Virtuoso
Jump to solution

Various compilers are available for PowerShell scripts. Outside of a controlled interpreter (such as a GPO firing off the script instead of a person) I'm not sure - if someone can execute the script, logically they have to be able to read it too.

Ex. http://dmitrysotnikov.wordpress.com/2011/08/22/compile-powershell-scripts-to-exe/

VCDX #104 (DCV, NV) ஃ WahlNetwork.com ஃ @ChrisWahl ஃ Author, Networking for VMware Administrators
LucD
Leadership
Leadership
Jump to solution

If you don't use PowerGui Pro ($), you can also do it yourself.

See Keith Hill's Make-PS1ExeWrapper and the PS2EXE project on Codeplex.


Blog: lucd.info  Twitter: @LucD22  Co-author PowerCLI Reference

Reply
0 Kudos