Expand a VHD/VHDX with Powershell

In the spirit of the “GUI-less” future that Microsoft and other vendors are pushing, I recently removed the GUI from all of our Hyper-V hosts. Now, I know I’m a bit late to the party on this one. I’ve been cleaning up a lot of things left over from past generations of IT guys, and…

Continue reading

Ping Sweeping with FPing

I generally use NMAP for any type of host discovery, but recently started experimenting with FPing. One thing I found is that, when performing a ping sweep, not only do I see the hosts that replied to the ping, but FPing also sends any unreachable IP addresses to stdout (which is super annoying and ugly…

Continue reading

Powershell: SID to Username

#Returns a username based on a SID#Author: Ryan Nemeth#Date: 12/2/2014 $SID = read-host “Please enter the SID: “$object = New-Object System.Security.Principal.SecurityIdentifier($SID)$User = $object.Translate( [System.Security.Principal.NTAccount])write-host “The user is: ” $User.Value