Getting current computer name via script

codedude
Mega Expert

This might seem like an off the wall question, but is there a way to get the current computer name/ip address of the computer the user is logged into.

Example: Say Joe Blow is logged into Jane Doe's computer. Joe Blow then logs into his ServiceNow account. When he opens the form it will pull in Jane Doe's computer name and ip address since Joe Blow is logged into her computer.

Any advice on how this can be done via scripting or any other avenue?

Thanks

10 REPLIES 10

So would the help desk agent have to go through all of the entries on the table to find that one users information? Or is there a way to have the user click the help the help desk link and it send that users specific info to the agent?


You could show the config item wherever you like since it will reference the user. You could show it on user table records or on tickets.


gaia
Tera Contributor

Hi Josh,


you Find a solution to this problem?


Hichem Guemiri
Tera Contributor

this is a good idea


Daniel Oderbolz
Kilo Sage

As all others have pointed out, this needs to be done server side.



Have a look here:



Auto populate computer name



Cheers, Daniel



If this answer was helpful, I would appreciate if you marked it as such - thanks!

Best
Daniel