PowerShell for Admins

PowerShell for Admins
Don Jones
PowerShell for Admins

FAQ: PowerShell on Linux/Mac

Be sure to check back often, as we’ll add to this. So does this mean I’ll be able to run [add your favorite module name here] on Linux/Mac? Likely not. PowerShell on Linux/Mac is, at present, “PowerShell Core,” which is a subset of the total Windows PowerShell product. Similar situation to PowerShell on Nano. So any module that requires something outside Core, won’t run. And further, most modules have dependencies on underlying technologies in Windows.

Richard Siddaway
Announcements

PowerShell is Open Sourced

For those of you that have been at PowerShell Summits over the last few years you’ll have heard Jeffrey Snover state that he wanted to take PowerShell to other platforms. Now its happened Jeffrey has announced that an ALPHA release of PowerShell is now available for Linux and Mac. Currently available for Ubuntu, Centos, Red Hat and Mac OS X with more to come The announcement is at https://azure.microsoft.com/en-us/blog/powershell-is-open-sourced-and-is-available-on-linux/ Also see PowerShell blog

Graham Beer
PowerShell for Admins

A date with PowerShell

At the beginning of July, we welcomed our 3rd son into the world. As days past my wife and I would say, “wow, he’s 11 days old. Can you believe it?!”. I’m sure parents out there are relating to this! This gave me an idea for a fun script that would get your age in years, months and days, tell you how many days until your birthday and your star sign.

Don Jones
PowerShell for Admins

What are your "known problems" (solved) in DSC?

I’m collecting a list of known problems in DSC v5 _that have been solved. _Like the infamous “MI RESULT 12” error that could happen if you upgraded from prerelease v5 to production preview. I’m going to document these in “The DSC Book,” including in its free sample version, to help preserve these things in one place. Again - these need to be solved problems. Just drop as much description as you can into a comment here, and feel free to link to the fix, or to a discussion thread on the problem.

pscookiemonster
PowerShell for Admins

Deploying Modules to the PowerShell Gallery

So! We’ve talked about continuous integration and deployment with PSDeploy, the importance of abstraction, and a bit on how and why to write and publish PowerShell modules. It’s time to combine these ingredients with a quick, real-world walk through on automatically publishing your PowerShell modules to the PowerShell Gallery. If you want a full run-down showing how to deploy PSDeploy with PSDeploy, hit the link; otherwise, we’ll pick up the PSStackExchange module where we left off, and drop in some continuous integration and deployment goodness!

msorens
PowerShell for Admins

Every pithy witticism begins with quotation marks

“To be or not to be”. Without getting into a debate over whether Shakespeare was musing about being a logician, suffice to say that in writing prose, the rules of when and how to use quotation marks are relatively clear. In PowerShell, not so much. Sure, there is an about_Quoting_Rules documentation page, and that is a good place to start, but that barely covers half the topic. It assumes you need quotes and then helps you appreciate some of the factors to consider when choosing single quotes or double quotes.

pscookiemonster
PowerShell for Admins

Finding PowerShell Sessions At Conferences and Events

The Current State So! If you visit the PowerShell.org events page, you’ll find a bevy of PowerShell-focused events, from local PowerShell user groups to global PowerShell conferences. What you won’t find, yet, is a list of PowerShell related sessions at the many other conferences and user groups you might consider attending. Maybe you’d like to find PowerShell oriented sessions at non-PowerShell user groups and mini conferences like SQL Saturdays, VMUGs, Azure User Groups, Security BSides, DevOpsDays, etc.

Graham Beer
PowerShell for Admins

To ping or not to ping..The PowerShell way

As this is my first blog here, here’s a bit about me. I’m a current lead SCCM Admin in the UK, and have found this great enjoyment for PowerShell in the last 18 months. I’ve started my own blog, http://www.get-configmgr-content.co.uk/, to share my passion. The chance to blog on Powershell.org was too exciting not to do! The inspiration for this blog came from a forum post on Powershell.org that I helped contributed on.

msorens
PowerShell for Admins

Complete Guide to PowerShell Punctuation

Quick as you can, can you explain what each of these different parentheses-, brace-, and bracket-laden expressions does? ${save-items} ${C:tmp.txt} $($x=1;$y=2;$x;$y) (1,2,3 -join '*') (8 + 4)/2 $hashTable.ContainsKey($x) @(1) @{abc='hello'} {param($color="red"); "color=$color"} $hash['blue'] [Regex]::Escape($x) [int]"5.2" When you’re reading someone else’s PowerShell code, you will come across many of these constructs, and more. And you know how challenging it can be to search for punctuation on the web (symbolhound.com not withstanding) !

Don Jones
PowerShell for Admins

My DevOps (DSC) Camp Detailed Agenda

If you’re deep into DSC and delving into DevOps, then my summer “Camp” event is probably meant for you - and now there’s a detailed agenda, overall agenda, and full event brochure. This is a really limited event - under 20, including product team participants, and we’re down to just a few seats left. DevOps and DSC Camp Detailed Agenda