So I work in a school, I am trying to make a powershell script to pester students/staff who’s loan laptops are not connecting to the domain and getting updates etc properly to prevent anything from slipping out of complaince too much.
I am doing this by seeing last time it connected to AD, that will give me a laptop number, but it doesn’t give me the user who is associated to it. My idea was to get the computer number then use the freshservice API to get the user or ‘used by’ data from the asset system on fresh service - I can SEE that data in the gui, but I have been over the docs for the api and unless I am being super blind I am missing how I can get that via the API, is it just not available via the API or am I messing something up?
Before making the whole script, I am just getting data from the API and I have that working fine, I can get requesters or locations or whatever like that, I just don’t know what I can do to give it the asset name ( in our case, the computer number ) and get the ‘used by’ and ideally ‘company’ too.
I am 100% a noob to using api’s in general and am only marginally more experienced with powershell so if this is super obvs, please forgive me,
Thanks
Charles