Update Custom Attributes for VMhosts in vCenter

Yet another role added to my Job description, Now I am managing our Virtual Servers. So true to form I\’ve dived headfirst into powershell / powercli to see what I can do. Some of the posts coming up on this will likely be similar to others around the web as I reinvent the wheel while I learn. But you never know one of you might find me 1st or I might do it in a way that suits you better.

First up is a simple script to read data from an xml file and then update custom attributes on the vmhosts.

Continue reading “Update Custom Attributes for VMhosts in vCenter”

SCCM All Computers, their OU and last Hardware Scan

A quick Report to return all of the computers, the OU they are in and the last time they had  a Hardware scan.

First we create a temporary table to hold the 1st pass results, then we query that table looking for the longest OU for each computer ( this way we only get 1 record per computer returned, otherwise each level of the OU a computer is a member of will be returned)

Continue reading “SCCM All Computers, their OU and last Hardware Scan”