so i was trying to find an example of how to use win32ole in ruby that does’t involve excel and stumbled across this interesting post about ADSI. so now armed with this and the reference at MSDN, i now have the shoulder mounted missile launcher i need to crack active directory.
require 'win32ole'
domain = WIN32OLE.connect("WinNT://my_domain.com")
user = domain.Create("user", "my_username")
user.FullName = "Foo Bar"
user.Description = "just a lil ol' test of how ruby <3 ADSI"
user.SetPassword = "my_password"
user.SetInfo
now that i’ve been freed of point-n-click-administration hell, i wonder what i’m going to do with all that free time.
November 7, 2006
ruby heart ADSI
September 17, 2006
MySql 5.0 for idiots
maybe this will save you an hour or so of your life to learn from my mistake. When installing MySql 5.0 on windows and you screw up the configuration and want to start over from scratch a couple things will help you out.
- Remove the MySql service before you uninstall. This can be easily done with the configuration manager and i recommend this because it seemed ( atleast on my system) that uninstaling the program didn’t always remove the service.
- Delete the MySql directory in program files after you uninstall. The configuration files are kept here, so if you don’t delete this before you reinstall, you have to battle with the same botched config files again.
April 25, 2006
foldersize
you probably have no idea how many times i've beaten my head against a
wall because i didn't have something like this… why isn't an easy way to view and compare the size of folders built into the operating system?