Forum Moderators: open

Message Too Old, No Replies

Computer Name, Model and Serial Number

Discovering using a button on a form

         

fish_eye

11:42 pm on Sep 14, 2004 (gmt 0)

10+ Year Member



I am trying to write a script to access the Computer Name, Model and Serial Number (etc - basic stuff).

I have been using WMI and VBS stored on a server but in order for these to work I have to download the scripts to the local machine (which is a pain).

Has anyone used JS to access this information (I'm a bit of a newbie when it comes to JS)?

Thanks...

moltar

11:59 pm on Sep 14, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



No, you cannot access this information through javascript, thanks God!

fish_eye

12:14 am on Sep 15, 2004 (gmt 0)

10+ Year Member



thanks God!

Why is that - is this too scary from a privacy point of view?

(It looks like it can be done with asp.net btw - the computername anyway.)

bakedjake

12:18 am on Sep 15, 2004 (gmt 0)

WebmasterWorld Administrator 10+ Year Member Top Contributors Of The Month



is this too scary from a privacy point of view?

Are you kidding?

If you're trying to generate a unique identifier for licensing reasons, there are better and easier ways to do this.

Otherwise, I have no idea what you would want this information for other than malicious purposes.

moltar

12:20 am on Sep 15, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Yes it is. If you could get such information, then you could get tracked precisely and users would not be able to get away from it unless they disable JS.

fish_eye

12:27 am on Sep 15, 2004 (gmt 0)

10+ Year Member



It's actually for use within an intranet (which is probably not relevant).

We want to provide a technician who is replacing an old machine with a new machine with the ability to discover the old asset's details, put this in the html form they have open in the browser and then submit the form to a database.

They then do much the same on the new machine. They bring up the details of the old machine (by accessing the database record) then discover the new machine's details by pressing a button on the form (thus pairing off the machines).

So.... if there's a cleaner way to do this that you know of (we are using asp.net) then I'm all ears.

(We can do it by running a VBScript from the cmd window which calls WMI (W2K and XP) and creates a text file which is then read by the JS within the form but the tech has to physically run the script and we are trying to avoid this step.)

moltar

12:30 am on Sep 15, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



You could probably somehow do it with activex and then make activex pass the values to JS (not sure if this is possible, just making suggestions).

fish_eye

12:31 am on Sep 15, 2004 (gmt 0)

10+ Year Member



The more I think about it..... the more I hope that it cannot be done....

bakedjake

12:43 am on Sep 15, 2004 (gmt 0)

WebmasterWorld Administrator 10+ Year Member Top Contributors Of The Month



YY, I believe dell does it with an ActiveX app.