WinBatch Tech Support Home

Database Search

If you can't find the information using the categories below, post a question over in our WinBatch Tech Support Forum.

TechHome

Terminal Server

Can't find the information you are looking for here? Then leave a message over on our WinBatch Tech Support Forum.

wtsEnumProcesses Error 107

 Keywords: wtsEnumProcesses Error 107 

Question:

I am getting WIL extender Error: 107 : Windows Terminal Server Extender : Unable to enumerate processes". On line
aProcessArray = wtsEnumProcesses ("").
WinBatch 32 2008C.
WIL version: 6.08chc.
If I click on the pushbutton "more error info" it opens another dialog box with this message:
6A6 "WTSEnumerateProcessesAX() : WWWTS_EnumerateProcesses()"
I think this problem is dependent from the startup state of Windows; then I think if there is a mode to test the end of the startup Windows process is possible to turn around the problem, but I think is interesting to solve the problem.

Answer:

The wtsEnabled() function returns information about whether or not Terminal Services or the TS client DLLs is/are installed on the local system. However, it is not capable of telling whether or not the Terminal Services service itself has finished starting and initializing itself. The display name for this service varies across a couple of different versions of Windows, but on Vista & newer, its name is "Remote Desktop Services" and the internal key name for the service is always "TermService".

You might need to make use of the NT extender's wntSvcStatus() function to verify that the service is in the "running" state before attempting to make any wts*() function calls in the WTS extender.

Otherwise, you can use ErrorMode to supress ther error and retries the operation, to work around the problem.


Article ID:   W17607
Filename:   wtsEnumProcesses Error 107.txt
File Created: 2010:10:18:12:11:54
Last Updated: 2010:10:18:12:11:54