RunWithLogon 1932 WinExec Error
Keywords: RunWithLogon 1932 WinExec Error
Question
For some reason (2001P) When I use run with logon on my PC (Win2k) I get error 1932 the account specified for this service is different than the account specified for the other service. It works fine on a few other win2k pcs I have tested just not mine. Odd....Here is my line of code
RunWithLogon("\\wemart\croot\sdat.exe", "/silent", "", @NORMAL, @NOWAIT, runas_user, runas_domain, runas_pswd, 1)Answer:
Let's see. RunWithLogon is a Windows API that works on conjunction with a service running on your Win2K/XP platform. Hmmm...On my XP machine the service is "Secondary Logon" and it runs under the "LocalSystem" account. The service is running by default. Maybe you have it disabled on your machine?User Reply:
I didn't even notice my runas service wasnt running. It was set for something else, not local system account (I must have been testing something). Thanks.
Article ID: W15141