We help IT Professionals succeed at work.

Complie powershell script in C#

Nitinol
Nitinol asked
on
Medium Priority
846 Views
Last Modified: 2010-04-21
Hi, i've just recently learned powershell scripting as an alternative to batch scripting, for obvious reasons.  With a batch file, you can just give it to your friends without having to install anything on their system.  I was wondering if there's a way I could compile - i've heard some people saying it is possible - the powershell script into an executable so that my scripts would be portable to friends without having to have anything extra installed.

Thanks.
Comment
Watch Question

Commented:
You can NOT compile Powershell scripts. If you want to share a Powershell script the machine that runs the script will have to have Powershell.

Author

Commented:
*sighs* That's too bad.  I like to share my stuff with my friends.  They're too lazy to install powershell, haha.

Commented:
I understand... good news is that it will be included in all MS OS's from now on.

Author

Commented:
nice, now that's something worth looking forward to

Author

Commented:
Good as usual

Explore More ContentExplore courses, solutions, and other research materials related to this topic.