HighlanderSword Posted December 18, 2022 Share Posted December 18, 2022 Hello Water, When I use _AD_IsAccountExpired to check if an account is expired, I get the error message error = 2 @extended = -2147352567 When I use _AD_GetObjectProperties for the same user I'm able to see the details , and I look at the accountExpires field is see 1601/01/01 00:00:00 Any ideas what I missing when using the AD_IsAccountExpired function that would generate the extended error UDF Version and windows version details below UDF Version ...: 1.6.2.0 Windows 10 21H2 x64 Error details when setting _AD_ErrorNotify(1) COM Error Encountered in search.au3 AD UDF version = 1.6.2 @AutoItVersion = 3.3.16.0 @AutoItX64 = 1 @Compiled = 0 @OSArch = X64 @OSVersion = WIN_10 Scriptline = 3319 NumberHex = 0x80020009 Number = -2147352567 WinDescription = Exception occurred. Description = Source = HelpFile = HelpContext = 0 LastDllError = 0 Link to comment Share on other sites More sharing options...
Subz Posted December 18, 2022 Share Posted December 18, 2022 It appears the user doesn't have an account expiry date set. Link to comment Share on other sites More sharing options...
HighlanderSword Posted December 20, 2022 Author Share Posted December 20, 2022 can an admin please delete this , I posted in the wrong location, I have created a new one in the correct location. Thanks Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now