VBScript–Active Directory Account Attributes

Below is a script that will output a list of Active Directory account attributes (password never expires, user cannot change password, etc) for an individual account. Set objUser = GetObject(“LDAP://cn=UserName,ou=OUName,dc=dcprefix,dc=dcsuffix”) intUAC = objUser.Get(“userAccountControl”) Const ADS_UF_SCRIPT = &H1 Const ADS_UF_ACCOUNTDISABLE = &H2 Const ADS_UF_HOMEDIR_REQUIRED = &H8 Const ADS_UF_LOCKOUT = &H10 Const ADS_UF_PASSWD_NOTREQD = &H20 Const ADS_UF_PASSWD_CANT_CHANGE […]

Leave a comment

Nonpaged Pool Memory Allocation

The OS I was testing with was Windows Server 2003 x32 with 2.5 GB of RAM. I was testing paged/nonpaged pool leaks, and I was curious about how the memory manager handles allocations and commits after the startup initialization. It looks like it allocates about 120 MB to the nonpaged pool upon startup (in this […]

Leave a comment