Solved

Computer Information on Desktop

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

3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

Question has a verified solution.

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

Suggested Solutions

When you upgrade from Windows 8 to 8.1 or to Windows 10 or if you are like me you are on the Insider Program you may find yourself with many 450MB recovery partitions.  With a traditional disk that may not be a problem but with relatively smaller SS…
It’s been over a month into 2017, and there is already a sophisticated Gmail phishing email making it rounds. New techniques and tactics, have given hackers a way to authentically impersonate your contacts.How it Works The attack works by targeti…
In this video, we discuss why the need for additional vertical screen space has become more important in recent years, namely, due to the transition in the marketplace of 4x3 computer screens to 16x9 and 16x10 screens (so-called widescreen format). …
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…

831 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