Need to get the Last logged in User details through Discovery pattern

Ajaykumar Radhk
Tera Contributor

We have an ask to fetch the last logged in user data through the Discovery pattern. Has this been done by anyone?

4 REPLIES 4

Patrick DeCarl1
ServiceNow Employee
ServiceNow Employee

OOTB for the windows and Mac patterns we get last logged in user and save user to the assigned to field. Can you run disco pattern in debug mode to see if you get user data? 

 

ex: windows OS - desktop pattern under step 2.55 we query for assigned to, if nothing comes back here we try it again under step 7, pattern gather computer info and then sets the assigned to on step 7.3

Joby
Tera Contributor

I was able to get it from the Registry:find_real_file.png

Hi,

I have the same requirement. Did you add them in Pattern-  Windows-OS Servers ? in Extension?and in which field in cmdb the value is stored? 

Thanks

Joby
Tera Contributor

I added it to the Windows OS - Desktops as an Extension and saved it as User Name.

 

https://community.servicenow.com/community?id=community_question&sys_id=861147f9dbda5cd0d5c4d9d96896...