|
Hi Mike,
Mike Ramsay wrote: Is the app scripted to ignore IPs from which there is no response?
No; I guess I should add a bit of error checking for this case.
Mike, can you please write me (dmitrykhudorozhkov@yahoo.com) with your e-mail so I can send you the fixed version? I hope to have it in several hours.
Best regards,
Dmitry.
Listen up! "Teamwork" means staying out of my way! (Seifer, Final Fantasy 8).
|
|
|
|
|
Certainly. I will email you at once.
Your assistance is greatly appreciate, you have a fantastic app here!
|
|
|
|
|
Hi,
I had tried your script. On my local machine it worked fine, but when i tried to run it on a remote machine, it fails. I had used the 'wmi_administrator.htm' to enter user name, password and domain name.
Is there anything else I need to input? Or Is there anything that I have to configure on the remote machine?
Please help me
|
|
|
|
|
|
Hi!
Really, this is because current script doesn't allow to specify aan alternate credentials. Soon I'll present a new version of script that fixes it, don't worry )
And, if it doesn't bother you, rate the article please
Best regards,
- Dmitry.
-- modified at 22:40 Friday 6th July, 2007
-------------------------
Listen up! Teamwork means staying out of my way! (Seifer, Final Fantasy 8).
|
|
|
|
|
When I run the script, I get the 'result-127-0-0-1.xml' file after a couple of seconds but I get no other responce. The file shows 0 length for a while and then goes to 1k. The 'result-127-0-0-1.xml' file is basically empty except for a period.
I'm running it on an XP Pro SP2 machine. Am I doing something wrong?
From looking at the code, I think this will be a great piece of software if I can get it to work.
Thank you,
Bill Reed
|
|
|
|
|
OK. I figured it out.
A section of the code was going out and getting User Account Info.
Since our network node covers all of North America it was taking forever to complete and eventually responded with thousands of User Account returns. I just didn't wait the hours it took for it to do that.
I commented out the call for that routine and, for me, the program now works great.
|
|
|
|
|
WOW, I didn't even have a dream this script will be in something more that a small network
I should, probably, incorporate some kind of timeout for such situations.
Best regards,
- Dmitry.
-------------------------
Don't worry, be happy )
|
|
|
|
|
Well, my use is only for about a hundred out of all those PC's and I'll probably get yelled at for running your script against that whole section of the network. :>)
I don't think a timeout fix would be the answer. It's just that there are so many PC's on our network that it took the script a long time to work its way through all that it found. I'm new here but it's my understanding that there are several hundred thousand PC's in our entire global system and I only hit one small piece of it.
FYI I'm in the process of trying to incorporate your script into a web page on our intranet and having it dump the gathered info into an Access database instead of individual text files.
From there I should be able to generate reports for hardware and software license tracking. Your script doesn't seem to generate license or serial number info for the installed software but I know it's available and can be gathered. I'll figure that out after I get what I already have working.
Thank you for a great piece of software.
Bill Reed
|
|
|
|
|
Hi,
Can I run this script, or just a shorter version of it on a asp page?
Perhaps with parameters that enable spesific tests.
Dawie
|
|
|
|
|
Absolutely, but only if server that contains the script is in the "trusted" zone for the client.
Next release of script (due to March 6th) will contain a sample web page with switches, fields, etc.
-------------------------
Don't worry, be happy )
|
|
|
|
|
Thanks, that will help me a lot for a start.
I've got a web application thats usullay being used on a LAN, but in some places it is being accessed over the internet.
I've got a requirement that the user logon & password is not enough. Because you can give your password to a friend. I need to also log the actual pc that the user used to do his transactions.
So all I need is the ASP page to get the MAC address and send it with the transaction.
Thanks again for your prompt reply.
Dawie.
|
|
|
|
|
Hello,
for the mass storage device type "win32_diskdrive" a new field is available.
Since WinXP the field "Signature" was added. This field contains the HD Serial Number (do not confuse this with the Volume ID of the partitions). It's the real hardware vendor serial number.
for more informations:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/wmisdk/wmi/win32_diskdrive.asp
bye Saxony
|
|
|
|
|
The script looks very useful, thank you! The xslt stylesheet however was not included as indicated in the article. It's easy enough to produce one, I just thought you would like to know.
-Joel
|
|
|
|
|
Oops! Thanks for posting - I've just missed the sheet when composing a new release.
Stylesheet will be uploaded soon, sorry for inconvenience.
Don't worry, be happy )
|
|
|
|
|
Source code updated - now with stylesheet.
Don't worry, be happy )
|
|
|
|
|
I've added this function to add information I need about services and starting parameters. Maybe someone else is interested...
function gatherServicesInfo()
{
var fc = new Enumerator(runQuery("Win32_Service"));
var xmlDoc = null;
var colItem = null;
var numItems = 0;
for ( ; !fc.atEnd(); fc.moveNext())
{
numItems++;
}
if(numItems > 0)
{
xmlDoc = new ActiveXObject("Msxml2.DOMDocument");
colItem = xmlDoc.createElement("Item");
xmlAttachChildToParent(xmlDoc, colItem);
xmlSetAttribute(xmlDoc, colItem, "name", "Service");
var i = 1;
for (fc.moveFirst(); !fc.atEnd(); fc.moveNext())
{
var Obj = fc.item();
var root, num = "";
if(colItem != null)
{
root = xmlDoc.createElement("Element");
num = " " + String(i);
}
else
{
root = xmlDoc.createElement("Item");
}
xmlSetAttribute(xmlDoc, root, "name", "Service " + num);
if(colItem != null)
{
xmlAttachChildToParent(colItem, root);
}
else
{
xmlAttachChildToParent(xmlDoc, root);
}
xmlCreateChildTextNodeWithAttribute( xmlDoc, root, "Name", Obj.Name, "name", "Service name");
xmlCreateChildTextNodeWithAttribute( xmlDoc, root, "Description",Obj.Description, "name", "Description");
xmlCreateChildTextNodeWithAttribute( xmlDoc, root, "PathName", Obj.PathName, "name", "Start Path");
xmlCreateChildTextNodeWithAttribute( xmlDoc, root, "ServiceType",Obj.ServiceType, "name", "Service type");
xmlCreateChildTextNodeWithAttribute( xmlDoc, root, "State", Obj.State, "name", "Actual state");
xmlCreateChildTextNodeWithAttribute( xmlDoc, root, "Status", Obj.Status, "name", "Actual status");
xmlCreateChildTextNodeWithAttribute( xmlDoc, root, "StartMode", Obj.StartMode, "name", "Start mode");
xmlCreateChildTextNodeWithAttribute( xmlDoc, root, "StartName", Obj.StartName, "name", "Start name");
i++;
}
}
return xmlDoc;
}
|
|
|
|
|
My first task when creating the script was to create a set of WMI classes useful for periodically (within several days) taking a snapshot of a system(s). That is why, for example, Win32_Fan was not included in Cooling Devices section.
Win32_Services, like any other, rather dynamic, class is useful for constant (several minutes interval) PC health monitoring.
Don't worry, be happy )
|
|
|
|
|
Also mine, but I have a filter that trap and exclude 'normal' services and alerts for 'strange' ones.
Also I'me building a console that (via MSMQ) receive a dump at every startup and verify data with the previous one to identify changes and problems (And also newly installed services). I'll add to this list also the list of running process (like in task manager) to be informed about network evolution..
Bye.
|
|
|
|
|
Is there any way to give domain, user and password for remote computers ?
I'm interested in collecting information from PC into the domain and I have a administrative password for all.
Now on line 250 I got an access error..
TIA.
|
|
|
|
|
Hi Davide,
there is a way, please look at Gotchas\Remote Connections section of the article. There is the code; however, it wasn't included into the script 'cause I couldn't test it.
Dmitry.
|
|
|
|
|
|
Very strange. To date, I've noticed the only bug: when running wmiadmin from a directory, whose name contains spaces (for example, C:\Documents and Settings\Dima\) script sometimes fails to create the output file. I guess it is a bug in older versions of Windows Scripting Host.
Anyway, if you wish to supress all output, you can use 'silent' switch. Running
'wmiadmin.js silent xxx.xxx.xxx.xxx'
just creates the file.
|
|
|
|
|
You cannot use path or filename with spaces.... just add the line below..
var Path = WScript.ScriptFullName;
Path = Path.substring(0, Path.lastIndexOf("\\"));
Path.replace( " ", "%20") // <<< Add this
Hope this help.
|
|
|
|
|
Hello;
How can i backup drivers using WMI ?
can someone give me an example in c#
thank's in advance.
|
|
|
|
|