wntRunAsUser Error 638
Question:
I get this error message when executing line
ret = wntRunAsUser("SERVER", user, pswd, 4, 0)
Error Message:
638: This logon type has not been granted to the specified user
Answer:
The value of "4" for the login-type specifies that you want the user to use a "batch" login session.
The error message indicates that the user account specified in the variable "user" does not have the batch
logon privilege. You need to either grant the batch logon privilege to the user or change the login type to
another value such as 2 [interactive logon].
Article ID: W17074
File Created: 2007:07:03:14:28:06
Last Updated: 2007:07:03:14:28:06