Complie powershell script in C#

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.
NitinolAsked:
Who is Participating?

[Webinar] Streamline your web hosting managementRegister Today

x
 
BSonPoshConnect With a Mentor 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.
0
 
NitinolAuthor Commented:
*sighs* That's too bad.  I like to share my stuff with my friends.  They're too lazy to install powershell, haha.
0
 
BSonPoshCommented:
I understand... good news is that it will be included in all MS OS's from now on.
0
 
NitinolAuthor Commented:
nice, now that's something worth looking forward to
0
 
NitinolAuthor Commented:
Good as usual
0
All Courses

From novice to tech pro — start learning today.