Updating VMware discovery info in Active Directory

Recently I decided I want to store physical discovery data (name, physical location, host if it's a VM) on the machine's account in Active Directory, because we have a lot of machines and during a crisis we sometimes forget where they are.
I started with our VMware infrastructure ...

more ...

Installing WSUS Prerequisites Easily in a Disconnected Server

Our company has an internet-isolated environment, and I was requested to create a WSUS infrastructure there.
The most annoying thing about installing a disconnected WSUS server is that you can't do it via the server manager (because it requires a working internet connection) but rather through an exe file ...

more ...

Automaticlly Extracting Downloaded Torrents

As every average geek, I too download torrents (containing only legal, copyright-free material, of course), and most of the time the torrents contain multi-file archives that contain the really juicy data.
A lot of times I return home and find some new torrent has completed downloading, but I have to ...

more ...

Determining Size of all Tables in a Database

Just a quick SQL script to get the rowcount and size data of every table in the current database:

CREATE TABLE #sizeof (
 name varchar (70),
 [rows] int,
 reserved varchar(20),
 data varchar(20),
 index_size varchar(20),
 unused varchar(20),
)

DELCARE @name varchar(70)
DECLARE cur CURSOR FOR select name from ...
more ...

Creating proxied http requests with PowerShell

I'm working on some sort of HTTP proxy (maybe more details about it later), and to test it I've created a short PowerShell script.
Note it also performs basic authentication voluntarily (without waiting for a server challenge) by injecting an Authorization header, because I was testing something extra ...

more ...

Active Directory's Object Specific ACEs and PowerShell

I recently checked the option of handing out AD permissions through PowerShell scripts, and I found out that setting object-specific ACEs is not trivial scriptwise.
Active Directory ACE (access control entries) are different from your regular ACEs (for example, NTFS), because they can be used to grant permissions only on ...

more ...

Lowercasing PTR records in DNS

Recently, one of the IT crowd informed me that he can't delete some of his PTR records through the DNS management console (dnsmgmt.msc). The record would appear to be deleted, but it'll still show up after refreshing.
After some quick Googling I found kb842127, which says that ...

more ...

Enabling Remote Desktop Remotely

According to this Technet article, to enable remote desktop remotely by using the registry you need to set the key

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Terminal Server:fDenyTSConnections=0

and then reboot the server.
Rebooting is actually unnecessary - you can just restart the service TermService
If you'd like to script ...

more ...


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 ...