Articles

PowerShell articles, tutorials, and guides from community experts.

Aaron Jensen
PowerShell for Admins

Tips for Writing Cross-Platform PowerShell Code

I just spent a month updating one of our PowerShell modules to support Linux and MacOS. I learned a lot that I wanted to share with the community as cross-platform support becomes more and more important.

Use “Environment” Class Properties Instead of “env:” Drive

Environment variables are different between the different operating systems. All of them have

PATH , but not much else. Windows and MacOS both have variables for the temp directory, but they have different names.

Don Jones
PowerShell for Admins

IRON SCRIPTER 2019 BEGINS!

Go to https://ironscripter.us/iron-scripter-2019-is-coming/ right away!

Even if you’re not attending Summit, these challenges are a great thing to jump into. They’re a fun chance to flex your PowerShell sk1llz, and the official Iron Scripter competition permits remote assistance to each of our three factions - so you can get in on the action from afar!

We suggest using tags #battlefaction, #daybreakfaction, and #flawlessfaction, and #ironscripter2019 to hook up with fellow coders on social media. Visit the main Iron Scripter website to learn more.

Will Anderson
PowerShell for Admins

Summit Expansion – Seeking Feedback

Tickets for the 2019 PowerShell + DevOps Summit sold out faster this year than its predecessors by almost exactly a full month. We are all so very excited to see everyone this year at the Meydenbauer in Bellevue, Washington! But as we continue to outpace each year, we also understand that this means that the demand for the content we deliver at Summit is also growing .

One of the early goals of the Summit was to keep the event relatively small to provide a more intimate feel. In doing so, it allows attendees a chance to see familiar faces as they come back every year, and have a chance to interact with the speakers, staff, and members of the PowerShell team. As the event has grown, we’ve been very careful to not lose that feel. So the question then is, what do we do in order to meet the demands of the community, and maintain that small event feel?

Brett
PowerShell for Admins

ICYMI: PowerShell Week of 1-February-2019

Topics include Active Directory FSMO Roles, text parsing, error handling, and much more.

Content pulled together by Robin Dadswell, Mark Roloff , and Brett Bunker.

Finding Active Directory FSMO Role Holders with PowerShell

by Adam Bertram January 25

Need to find which DCs hold your FSMO roles? Adam demonstrates a quick way to find their location using PowerShell.

Parsing Text with PowerShell (3/3)

by Steve Lee [MSFT] January 28

Part 3 in the series on parsing text with PowerShell. A nice wrap up to the series with some example uses.

Don Jones
PowerShell Summit

PowerShell + DevOps Global Summit Cancellation and Waitlist Procedure

As Summit nears a record sellout (there are 30 tickets remaining as I write this) I want to review our cancellation and waitlist policies and procedures.
After we formally sell out, Eventbrite will start accepting waitlist entries. Use a personal email address that you check regularly; corporate email systems tend to eat the waitlist notifications as spam. If we’re able to offer a spot to the waitlist, it’ll happen during the week, usually in the morning (US time), and you’ll have 24 hours to respond by purchasing a ticket.
Anyone with a ticket can transfer it to someone else. Whoever did the registration needs to simply return to Eventbrite and edit the attendee information. So if you can’t go, but someone else in your company can, that’s how you do that. You can also email summit@ for assistance. We let this happen until roughly mid-April, at which point we need to order name badges and we stop all transfers. We don’t do anything with hotel rooms; that’s all on you.
If you need to cancel, e-mail summit@ with your name, email address, and Eventbrite order number. We will release a ticket to the waitlist. They will have 24 hours to complete the purchase of their ticket. If they don’t, we’ll release the next waitlist entry, and so on. If someone eventually buys a ticket, we’ll refund yours. Again, we don’t do anything with hotel rooms.
Sometime in mid-April, all of this stops, as we have to start ordering stuff based on current registrations.