Solved

Alter Script

Posted on 2013-01-17
6
238 Views
Last Modified: 2013-03-19
Hey,

How do I edit the attached script to read from a text file of servers to query?

At the moment it's run on a instance of per server basis (a pop up box appears and the server name is entered). We have a plethora of servers that this needs to be run on.

All credit for this script goes to

 Patrick Ogenstad (email redacted by aikimark -- ZA)
0
Comment
Question by:MattyS82
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
6 Comments
 
LVL 1

Author Comment

by:MattyS82
ID: 38790468
Script that I would like some advice on how to edit.

Instead of reading per server, I would like it to read from a list of server names in  a text file.
sydi-server.vbs
0
 
LVL 65

Expert Comment

by:RobSampson
ID: 38795352
Hi, I've added an argument of -i for the input file.  I'm not sure I've made that correct, but we'll see how it goes.  It should work as
-i:Computers.txt

with Computers.txt being in the same folder, but I haven't tested it.

Regards,

Rob.
sydi-server.vbs
0
 
LVL 1

Author Comment

by:MattyS82
ID: 38799153
Aikimark,

Sorry, my bad.
0
 
LVL 1

Author Comment

by:MattyS82
ID: 38799163
RobSampson

Thanks but that didn't work. Comes up with an error --The remote server machine does not exist.
0
 
LVL 65

Accepted Solution

by:
RobSampson earned 500 total points
ID: 38804096
Hi MattyS82,

I have added additional error checking to continue scanning other machines if one cannot be connected to.  This won't solve your connectivity problem with that particular machine however.  When you get "The remote server machine does not exist." this means that it is either offline, the firewall is blocking it, there are WMI issues, or access may be denied.

This is the command I ran it with:
cscript.exe sydi-server.vbs -ws -rk -i"servers.txt"

Regards,

Rob.
sydi-server.vbs
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

In this article we want to have a look at the directory attributes which are used by Microsoft to store the so called Security Identifiers (SID). These SIDs plays an important role in delegating and granting permissions and in authentication of trus…
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
In this video we outline the Physical Segments view of NetCrunch network monitor. By following this brief how-to video, you will be able to learn how NetCrunch visualizes your network, how granular is the information collected, as well as where to f…
Monitoring a network: why having a policy is the best policy? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the enormous benefits of having a policy-based approach when monitoring medium and large networks. Software utilized in this v…

623 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