Category: Scripts

Opening/Upgrading SCCM 2012 R2 PowerShell

Nothing truly new here, but it is a new year and a new environment for me. I’ve just sat down at my seat at a customer’s location and wanted to inventory a bunch of things inside their System Center Configuration Manager 2012 R2 CU3 environment. Regardless it’s older and we’re in the process of migrating to Configuration Manager 2016! Exciting times ahead! In any case, I installed the Configuration Manager 2012 R2 console on my Windows 7 laptop (64-bit). See where things are going. We’re not running the latest and greatest… yet 😉

Read More

SCCM – Using Multiple SUPs, but clients aren’t switching

One of the issues I’ve come across is using Configuration Managers (2012 R2+) feature of being able to deploy multiple Software Update Points (SUP) within a site. This scenario is essentially to avoid using traditional network load balancing (NLB) and offload the work to the clients. One would think, if one SUP is not available it’s pretty simple, switch to the next one in the list. Well this doesn’t always happen as one may expect. Why?

Read More

Configuring Multiple Software Update Points (SUP) in SCCM

I was working on a SCCM deployment where there was already one existing Software Update Point (SUP). Due to new firewall restrictions, a few new SUPs were required. Microsoft has changed their best practices with SCCM in regards to using multiple SUPs. The best practice is to share the WSUS Database (SUSDB) and the WSUS content directory. This cuts down on a lot of space, replication and administrative issues.

Read More

PowerShell – My way to prepare a SQL Server VM

As I get called on a lot of to do SQL Server installations, I’ve come up with what I’ve found works best for me. Every location has different infrastructure, security, networks and their way of doing things. Since I’m the one doing the installation, and I know I’ll get called back in the future at some point to upgrade, troubleshoot or manage the SQL Server environment, I like to have a set of standards. Documentation, I actually do enjoy writing it (yes I may be sick), but having a self-documenting PowerShell script is even better!

Read More

PowerShell – Start-Service, Stop-Service, they work, but not always well enough!

Well as the title suggests, I’m happy with the code, but I always find myself adding more and more code around the cmdlets. Service control in Windows has been pretty straight forward for the past few decades. Obviously PowerShell can control the state and configuration of services, but one thing I’ve always run into with service control is reacting to how the service stops and starts and also managing the state of dependent services. I’m sharing some short code functions that I use.

Read More