|
|
Is there a way to save the components you want in the output?
So that each time I use it I don't have to manually uncheck all boxes I don't want the info for?
This would be very useful as a portable application to be run from the command line.
|
|
|
|
|
Once I click to submit the query, the HTML app hangs for about 60 seconds, then returns the following error:
Line 587
Char 7
Error: The RPC server is unavailable.
Code 0
URL file//C:\WMIscript\wmi_admin.hta
There is no line 587 in wmi_admin.hta, and if I'm not mistaken, it is actually referring to wmiadmin.js
Line 587: this._service[ip].Security_.ImpersonationLevel = 3; // == Impersonate
This is where I'm hitting the error.
I figured it was an issue with the RPC service running as NT Authority\Network Service, so I changed the logon for RPC to reflect the same domain admin user I was running the script as. However, once RPC is restarted with the specified user, the error changes from:
The RPC server is unavailable.
to:
Access Denied.
Same line and char and code, however.
I'm a java script newbie, any assistance would be greatly appreciated.
Windows XP Professional SP3, RPC is running, user is a domain admin.
|
|
|
|
|
Hi,
Are you trying to query only your local computer or a range of IPs?
If your local machine only - try to use just 127.0.0.1 with no credentials.
- Dmitry.
Listen up! "Teamwork" means staying out of my way! (Seifer, Final Fantasy 8).
|
|
|
|
|
Thanks for your prompt reply.
I am trying to query a range of IPs, not my local machine.
Edit: I attempted to run a local query with 127.0.0.1, with no credentials, and it errored out at the same character on the same line (587, char 7) with Access Denied.
|
|
|
|
|
Does the Windows Management Instrumentation service run on the network machines (and yours)?
Listen up! "Teamwork" means staying out of my way! (Seifer, Final Fantasy 8).
|
|
|
|
|
Yes, WMI is running on every machine across my domain by default.
|
|
|
|
|
Don't know what to say here.
I'd advise you to try the "WMI Tool":
http://www.bencoleman.co.uk/wmi-query-tool/
and "WMI Tester":
http://www.paessler.com/tools/wmitester
and see if these work for you.
Regards,
Dmitry.
Listen up! "Teamwork" means staying out of my way! (Seifer, Final Fantasy 8).
|
|
|
|
|
Both of the utilities you provided links to returned roughly the same results, either access denied or RPC server unavailable.
At least I know now that it is not the coding of the tools, but a configuration issue on my machine. Thanks again for your help.
|
|
|
|
|
I believe I know what the issue is.
I am trying to scan the DHCP range of my network, but not all of the IPs in the range are in use. So, when the app tries to scan an IP that is not in use, it throws the specified RPC Server Unavailable error.
Is the app scripted to ignore IPs from which there is no response?
I wish I knew java script better, but unfortunately I wouldn't know how to go about scripting it so that it will ignore the unused IPs in the specified range.
If I directly query an IP that I know is currently assigned, it works just fine.
|
|
|
|
|
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 )
|
|
|
|