Local hostname

  • Thread starter Thread starter Squirrel
  • Start date Start date
S

Squirrel

Hi,

My organisation would like to generate a report that
gather all the local computername. I think I can pull out
the data thru registry but do not know which is the
actual key.

Wonder which is they registry key that I can retrieve?

Would appreciate someone can help me
 
How about entering this at the command prompt?

net view

Ray at work
 
Hi,
Thanks for the quick feedback.

However, the solution will display it on the screen.
Cos I would like to capture and consolidate all results
into a file.

Thus would like to retireve it from registry.
Thanks in advance
 
net use > C:\myfile.txt

Bryan
Hi,
Thanks for the quick feedback.

However, the solution will display it on the screen.
Cos I would like to capture and consolidate all results
into a file.

Thus would like to retireve it from registry.
Thanks in advance
 
If you're in a domain environment then you could insert this
line into your logon script:

echo %ComputerName% > \\YourServer\SomeShare\Logs\%ComputerName%.txt

Make sure to create the Logs folder before going ahead with
the script.

After "harvesting" computernames for a week or so, compile
a summary list by typing this at a Command Prompt:

copy \\YourServer\SomeShare\Logs\*.* c:\HostNames.txt
 
Thats a good one.. !! :P
-----Original Message-----
If you're in a domain environment then you could insert this
line into your logon script:

echo %ComputerName% > \\YourServer\SomeShare\Logs\% ComputerName%.txt

Make sure to create the Logs folder before going ahead with
the script.

After "harvesting" computernames for a week or so, compile
a summary list by typing this at a Command Prompt:

copy \\YourServer\SomeShare\Logs\*.* c:\HostNames.txt





.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top