473,325 Members | 2,860 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,325 software developers and data experts.

How to retrieve a computer comment over the network?

Hi,

I'm currently successfully retrieving the list of computers connected on the
differents domains of our network via the
System.DirectoryServices.DirectoryEntry class.

What I'd like to have in addition of the computers name is their comment
(just like when you browse over your network places on XP).

The only way I found is querying the description field of
win32_computersystem (WMI). Unfortunatly, I need to use an authenticated
user/password (for the System.Management.ManagementScope constructor) for
each computers to retrieve the comment (except for my own computer).

Does anybody know if (and how) it is possible to retrieve this comment (when
available), please?

Best regards,
Vangelis
Nov 16 '05 #1
6 3755
You should store the computers "Description" property in the AD.

Willy.

"Vangelis" <sp********@ip.lu> wrote in message news:40******@news.vo.lu...
Hi,

I'm currently successfully retrieving the list of computers connected on
the
differents domains of our network via the
System.DirectoryServices.DirectoryEntry class.

What I'd like to have in addition of the computers name is their comment
(just like when you browse over your network places on XP).

The only way I found is querying the description field of
win32_computersystem (WMI). Unfortunatly, I need to use an authenticated
user/password (for the System.Management.ManagementScope constructor) for
each computers to retrieve the comment (except for my own computer).

Does anybody know if (and how) it is possible to retrieve this comment
(when
available), please?

Best regards,
Vangelis

Nov 16 '05 #2
You should store the computers "Description" property in the AD.

Willy.

"Vangelis" <sp********@ip.lu> wrote in message news:40******@news.vo.lu...
Hi,

I'm currently successfully retrieving the list of computers connected on
the
differents domains of our network via the
System.DirectoryServices.DirectoryEntry class.

What I'd like to have in addition of the computers name is their comment
(just like when you browse over your network places on XP).

The only way I found is querying the description field of
win32_computersystem (WMI). Unfortunatly, I need to use an authenticated
user/password (for the System.Management.ManagementScope constructor) for
each computers to retrieve the comment (except for my own computer).

Does anybody know if (and how) it is possible to retrieve this comment
(when
available), please?

Best regards,
Vangelis

Nov 16 '05 #3
Hi Willy,

Thanks for the advice. Unfortunatly, the description returned (set by the
system administrators I presume) does not correspond at all (misspelled user
name and S/N) to the one users can set via the "system properties/computer
name/computer description" control panel (and which is returned by the "my
network places" explorer).

Any idea of how explorer retrieves this information?
Vangelis

========================================

"Willy Denoyette [MVP]" <wi*************@pandora.be> wrote in message
news:ee**************@TK2MSFTNGP11.phx.gbl...
You should store the computers "Description" property in the AD.

Willy.

Nov 16 '05 #4
Hi Willy,

Thanks for the advice. Unfortunatly, the description returned (set by the
system administrators I presume) does not correspond at all (misspelled user
name and S/N) to the one users can set via the "system properties/computer
name/computer description" control panel (and which is returned by the "my
network places" explorer).

Any idea of how explorer retrieves this information?
Vangelis

========================================

"Willy Denoyette [MVP]" <wi*************@pandora.be> wrote in message
news:ee**************@TK2MSFTNGP11.phx.gbl...
You should store the computers "Description" property in the AD.

Willy.

Nov 16 '05 #5

"Vangelis" <sp********@ip.lu> wrote in message news:40********@news.vo.lu...
Hi Willy,

Thanks for the advice. Unfortunatly, the description returned (set by the
system administrators I presume) does not correspond at all (misspelled
user
name and S/N) to the one users can set via the "system properties/computer
name/computer description" control panel (and which is returned by the "my
network places" explorer).

Any idea of how explorer retrieves this information?

Yes, by calling the NetServerEnum API (netapi32.dll), sure you could do the
same using PInvoke, just keep in mind that this API (and another number of
Netxxxx) requires Netbios to be enabled on all Servers/Workstations for this
to work.

Willy.
Nov 16 '05 #6

"Vangelis" <sp********@ip.lu> wrote in message news:40********@news.vo.lu...
Hi Willy,

Thanks for the advice. Unfortunatly, the description returned (set by the
system administrators I presume) does not correspond at all (misspelled
user
name and S/N) to the one users can set via the "system properties/computer
name/computer description" control panel (and which is returned by the "my
network places" explorer).

Any idea of how explorer retrieves this information?

Yes, by calling the NetServerEnum API (netapi32.dll), sure you could do the
same using PInvoke, just keep in mind that this API (and another number of
Netxxxx) requires Netbios to be enabled on all Servers/Workstations for this
to work.

Willy.
Nov 16 '05 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

79
by: Klaus Bonadt | last post by:
In order to protect software from being copied without licence, I would like to use something like a key, which fits only to the current system. The serial number of the CPU or the current...
3
by: Vangelis | last post by:
Hi, I'm currently successfully retrieving the list of computers connected on the differents domains of our network via the System.DirectoryServices.DirectoryEntry class. What I'd like to have...
5
by: Vangelis | last post by:
Hi, I'm currently successfully retrieving the list of computers connected on the differents domains of our network via the System.DirectoryServices.DirectoryEntry class. What I'd like to have...
2
by: Dan | last post by:
All, I need to be able to retrieve a list of Domains that are part of our network: similar to the list you get when you log onto a Windows station that is part of a domain. I assume that I can...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.