Hi frnds,
I ve been given a task to write a vbscript to get a server address (to be used in SCCM).I tried working the script but im facing difficulty.
Please Help


Help will b awesome
0 Comments   [ + ] Show Comments

Comments

Please log in to comment

Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.

Answers

0
The IP address?

What have you tried so far?

Pudsey
Answered 03/22/2010 by: Pudsey
Senior Yellow Belt

Please log in to comment
0
No. not the IP address.The name of the server.Suppose u r running a server on vitual machine and one of the server is SCCM and another is jst a client.Then the script should get me the name of the server running.I tried for the script that gives me the server addr on entering the name of the computer.But that is not required.
Answered 03/22/2010 by: Devil
Senior Yellow Belt

Please log in to comment
0
Sorry I'm not sure exactly what you are trying to achieve here…However if you are just looking to get the name of the machine running your script you could try:


Set objNetwork = CreateObject("WScript.Network")
strPCName = objNetwork.ComputerName
wscript.echo strPCName


Hope this helps

Puds
Answered 03/22/2010 by: Pudsey
Senior Yellow Belt

Please log in to comment
0
It's not VBS but have you seen this?
Answered 03/22/2010 by: VBScab
Red Belt

Please log in to comment
Answer this question or Comment on this question for clarity