Checking for conflicting oIDs

I got word that this script was useful for some other IT team, so it's definitely blog-worthy!

The Story

I've inherited some AD forests with their schema extended by in-house software, using oIDs belonging to an MS pool, meaning that those numbers might be used by future schema ...

more ...

Stsadm / new SPSite is slow

Update: Get the script here

The Story

A couple of days ago, developer extraordinaire Itay Shakury was doing performance tuning on one of our SharePoint applications, and came to me with a problem - creating a new SPSite object took about 30 secs. The stranger part was that only the first ...

more ...


A few seconds about psbase

I really like Powershell's dynamic type system, which allows you to, among other things, view XML nodes really easily. For example, to view the connectionStrings stored in your machine.config, all you have to do is something like:

([xml](gc 'C:\windows\Microsoft.NET\Framework\v2.0.50727\CONFIG ...
more ...

Auto-Sorting Computers in WSUS

When I installed my first WSUS server, I liked the idea of auto-assigning computers into different WSUS groups according to domains using the group policy's settings.
However, it's a bummer to find out that you can only assign every computer to one group using GP (and not being ...

more ...

Get-BigDirectories

Note: This script is better than just ls -rec | measure, because measure measures only one field, and when iterating over many files and directories, every iteration counts.

Whenever our roaming profiles folder gets too big, we have to prune the profiles that are both old and heavy. Using windows explorer ...

more ...

Querying SQL Servers

Before I had a chance to study Microsoft's SQL Server Management Studio (SSMS)'s Powershell SnapIn, I needed to grab some data from an SQL DB. I ended up creating 3 nifty functions for that very thing, and I still use them today, because I find SQL's SnapIn ...

more ...

Testing stranded group policies

Ever had GPO Version differences between the AD and the Sysvol? Sure, you might have a healthy FRS/DFSR architecture, but the replication takes time. It's annoying to check if the GP object is now OK on every server, because one would have to point the GPMC to every ...

more ...