經過 Adsutil.vbs 獲取或設置 IUSR 和 IWAM 的賬號密碼

獲取 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" 

設置 IWAM 賬戶密碼
cscript.exe adsutil.vbs set w3svc/wamuserpass "password"
注:在獲取密碼的時候若是現實的結果密碼爲「******」,那麼應當修改Adsutil.vbs文件
將    
        If (Attribute = True) Then
        IsSecureProperty = True
中的
        IsSecureProperty = True
改成
        IsSecureProperty = False
關於 IWAM 賬號的同步可察看另一篇Blog: IIS賬號同步
相關文章
相關標籤/搜索