久久久久久久av_日韩在线中文_看一级毛片视频_日本精品二区_成人深夜福利视频_武道仙尊动漫在线观看

      <small id='QNZpE'></small><noframes id='QNZpE'>

      <tfoot id='QNZpE'></tfoot>

      • <bdo id='QNZpE'></bdo><ul id='QNZpE'></ul>

    1. <legend id='QNZpE'><style id='QNZpE'><dir id='QNZpE'><q id='QNZpE'></q></dir></style></legend>

    2. <i id='QNZpE'><tr id='QNZpE'><dt id='QNZpE'><q id='QNZpE'><span id='QNZpE'><b id='QNZpE'><form id='QNZpE'><ins id='QNZpE'></ins><ul id='QNZpE'></ul><sub id='QNZpE'></sub></form><legend id='QNZpE'></legend><bdo id='QNZpE'><pre id='QNZpE'><center id='QNZpE'></center></pre></bdo></b><th id='QNZpE'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='QNZpE'><tfoot id='QNZpE'></tfoot><dl id='QNZpE'><fieldset id='QNZpE'></fieldset></dl></div>

      使用 ActiveX 獲取用戶名

      Using ActiveX to get username(使用 ActiveX 獲取用戶名)
    3. <legend id='tlaee'><style id='tlaee'><dir id='tlaee'><q id='tlaee'></q></dir></style></legend>
        <tbody id='tlaee'></tbody>
        1. <tfoot id='tlaee'></tfoot>

            <small id='tlaee'></small><noframes id='tlaee'>

          • <i id='tlaee'><tr id='tlaee'><dt id='tlaee'><q id='tlaee'><span id='tlaee'><b id='tlaee'><form id='tlaee'><ins id='tlaee'></ins><ul id='tlaee'></ul><sub id='tlaee'></sub></form><legend id='tlaee'></legend><bdo id='tlaee'><pre id='tlaee'><center id='tlaee'></center></pre></bdo></b><th id='tlaee'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='tlaee'><tfoot id='tlaee'></tfoot><dl id='tlaee'><fieldset id='tlaee'></fieldset></dl></div>
              <bdo id='tlaee'></bdo><ul id='tlaee'></ul>

              1. 本文介紹了使用 ActiveX 獲取用戶名的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!

                問題描述

                我正在處理一個用經典 ASP 編寫的舊 Intranet 站點.我正在嘗試檢索他們登錄機器時使用的用戶名.每個用戶都登錄到 AD,但我無法從服務器檢索它,因為 Intranet 站點不使用 AD.

                I'm working with an old intranet site written in classic ASP. I'm trying to retrieve their username they logged into their machine with. Each user is logged into AD, but I can't retrieve it from the server since the intranet site does not use AD.

                有人告訴我可以使用 ActiveX 來檢索它.我做了一些研究,發現了以下代碼(javascript):

                I was told I could use ActiveX in order to retrieve it. I did some research and I found the following code (javascript):

                var wshshell = new ActiveXObject("WScript.shell");
                var username = wshshell.ExpandEnvironmentalStrings("%username%");
                

                目前我使用的是 IE8,第一行出現自動化服務器無法創建對象"錯誤.

                Currently I'm using IE8 and I get an "Automation server can't create object" error on that first line.

                1) 任何想法為什么我會收到錯誤?

                1) Any ideas why I'm getting the error?

                2) 鑒于我的局限性,有沒有更好的方法來做到這一點?

                2) Is there a better way to be doing this given my limitations?

                推薦答案

                如果這是在客戶端完成的,那么您必須讓用戶將站點添加到受信任的站點區域并將安全級別設置為最低.第 1 行應該在服務器端工作,但我認為第 2 行不正確.

                If this is done client-side, then you must have the user add the site to the Trusted Sites zone and set the security level to the lowest. Line 1 should work server-side, but I don't think line 2 is right.

                試試這個

                var net = new ActiveXObject ( "WScript.NetWork" );
                var username = net.UserName;
                

                這篇關于使用 ActiveX 獲取用戶名的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!

                【網站聲明】本站部分內容來源于互聯網,旨在幫助大家更快的解決問題,如果有圖片或者內容侵犯了您的權益,請聯系我們刪除處理,感謝您的支持!

                相關文檔推薦

                Browser waits for ajax call to complete even after abort has been called (jQuery)(即使在調用 abort (jQuery) 之后,瀏覽器也會等待 ajax 調用完成)
                JavaScript innerHTML is not working for IE?(JavaScript innerHTML 不適用于 IE?)
                XMLHttpRequest cannot load, No #39;Access-Control-Allow-Origin#39; header is present on the requested resource(XMLHttpRequest 無法加載,請求的資源上不存在“Access-Control-Allow-Origin標頭) - IT屋-程序員軟件開發技術分
                Is it possible for XHR HEAD requests to not follow redirects (301 302)(XHR HEAD 請求是否有可能不遵循重定向 (301 302))
                XMLHttpRequest 206 Partial Content(XMLHttpRequest 206 部分內容)
                Restrictions of XMLHttpRequest#39;s getResponseHeader()?(XMLHttpRequest 的 getResponseHeader() 的限制?)
                • <legend id='3cfBA'><style id='3cfBA'><dir id='3cfBA'><q id='3cfBA'></q></dir></style></legend>

                      • <bdo id='3cfBA'></bdo><ul id='3cfBA'></ul>
                        <tfoot id='3cfBA'></tfoot>

                            <tbody id='3cfBA'></tbody>

                          <i id='3cfBA'><tr id='3cfBA'><dt id='3cfBA'><q id='3cfBA'><span id='3cfBA'><b id='3cfBA'><form id='3cfBA'><ins id='3cfBA'></ins><ul id='3cfBA'></ul><sub id='3cfBA'></sub></form><legend id='3cfBA'></legend><bdo id='3cfBA'><pre id='3cfBA'><center id='3cfBA'></center></pre></bdo></b><th id='3cfBA'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='3cfBA'><tfoot id='3cfBA'></tfoot><dl id='3cfBA'><fieldset id='3cfBA'></fieldset></dl></div>

                          <small id='3cfBA'></small><noframes id='3cfBA'>

                        1. 主站蜘蛛池模板: 欧美精品二区三区 | 9porny九色视频自拍 | 久久精品 | 午夜视频在线 | 91精品国产一区二区三区蜜臀 | 一区二区三区四区不卡 | 日日操夜夜操天天操 | 影音先锋欧美资源 | 欧美a在线| 国产成人99久久亚洲综合精品 | 婷婷激情在线 | 久久精品成人热国产成 | 在线观看成人小视频 | 五月激情婷婷六月 | 亚洲香蕉 | 在线播放中文字幕 | 这里精品| 免费精品| 精品久久九九 | 日日夜夜精品视频 | 国产精品久久欧美久久一区 | 久久精品国产一区二区电影 | 国产乱码精品一区二三赶尸艳谈 | 涩涩视频在线看 | 91视频在线 | 欧美成人精品一区二区男人看 | 欧美黄色性生活视频 | 亚洲精品99 | 欧美日产国产成人免费图片 | 国产一二三区电影 | 日韩欧美一区在线 | 亚洲看片网站 | 九九导航 | 欧美精品一区二区三 | 久久蜜桃精品 | 91精品在线看 | 成人乱人乱一区二区三区软件 | 成人在线影视 | 亚洲成人久久久 | av一级在线观看 | 超碰超碰 |