Please note that VisualCron support is not actively monitoring this community forum. Please use our contact page for contacting the VisualCron support directly.


dsjere
2013-04-23T14:21:27Z
Hello.

I'm trying to get users from the Active Directory, and the users last logon time.

I have tried using the task "Get AD Object property" with both the property name "lastLogon" and "lastLogonTimeStamp" but I get the output "System._ComObject" wich is not useful to me.

Is it possible to do this with the "Get AD Object property" task or do I have to do it in powershell?

Regards.

/Jesse
Sponsor
Forum information
bbusse
2013-04-24T15:08:54Z
I'll have to defer to Henrik, but I think you are correct about it not being able to pull that information for some reason.

I can pull back the 'Name' property for anything I choose, but LastLogonDate is not available when selecting a User Object (My ID specifically).

I know I can get this via PowerShell but I guess I'm curious why specific properties are not available.

Henrik, I know the code being used is .NET which i'm not extremely familiar with, but is there an option like in PowerShell to return 'more' properties than a standard 'Get-ADuser' returns?

In Powershell, I'd type the following and LastLogonDate would not be returned:

get-aduser USERNAME

However, if I type this, I get a TON more data back which does include the LastLogonDate

get-aduser USERNAME -Properties *

Or I could specifically request one additonal property:

get-aduser USERNAME -Properties LastLogonDate
Support
2013-04-30T07:03:59Z
I have no answer at the moment because we are missing an environment here to test with but perhaps we can do more debugging for next version but I hope you can workaround this with Powershell so far (thanks Brian).
Henrik
Support
http://www.visualcron.com 
Please like  VisualCron on facebook!
dsjere
2013-04-30T07:07:44Z
I solved it with powershell. So I'm happy.

Best regards

/Jesse
Scroll to Top