The user has not been granted the requested logon type at this machine
Yes but which type is that?
Check the logon type enum in the error message, conveniently mentioned as an int rather than a description:
Logon Type: 4
and cross reference with the table here: Win32_LogonSession Class (Windows)
Check the logon type enum in the error message, conveniently mentioned as an int rather than a description:
Logon Type: 4
and cross reference with the table here: Win32_LogonSession Class (Windows)