I’m not super familiar with windows, but is it possible that the account running the build agent is some sort of service account that isn’t allowed to access hardware? or some library isn’t installed globally? or missing some env variables?
yea sadly thats outside my windows knowledge. I’m a windows user, but I mostly developer on linux.
There are lots of windows users on here so hopefully they can speak up.
In general though, run set (is there a printenv in windows?) in the working and non working environments, and see what the differences are. Compare usernames as well.
usually jenkins windows installs run as a service account. In linux different accounts have different permissions and env variables and stuff, so that often is the cause cli but not jenkins works.