my $oContainer = Win32::OLE->GetObject("LDAP://CN=$username,$OU,$DC"); $oContainer->{AccountDisabled} = 0; # FALSE $oContainer->SetInfo();