Get information of Servers running on remote windows machine

5 pts.
Tags:
Network administration
Remote server administration
Remote server management
Hi everyone, I want to get the information of servers like IIS, Windows Apache server..etc. which are running on remote windows machine. Further i want to know the .NET applications and web-services hosted on these servers. I knew, there are some WMI classes; But dont know exactly which will be helpfull.. Please let me know, if there is any other way to get this info.. Thank You in advance...
ASKED: April 2, 2009  7:11 AM
UPDATED: April 4, 2009  4:40 PM

Answer Wiki

Thanks. We'll let you know when a new response is added.

Save the following as VBS and change the dot in <b>strComputer = “.”</b> to the remote server’s name.
Obvioulsy you need to be an admin on that server to get this info.

<pre>Set objFSO = CreateObject(“Scripting.FileSystemObject”)
Set objTextFile = objFSO.CreateTextFile(“c:\software.tsv”, True)
strComputer = “.”
Set objWMIService = GetObject(“winmgmts:” _
& “{impersonationLevel=impersonate}!” & strComputer & “\root\cimv2″)
Set colSoftware = objWMIService.ExecQuery _
(“Select * from Win32_Product”)
objTextFile.WriteLine “Caption” & vbtab & _
“Description” & vbtab & “Identifying Number” & vbtab & _
“Install Date” & vbtab & “Install Location” & vbtab & _
“Install State” & vbtab & “Name” & vbtab & _
“Package Cache” & vbtab & “SKU Number” & vbtab & “Vendor” & vbtab _
& “Version”
For Each objSoftware in colSoftware
objTextFile.WriteLine objSoftware.Caption & vbtab & _
objSoftware.Description & vbtab & _
objSoftware.IdentifyingNumber & vbtab & _
objSoftware.InstallDate2 & vbtab & _
objSoftware.InstallLocation & vbtab & _
objSoftware.InstallState & vbtab & _
objSoftware.Name & vbtab & _
objSoftware.PackageCache & vbtab & _
objSoftware.SKUNumber & vbtab & _
objSoftware.Vendor & vbtab & _
objSoftware.Version
Next
objTextFile.Close
</pre>

Discuss This Question:  

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Thanks! We'll email you when relevant content is added and updated.

Following