Hi all

I'm new to this board, and kind of new to kix, and I need imput/help/source code on the matter mentioned below:

I want to be able to use AD users and computers to get a listing of who is logged on to what PC at any given time.
My supporters need this info to be able to use VNC in supportmatters without having to use 5 minuts each time to giude the user to the "computername info" [Smile]

The idea is to add the @userid value to the workstation description whenever a user logs on.

So basicly I need to do a writevalue using the @userid variable.

I tried this:

Writevalue ("HKEY_LOCAL_MACHINE\system\currentcontrolset\services\lanmanserver\parameters", "srvcomment", "@username", "REG_SZ")

- Does not work. I get a "unknown:username" entry in the regfile. And the computers describtion does not change at all.

Any ideas/input would be great.

Thanks in advance