#44057 - 2003-08-14 03:11 PM
help needed with "writevalue"
|
Clausm
Lurker
Registered: 2003-08-14
Posts: 2
Loc: Denmark
|
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"
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
|
|
Top
|
|
|
|
Moderator: Jochen, Allen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Arend_, Mart
|
1 registered
(Allen)
and 373 anonymous users online.
|
|
|