Jump to content

heartilly

Members
  • Posts

    2
  • Joined

  • Last visited

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

heartilly's Achievements

Seeker

Seeker (1/7)

0

Reputation

  1. I tried this example, but get an error message: #AutoIt3Wrapper_AU3Check_Parameters= -d -w 1 -w 2 -w 3 -w 4 -w 5 -w 6 #AutoIt3Wrapper_AU3Check_Stop_OnWarning=Y ; ***************************************************************************** ; Example 1 ; Get the domain password policy and the password info for the current user ; ***************************************************************************** #include <AD.au3> ; Open Connection to the Active Directory _AD_Open() If @error Then Exit MsgBox(16, "Active Directory Example Skript", "Function _AD_Open encountered a problem. @error = " & @error & ", @extended = " & @extended) ; Get the password info Global $aAD_PwdInfo[13][2] = [[12],["Maximum Password Age (days)"],["Minimum Password Age (days)"],["Enforce Password History (# of passwords remembered)"], _ ["Minimum Password Length"],["Account Lockout Duration (minutes)"],["Account Lockout Threshold (invalid logon attempts)"],["Reset account lockout counter after (minutes)"], _ ["Password last changed (YYYY/MM/DD HH:MM:SS local time)"],["Password expires (YYYY/MM/DD HH:MM:SS local time)"],["Password last changed (YYYY/MM/DD HH:MM:SS UTC)"], _ ["Password expires (YYYY/MM/DD HH:MM:SS UTC)"],["Password properties"]] Global $aTemp = _AD_GetPasswordInfo() For $iCount = 1 To $aTemp[0] $aAD_PwdInfo[$iCount][1] = $aTemp[$iCount] Next $aAD_PwdInfo[0][0] = $aTemp[0] _ArrayDisplay($aAD_PwdInfo, "Active Directory Functions - Example 1", -1, 0, "<") ; Close Connection to the Active Directory _AD_Close()
  2. I am having issues pulling out homeDrive and homeDirectory values even though there is one on actual AD, other properties is working fine. _AD_Open() $aUser = _AD_GetObjectsInOU("", "(&(objectCategory=user)(|(CN=" & $sUser & ")(sAMAccountName=" & $sUser & ")))", 2, "samaccountname, name, userPrincipalName, distinguishedName, department, description, employeeid, title, manager, mail, extensionAttribute1, homeDrive, homeDirectory") _arraydisplay($auser) As you can see on the screenshot there is no values on col11, col12 which is for homedrive and homedirectory is there is something i missed?
×
×
  • Create New...