
October 4th, 2005, 01:38 PM
|
|
Contributing User
|
|
Join Date: Nov 2004
Posts: 93
Time spent in forums: 12 h 44 m 50 sec
Reputation Power: 5
|
|
|
This script works on Win2k server but not 2003 Server.... WHY?
I have crafted the below script (actually I used a script from another person and added my own stuff to it). It goes out and checks for the existance of a database and reports back to Big Brother what it finds. It works GREAT on Windows Server 2k but spins errors when I run it on Windows 2003 Server.... Any ideas?
Please see attached txt file for code.
When run on the 2003 server it claims to have an error on line 229 which is clearly not the point of difficulty.
Line 229
Code:
SET counterCollection = GETOBJECT("winmgmts:" & strCollection & "=" & strInstance)
|