Scripting Blog [archived]

Formerly known as the "Hey, Scripting Guy!" blog

Open Source PowerShell – Part 2

Summary: Use PowerShell scripts within Python and Bash (and those within PowerShell). (image) I am curious just how much I can use Open Source PowerShell within Linux and macOS.  Is it an isolated environment, or can it interact with other shells? (image) Thanks for your question.  Our good friend, Honorary Scripting Guy, Sean Kearney, ...

Manage SharePoint Online site collections and the web templates with PowerShell

Summary: PowerShell commands can manage site collections and the web templates that create site collections. Christopher Weaver is a Microsoft Premier Field Engineer (PFE) who focuses on SharePoint and Office 365 solutions for large enterprise Premier customers. He has been doing PowerShell and SharePoint with Microsoft for nine years. In ...

Part 3 – Use Azure Automation DSC to Configure Linux and execute PowerShell scripts

Summary: Learn how to configure and use PowerShell, Bash, and DSC with Linux. Hi, my name is Stefan Roth (Blog: http://stefanroth.net / Twitter: @stefanroth_net), and I am a Cloud and Datacenter MVP. In my last post of this three-part series, I would like to show you how we are able to hook up the previously installed Linux system to Azure ...

How to avoid reinventing the wheel in Azure Automation

Summary: Take advantage of existing scripts to create your own solutions.   Automation is the number one technical skill that IT needs to have to thrive in today’s quickly changing world. My recommendation is that anything you do for automation you should do in PowerShell, and you should use Azure Automation as your go-to automation ...

PowerTip: Capture error code of a PowerShell session in Linux or macOS

Summary: Capture the status code of a PowerShell session in Linux or macOS. (image) Could you show me how to run a PowerShell script in Linux or macOS and capture the status of whether that script succeeded or failed? (image) No problem, my friend. Just run the PowerShell session, and start the script as in the following example. You can ...