rudolfninja Absent Member.
Absent Member.
1340 views

Sessions created by Novell Zenworks

Hi Experts,

One of our customers uses Novell Zenworks 11 software. I noticed that when the user is logged in and Zenworks service starts, it uses a randomly generated username to start the service. As a result WTSEnumerateSessions function recognizes this service user as an interactive session and sometimes this session has WTSActive status. It's prevent to get correct active session of a currently logged on user.
Could anyone please explain me a mechanism Novell Zenworks software uses for interactions with sessions. And how can I detect session, created by Zenworks?

Here is the table with outputs of WTSEnumerateSessions and WTSEnumerateSessionsEx functions from the same machine and the same logged on user with and without Zenworks.
[table="width: 500"]

With Zenworks installed
Without Zenworks installed

[tr]
[td] #### WTSEnumerateSessions ####

Session[0] ID: 0
Station name: Services
State: WTSDisconnected(4)

Session[1] ID: 1
Station name: Console
State: WTSConnected(1)

Session[2] ID: 2
Station name: RDP-Tcp#8
State: WTSActive(0)

Session[3] ID: 65536
Station name: RDP-Tcp
State: WTSListen(6)

#### WTSEnumerateSessionsEx ####

Session[0] ID: 0
Domain name: NULL
Farm name: NULL
Host name: NULL
Session name: Services
User name: NULL
State: WTSDisconnected(4)

Session[1] ID: 1
Domain name: NULL
Farm name: NULL
Host name: NULL
Session name: Console
User name: NULL
State: WTSConnected(1)

Session[2] ID: 2
Domain name: ALPHA
Farm name: NULL
Host name: NULL
Session name: RDP-Tcp#8
User name: chris
State: WTSActive(0)[/td]
[td] #### WTSEnumerateSessions ####

Session[0] ID: 0
Station name: Services
State: WTSDisconnected(4)

Session[1] ID: 1
Station name: Console
State: WTSActive(0)

Session[3] ID: 65536
Station name: RDP-Tcp
State: WTSListen(6)

#### WTSEnumerateSessionsEx ####

Session[0] ID: 0
Domain name: NULL
Farm name: NULL
Host name: NULL
Session name: Services
User name: NULL
State: WTSDisconnected(4)

Session[1] ID: 1
Domain name: Alpha
Farm name: NULL
Host name: NULL
Session name: Console
User name: chris
State: WTSActive(0)[/td]
[/tr]
[/table]

Thanks in advance.
Labels (1)
0 Likes
2 Replies
Knowledge Partner
Knowledge Partner

Re: Sessions created by Novell Zenworks

Rudolfninja wrote:
> One of our customers uses Novell Zenworks 11 software. I noticed that
> when the user is logged in and Zenworks service starts, it uses a
> randomly generated username to start the service.


That is the session used by the "Dynamic local user". Please ask in
zenworks.cnfiguration-management.Bundles.Windows

- Anders


0 Likes
rudolfninja Absent Member.
Absent Member.

Re: Sessions created by Novell Zenworks

AndersG;2446111 wrote:


That is the session used by the "Dynamic local user". Please ask in
zenworks.cnfiguration-management.Bundles.Windows

- Anders


Thanks for the reply. I answered my question in corresponding forum.
0 Likes
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.