Solved

Computer Information on Desktop

Posted on 2013-05-28
3
309 Views
Last Modified: 2013-05-29
hello everyone.  How to display computer name and IP address on Windows desktop?
0
Comment
Question by:rodrobb
3 Comments
 
LVL 23

Accepted Solution

by:
Thomas Grassi earned 250 total points
ID: 39202178
0
 
LVL 34

Expert Comment

by:Michael-Best
ID: 39202214
0
 
LVL 8

Expert Comment

by:d0ughb0y
ID: 39202247
Try this VBScript:

Set objNIC = GetObject("winmgmts:").InstancesOf("Win32_NetworkAdapterConfiguration")

for Each Interface in objNIC
	if Interface.IPEnabled then
		StrIP = Interface.IPAddress(i)
		Set WshNetwork = Wscript.CreateObject("Wscript.Network")
		CompName = WshNetwork.ComputerName
		MsgBox "Computer Name:" & vbTab & CompName & vbNewLine _
			& "IP Address:" & vbTab & StrIP,4160,"Computer Name & IP"
	End If
Next

Open in new window

0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
LPT Port to USB Printer Windows 7 23 641
Can't Print from Outlook 2003 2 29
Foundation won't redirect my printers 2 32
Windows Server 2012 Data Center Edition 11 89
Many times while working on a computer regardless of any Operating System, lag and crashes seem to creep in, hindering your working speed. Sometimes, it can also cause your work to be lost unexpectedly and as a result, you are unable to meet your de…
This is a little timesaver I have been using for setting up Microsoft Small Business Server (SBS) in the simplest possible way. It may not be appropriate for every customer. However, when you get a situation where the person who owns the server is i…
This video Micro Tutorial explains how to clone a hard drive using a commercial software product for Windows systems called Casper from Future Systems Solutions (FSS). Cloning makes an exact, complete copy of one hard disk drive (HDD) onto another d…
With the advent of Windows 10, Microsoft is pushing a Get Windows 10 icon into the notification area (system tray) of qualifying computers. There are many reasons for wanting to remove this icon. This two-part Experts Exchange video Micro Tutorial s…

919 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

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now