I have a custom sensor calling a batch that does: echo %username%
In settings, security context is set to "Use Windows credentials of parent device". The parent device windows account is set to: MyUser
I'm expecting to see MyUser as the output of the batch but instead I see the name of the machine where it runs followed by $.
Am I doing something wrong or is it a bug ?