check if user has Admin rights
I setup this custom inventory rule to detect if the user logged in has Administrator access. However it does not work because the agent runs as the SYSTEM account. Is there a way to modify this so it picks up the logged in user.
ShellCommandTextReturn( powershell "([Security.Principal.WindowsIdentity]::GetCurrent().Groups.IsWellKnown('BuiltinAdministratorsSid') -eq $true)")