Microsoft has been busy with the next iteration of PowerShell. As you should already know, this version will run cross-platform. The executable, or engine, is naturally different than what you are used to with Windows PowerShell. As I was trying out the latest PowerShell beta, I needed to identify the path to the current PowerShell engine. I then thought it might be helpful to get even more details so I put together a quick PowerShell function called Get-PowerShellEngine.
Maybe it’s my liberal arts background but I love words and word games. I have a constant pile of crosswords and enjoy tormenting my kids (and wife) with puns. I am also fascinated with word hacks like palindromes and anagrams. An anagram is where you take a word like ‘pot’ and rearrange the letters to spell another word like ‘opt’ or ‘top’. Short words are easy to do in your head. So I thought why not get PowerShell to do some of the letter crunching for me.
I wanted to be there as it were as you started your very first day learning and using PowerShell. My goal was to be with you virtually, and guide you through how you should spend your first hours with PowerShell. If you’ve decided to set out on the journey, I wanted to make sure you head off in the right direction and not on your own. You can check out a short overview clip here.
Clearly, you aren’t going to learn PowerShell in 90 minutes and you should watch this course in conjunction with some of the other PowerShell fundamentals courses. For those of you who have already watched the course, thank you. I’ve received plenty of nice comments.
Now I’d better get back to work on the next one!
Welcome once again to the end of the week. Hopefully you spent some time in PowerShell. If not, perhaps this tidbit will be intriguing enough to give it a try. I always try to put the “fun” in function and today I have one that will enumerate all the WMI namespaces, but using Get-CimInstance, or the “modern” way to work with WMI. You probably know about the root\Cimv2 namespace but there are many others and if you explore you might find some other namespaces and classes that are useful.
During the recent PowerShell+DevOps Global Summit I had two primary presentations, that is, traditional sessions with slides and demos. My other sessions were panels which means if you weren’t in the room you missed out on some great content and interaction.
Anyway….my main sessions were on creating class-based PowerShell tools and using Nano server in the datacenter. The former was a lightening fast 45 minute session where I tried to cram in as much as I could. The latter was a 90 minute walkthrough of building a variety of Nano server images to meet traditional datacenter roles. Again, there’s no substitute for attending.
But for those of you who couldn’t attend, all of my demo files are available on GitHub.
I realize not everyone has jumped on to GitHub yet. You don’t need a GitHub account to get these files. No need to fork or clone. All you have to do is click on the green “clone or download” button and download a zip file. Of course you are welcome to clone the repo if you’d like.
As far as recordings go, this was not a good year. My Nano server session was not recorded and I don’t know yet about the class-based tools session.
Thanks to everyone who attended my sessions. I hope you found them worth your time.