Get client computer name and client user name

SecureMeters
SecureMeters used Ask the Experts™
on
hello,
      I'm new inscripting field.i have facing a problem ,I had a web site running with HTML.When i  run a Web page i got a error  in Usre Nme and Computer Name script.
 Error is  " Autometion Server Can;t create object"

I;m search lot on net but i didn;t find any solution for this problem.  Please help me out!!
I had used mention script for Geting User Anme and Comp. Name.
"Computer Name:
<input name="Computer Name" type="text" readonly="readonly">           
               <script type="text/javascript" language="javascript">
                  var ax = new ActiveXObject("WScript.Network");
                  //document.write(ax.UserName + '<br />');
                  document.getElementById("User Name").value = ax.UserName;

                  </script>
            <br>
            
                  <script type="text/javascript" language="javascript">
                  var ax = new ActiveXObject("WScript.Network");
                  //alert(ax.ComputerName);
                  document.getElementById("Computer Name").value = ax.ComputerName;
                  //alert(document.getElementById("txtUsrName").value);
                  //document.write(ax.ComputerName + '<br />');
                  
            </script>
"
Please help me!!!!!!
 
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®

Commented:
Under IE options, security tab, try to add your site into "trusted sites".

Author

Commented:
Yes! it is a solution but, i have 3000 clients and managment is not gave me approval to do this so i try to solve by scripting or any other option...

Please!!  
Commented:
Then you will need a digital certificate for your website or something like this.

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial