PowerShell (pre-) compiled Scripts
Votes from Connect: 17
Original Date Submitted: 3/26/2012 6:09:59 PM
Handle: Peter Kriegel
Site Name: PowerShell
Feedback ID: 733298
Frequency: Sometimes Happens
Regression: I don't know if this issue existed previously
Make it Possible to save PowerShell scripts in a compiled format (binary byte-code).
Since PowerShell V 3.0 uses the DLR, every PowerShell V 3.0 script has to be compiled during the first run of the script. This may have a speed disadvantage. To speed up the execution of scripts, it may be useful to store scripts in a compiled binary format and run them without an additional compilation step.
This may be useful in the following scenarios:
* calling large amounts of scripts
With the possibility to store PowerShell Scripts in a compiled form, even Administrators are able to produce binary files, without forcing them to use .Net developer Tools like Visual Studio or equal. (producing .dll Assemblys !?)
As side effect, the source code of a script is not direct and easy readable.
Some PowerShell script developers may have the need to protect their knowledge and not give away, easy to read, plain text scripts. Scripts that are stored in a binary format, having the advantage that they are not readable, without an additional re-engineering step.
Product Studio item created by Connect Synchronizer due to creation of feedback ID 733298 (http://connect.microsoft.com/PowerShell/feedback/ViewFeedback.aspx?FeedbackID=733298).
Higher Runtime Speed,
Administrators can create assemblys which can be used by other Programs.
Lightweight script read-protection.
Internal BugId: 3467