Get Windows Registry Key via Pattern

SNowUser11
Kilo Guru

HI Team,

I have the whole thread regarding retrieval for registry keys for discovery and really got resolved and got the value needed. I am trying to get another key same way as I did yesterday  Get Last Logged On User from Windows Registry but this time i get error:. What this Red line with error means i checked with Admin the path is correct but what could be the issue . Please need help again from you experts. 

Thanks

find_real_file.png

 

1 ACCEPTED SOLUTION

Hi,

In the patterns (windows-os desktops and Windows -OS Servers) which I added extensions yesterday . Right click on the UI action -->Synchronise with MidServers


This you can try.

Thanks,
Ashutosh

View solution in original post

20 REPLIES 20

Hi,

For first point you have to match the username of the assigned to person.

What you get in there? Do you get username of something else.

 

Have you seen this:

find_real_file.png

 

 

Second which applies to first also. You can use eval scripts in this pattern steps to modify the data and set it on CI.

 

https://docs.servicenow.com/bundle/paris-it-operations-management/page/product/service-mapping/reference/r_UsefulShortcutsPatDef.html

Check Set Parameter Value step.

Thanks,
Ashutosh

Yeah I get such as example

.\Administrator  OR domainname\sam_mathews

Hi,

Then sam_mathews should be the username in your system if not then you have to use set parameter value and query the table to fetch it or use other steps to get value from user table.


Thanks,
Ashutosh

And where can I see the logs which I got during debug of the pattern the one which I posted at the top I was looking in discovery log but that does not give me any such messages which I got when I was debugging.

So i got the results for lot of devices but some not and for those devices which I did not get it is showing the error as I mentioned. Is that means that the path or attributes in those devices might be wrong .So wanted to have those logs

Hi,

When you debug the pattern you see it on the screen, When you run the discovery you see those in pattern logs and you can also check ecc queue.


Thanks,
Ashutosh