Quantcast
Channel: Lessons Learned
Browsing latest articles
Browse All 135 View Live

IPv4 Addresses and CIDR Fun

Classless Inter-Domain Routing is the current way to define a subnet.  An example entry would be “192.168.1.0/24”.  What this means is that the first 24 bits of the 32 bit IPv4 address are considered...

View Article



One-Liner: Left-Padding a String with Zeroes

Yesterday’s post had a little bit of sleight-of-hand involved.  For the IPv4 address to UInt64 conversion to work, each octet had to be converted into an 8-character string of ones and zeroes....

View Article

Image may be NSFW.
Clik here to view.

Pass the CIDR, Will You?

Classless Inter-Domain Routing (e.g. 192.168.1.0/24) replaces dotted-notation netmasks (e.g. 192.168.1.0 with a subnet mask of 255.255.255.0) to do the same thing: what IP addresses are considered...

View Article

Left-Padding a String

I’ll be honest; .NET has more methods and classes and properties than I can shake an idiom at. In my previous blog post, I needed to left-pad a string with zeroes in order to treat it as a 32-bit...

View Article

Configuring the ISE

I tend to flatten my laptop about once a season. Among the other things I lose is my PowerShell_ISE customizations. They’re not many, but I miss them when I have to live without them. Fortunately,...

View Article


Backing Up BitLocker Keys to OneDrive as a Scheduled Task

While I can’t say I love Bitlocker, I do understand it as a requirement for any machine with corporate data.  That said, it seems quite capricious when the BitLocker gremlin decides to require the...

View Article

IE, ADFS, and Overkill

I do some testing that requires I not use Active Directory Federation Services (ADFS), which is an otherwise-convenient way to authenticate me against web sites via my Active Directory token.  I used...

View Article

Moving Computer AD Objects

I’m just going to toss code up here from now own. Too busy to write nicely-formatted posts. Apologies.! 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35...

View Article


Converting Whitespace-Indented Output to XML

Example of taking output delimited by indents and trying to beat it into XML. 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44...

View Article


Active Directory – Creating Install From Media dump

function Backup-ActiveDirectoryIFM { param ( [string]$IFMPath, [switch]$NoDefrag ) $errorAction = 'stop' $minimumFreeSpace = 0.5TB $Mode = 'Full' if (!$IFMPath) { $driveObject = Get-PSDrive | ? {...

View Article
Browsing latest articles
Browse All 135 View Live




Latest Images