使用Adsutil.vbs來擷取IIS使用者的密碼

來源:互聯網
上載者:User

如何使用 Adsutil.vbs

IIS 提供了名為 Adsutil.vbs 的指令檔,用於擷取或設定 IIS 中繼資料庫中的 IUSR 和 IWAM 帳戶密碼。在 Windows NT 4.0 中,Adsutil.vbs 通常位於 <磁碟機>\WINNT\System32\Inetsrv\Adminsamples 檔案夾中。在 Windows 2000 中,Adsutil.vbs 位於 <磁碟機>\Inetpub\Adminscripts 檔案夾中。

下表列出了 Adsutil.vbs 工具 + 生產力各種功能的文法:

功能 文法
擷取 IUSR 帳戶密碼 cscript.exe adsutil.vbs get w3svc/anonymoususerpass
擷取 IWAM 帳戶密碼 cscript.exe adsutil.vbs get w3svc/wamuserpass
設定 IUSR 帳戶密碼 cscript.exe adsutil.vbs set w3svc/anonymoususerpass "password"
更改 IUSR 帳戶 cscript.exe adsutil.vbs set w3svc/anonymoususername "username"
設定 IWAM 帳戶密碼 cscript.exe adsutil.vbs set w3svc/wamuserpass "password"
更改 IWAM 帳戶 cscript.exe adsutil.vbs set w3svc/WAMusername "username"

注意:在 Windows NT 4.0 中嘗試擷取密碼時,密碼顯示為明文;但在 Windows 2000 中,密碼顯示為星號。若要在 Windows 2000 中也讓密碼顯示為明文,必須修改 Adsutil.vbs,使它顯示明碼。為此,請按照下列步驟操作: 1. 在“記事本”中,開啟 Adsutil.vbs。
2. 在[編輯] 功能表上,單擊“尋找”,鍵入 IsSecureProperty = True,然後單擊“尋找下一個”。
3. 將“IsSecureProperty = True”更改為“IsSecureProperty = False”。
4. 儲存對 Adsutil.vbs 所做的更改,然後關閉“記事本”。

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.