Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Running vbscript from server

Status
Not open for further replies.

lauraSatellite

Technical User
Jul 22, 2004
35
IE
I have a script that im using to collect information on clients and/or servers on an active directory setup.
when i run the script from a client machine it works fine, when i run from a server it doesnt work.
any ideas?
 
where/how does it fail?
do you have On Error Resume Next in the script? if so take it out and see where it bombs out.
do you have any logging in the script? can you tell if it is actually started and how far it gets?
is WSH installed on the servers?
do you need WMI for the script to work?
 
mrmovie
the script should create a file and write information to it. this file isnt created when i run on the server. i do need wmi for the script to work, does this pose a problem for the server?
 
hmm i cant recall if all servers have WMI components on them, i think it depends on what OS is on them. I am sure you can check by looking to see if the WMI process is running on it.
saying that the creation of a text file shouldnt prove to a problem as this will be using WSH FSO i guess.
I would start with some graphical debugging.
Start with Wscript.Echo's during your script. You can have one right at the start just to show that your script has actually been started.
you will also want to check what version of WSH is on the server as well i would think.
 
Check to see if WMI is installed ... Found the following..

Verify that Windows Management Instrumentation (WMI) is installed
When you plan to install .NET Framework applications that access system management information, you must install Windows Management Instrumentation (WMI). This component is installed as part of the core operating system on Windows XP, Windows 2000, and Windows Millennium Edition. To verify that WMI is installed, confirm that you have the %SystemRoot%\System32\WBEM\ folder.
To download the latest version of the WMI, visit the following Microsoft Web site:

HTH
Dougc
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top