How do I extract the value of Computer Description for use in a variable?

I was hoping to use Environ("Username") to extract a name that I could use in VBA generated messages but the value is not consistently used to name the user accross all computers on the network. However the value that is of use is that of Computer Descriptions (Control Panel>System in the Computer Name tab). I am therefore looking for a way of either changing the value of Environ("Username")  (without affecting the user's network access) or how do I read in the value of Computer Description into my VBA? Can anyone help me?
Rob4077Asked:
Who is Participating?
 
mikainzConnect With a Mentor Commented:
computer description is stored in the following registry key
HKLM\SYSTEM\CurrentControlSet\Services\lanmanserver\parameters\srvcomment
simpelst way to read the registry is using the windows scription host see http://vba-corner.livejournal.com/3054.html
hth
0
 
Rob4077Author Commented:
Thank you very much. That appears to do the trick!
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.