Blog Archives

Enable modern authentication for Exchange Online via PowerShell

Modern authentication is disabled in Exchange Online in Office 365  by default. However, you are quite likely to want modern authentication, because modern authentication in Office 365 enables authentication features like multi-factor authentication (MFA) using smart cards, certificate-based authentication, and

Posted in Blog Tagged with: , , ,

Enable modern authentication for Skype for Business Online via PowerShell

Modern authentication is disabled in Skype for Business Online in Office 365  by default. However, you can enable it via PowerShell. The article explaining how to enable modern authentication in Skype for Business in Office 365 is missing a small

Posted in Blog Tagged with: , , ,

Remoting in Azure Automation Runbooks (SQL DB Creation sample)

I find that using PowerShell remoting in my Azure automation runbooks is sometimes more convenient, as it eliminates the need to install and update additional PowerShell modules on my OMS hybrid runbook worker. For future reference, I wanted to capture an

Posted in Blog Tagged with: , , ,

Searching files in a zip archive in memory with PowerShell

I found myself tonight needing to build a function to search the contents of text files in a very large zip archive to find one containing a specific value. To handle the operation quickly, I wanted to perform the operation

Posted in Blog Tagged with:

Install SQL Server Mgmt Studio (SSMS) with PowerShell

Below for reference is a quick PowerShell sample for downloading and installing SQL Server 2016 Management Studio (SSMS). While this component used to be included in the SQL Server installer, it is now a separate download. Questions or comments? Use the

Posted in Blog Tagged with: , ,

Switch from dynamic IP to IP Pool in VMM 2016

Recently I migrated a VM from standalone Hyper-V server in 2016 to a Hyper-V cluster managed by Virtual Machine Manager (VMM) 2016. The VM was using DHCP for addressing and I wanted to flip it to get its address from

Posted in Blog Tagged with: , , ,

TIP: Keep your Azure Automation runbooks healthy across PowerShell module updates

Here’s a quick tip that may help you ensure you’re protect yourself from a problem that happens occasionally. Problem: I had a runbook that was broken when the PowerShell modules in the store were updated. Solution: What can you do to

Posted in Blog Tagged with: , ,

Creating ConfigMgr User Collections with PowerShell

Below for reference a quick PowerShell sample for creating a query-based user collection in System Center Configuration Manager (ConfigMgr), along with a demonstration of some of the options you can supply to control collection population and refresh behavior. You can download

Posted in Blog Tagged with: ,

Creating ConfigMgr Device Collections with PowerShell

Below for reference a quick PowerShell sample for creating a query-based device collection in System Center Configuration Manager (ConfigMgr), along with a demonstration of some of the options you can supply to control collection population and refresh behavior. You can download

Posted in Blog Tagged with: ,

Optimized Group Maintenance Mode PowerShell for OpsMgr: 2012 R2 Edition

Below is the latest sample of optimized group maintenance mode for System Center Operations Manager (SCOM), which leverages the .ScheduleMaintenanceMode function, which allows for the inclusion of a request for recursion….the implementation of the “this object and contained objects”. This

Posted in Blog Tagged with: ,