nsats.blogg.se

Powershell comment block
Powershell comment block













First I tried PowerShell ISE v3 since it comes with Windows out of the box, but was quickly turned off at how featureless the GUI is. Luckily, we have Stack Overflow :-)Īnyways, as a PS newb one of the first things I did was go look for a nice editor to work in intellisense was a must.

powershell comment block

Net background, but there are many small roadblocks that just shouldn’t be there. So PS is a great tool, but has a deceptively steep learning curve in my opinion it’s easy to get started with it, especially if you have a.

powershell comment block

This is only one small example, but I’ve found I’ve hit many little Gotcha’s like this since I started with PS. For example, if you have an array of strings, but the array actually only contains a single string, when you go to iterate over the array instead of giving you the string it will iterator over the characters in the string….but if you have multiple strings in your array then everything works fine (btw the trick is you have to explicitly cast your array to a string array when iterating over it). I’ve gotten hung up for hours on end with things that should be simple, but aren’t.

powershell comment block

It is simply a wonderful tool…once you understand how it works and have learnt some of the nuances. I’ve only been writing PowerShell (PS) for about 6 months now, and have a love-hate relationship with it. #This is some # code and here is #some more code.įeel free to skip the Preamble and get right to the good stuff.















Powershell comment block