Scripting Blog [archived]

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

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 ...

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 ...

Open Source PowerShell – Part 1

Summary: Find and install the Open Source PowerShell software for Linux or Windows. (image) I was reading up about a great new change in PowerShell. I heard that the newest version was Open Sourced on GitHub. Any chance you could give me a quick run-through to check it out? (image) Honorary Scripting Guy, Sean Kearney, is here today to ...

PowerTip: Know the difference between the .split() method and ‘-split’

Summary: Cloud and Datacenter Management MVP, Thomas Rayner, shows how to split a string by using a string instead of just a character. (image) I am trying to split the string “this is my amazing string” on the pattern “my” by using “this is my amazing string”.split(“my”) but it’s giving me a bunch of garbled stuff back. ...