/build/static/layout/Breadcrumb_cap_w.png

Vb Script Required.....URGENT!!!!

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

Answers (4)

Posted by: Pudsey 11 years ago
Senior Yellow Belt
0
The IP address?

What have you tried so far?

Pudsey
Posted by: Devil 11 years ago
Senior Yellow Belt
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.
Posted by: Pudsey 11 years ago
Senior Yellow Belt
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
Posted by: anonymous_9363 11 years ago
Red Belt
0
It's not VBS but have you seen this?
Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.

Don't be a Stranger!

Sign up today to participate, stay informed, earn points and establish a reputation for yourself!

Sign up! or login

View more:

Share

 
This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ