Get Model and Serial Number via PowerShell


A simple script to get some basic server info via PowerShell This script retrieves info from the appropriate WMI class and inserts it into a variable and then outputs it to the host and CompInfo.txt file. Basic Commands: Get-WmiObject -ComputerName localhost -Namespace root\cimv2 -Class Win32_ComputerSystem | Select-Object Model Get-WmiObject -ComputerName localhost -Namespace root\cimv2 -Class Win32_SystemEnclosure … Read more

Remove SCCM Distribution Point Role

If you work in a large SCCM/MECM environment you may run into a time when all of your remote Distribution Points need to be replaced with new servers for a hardware refresh. Servers are built with the latest OS, boxed up and shipped and then installed on-site at their new locations. Once they’re there, you … Read more

Trigger SCCM Client Actions Remotely

Sometimes you just need a quick way to trigger SCCM Client Actions remotely and you don’t want to have to build a Collection and wait for it to update before using Right-Click tools to do it. PowerShell Method WMIC Method (deprecated) Script Example For a full list of available Client Action Triggers see:

SCCM Backup Fails with VSSWriter Error

We recently had the SCCM Backup task start failing on one of our Primary Sites. Worked fine for years, then all of a sudden it just stopped working. After doing a little digging, I could see the backup was failing on the VSS Initialization during the SQL portion of the backup. In the SMSBKUP.LOG on … Read more