- 將下面的程式碼複製到剪貼簿,將其存檔成 GetWebAnonymousPassword.vbs
- 開啟 [命令提示字元],切換到上個步驟存檔的目錄,輸入 GetWebAnonymousPassword.vbs,並按下 Enter,即可查得密碼
---程式碼開始---
Set objIIS = GetObject ("IIS://localhost/w3svc")
strOutput = ""
strOutput = strOutput & "IUSR 帳號: " & objIIS.Get("AnonymousUserName") & vbCrLf
strOutput = strOutput & "IUSR 密碼: " & objIIS.Get("AnonymousUserPass") & vbCrLf & vbCrLf
strOutput = strOutput & "IWAM 帳號: " & objIIS.Get("WAMUserName") & vbCrLf
strOutput = strOutput & "IWAM 密碼: " & objIIS.Get("WAMUserPass")
Set IIsObject = Nothing
WScript.Echo strOutput
---程式碼結束---
沒有留言:
張貼留言