Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.
groupDN = "CN=DL_Test002,OU=Groups,OU=Temp,DC=A,DC=global" WScript.Echo "Getting members of: " & groupDN Set objADObject = GetObject("LDAP://" & groupDN) Call LoadMembers(objADObject) Sub LoadMembers(ByVal ADObject) colstrMembers = ADObject.member If (IsEmpty(colstrMembers) = True) Then Exit sub End If If (TypeName(colstrMembers) = "String") Then colstrMembers = Replace(colstrMembers, "/", "\/") Set objGroup = GetObject("LDAP://" & colstrMembers) WScript.Echo " MEMBER of: " & ADObject.sAMAccountName & " > " & objGroup.sAMAccountName Call LoadMembers(objGroup) Exit Sub End If For j = 0 To UBound(colstrMembers) colstrMembers(j) = Replace(colstrMembers(j), "/", "\/") Set objGroup = GetObject("LDAP://" & colstrMembers(j)) WScript.Echo " member of: " & ADObject.sAMAccountName & " > " & objGroup.sAMAccountName Call LoadMembers(objGroup) Next End Sub
|Powershell script update||2||30|
|How to change the UPN set by default to new users in Windows 2012 R2||7||24|
|Allowing users to reset other peoples password w/o logging into ADUC||4||21|
Join the community of 500,000 technology professionals and ask your questions.
Connect with top rated Experts
19 Experts available now in Live!