Last week we posted the first 11 pages of Climbing Mt. PowerShell. Today the adventure continues with 11 new pages.
These pages have some great information on PowerShell scripting features. You can read about arguments, input, comparison operators, conditional statements, loops, and working with files and folders. We've also got an example called "Reading a Text File into an Array," where we show how Get-Content can be used to read a text file into an array. This makes it easy to provide a list of items for the script to operate on. Towards the end of today's content, we get into working with network tasks. We also have two full comic panels!
Stay tuned. We'll be back very soon with the last few pages - and the full PDF download. In the meantime you can check out the Script Center for tons of great info on PowerShell.
Many thanks to those who have provided feedback. If you have feedback for us, please leave comments or drop us a line.
You misspelled "Arguements" at the top of the first page.
Thanks for the tip, Joe!
Everyone should check back tomorrow for the final installment of Climbing Mt. PowerShell.
I’ve done it! I’ve compiled PowerShell! Does it run? I don’t know. Is it even the correct interpretation of the script I compiled? I believe so, but I can’t be sure.
After writing about the new AST and compiler in PowerShell v3, I spent some time trying to get a script to compile. The CompileToMethod method cannot construct complex constants out of the blue. It doesn’t know how to take a live object and translate that into functioning code. I decided it might be possible to “visit” the lambda generated by the compiler and reconstruct the different AST nodes within the tree, thus making it capable of compilation.