?
Solved

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

Posted on 2008-11-12
2
Medium Priority
?
377 Views
Last Modified: 2012-08-13
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?
0
Comment
Question by:Rob4077
2 Comments
 
LVL 8

Accepted Solution

by:
mikainz earned 2000 total points
ID: 22938456
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
 

Author Comment

by:Rob4077
ID: 22939190
Thank you very much. That appears to do the trick!
0

Featured Post

Prep for the ITIL® Foundation Certification Exam

December’s Course of the Month is now available! Enroll to learn ITIL® Foundation best practices for delivering IT services effectively and efficiently.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Traditionally, the method to display pictures in Access forms and reports is to first download them from URLs to a folder, record the path in a table and then let the form or report pull the pictures from that folder. But why not let Windows retr…
Microsoft Access has a limit of 255 columns in a single table; SQL Server allows tables with over 255 columns, but reading that data is not necessarily simple.  The final solution for this task involved creating a custom text parser and then reading…
With Microsoft Access, learn how to start a database in different ways and produce different start-up actions allowing you to use a single database to perform multiple tasks. Specify a start-up form through options: Specify an Autoexec macro: Us…
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…

864 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question