Solved

Computer Information on Desktop

Posted on 2013-05-28
3
307 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

Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

Join & Write a Comment

Preface Having the need * to contact many different companies with different infrastructures * do remote maintenance in their network required us to implement a more flexible routing solution. As RAS, PPTP, L2TP and VPN Client connections are no…
The way I use Experts Exchange to assist me in analyzing and diagnosing a problem is I first enter a Verbose Question at Experts Exchange like: Office 2007 will hang when opening and saving files I then launch WordPad (any text editor will do) an…
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…
Windows 8 comes with a dramatically different user interface known as Metro. Notably missing from the new interface is a Start button and Start Menu. Many users do not like it, much preferring the interface of earlier versions — Windows 7, Windows X…

758 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

17 Experts available now in Live!

Get 1:1 Help Now