此問題發生在 XP SP3 和 Win7 SP1 上。此服務配置為使用服務帳戶作為服務登入來運作。當我手動輸入密碼時,它被接受並被授予登入作為服務權限。然後,一旦電腦重新啟動,由於未儲存密碼,該服務不會啟動。
下面是錯誤
Event ID 7041
service was unable to log on as contoso\$serviceaccount with the currently configured password due to the following error:
Logon failure: the user has not been granted the requested logon type at this computer.
This service account does not have the required user right "Log on as a service."
答案1
我的問題是,我不知道為什麼,作為在網域層級定義的服務登錄,該服務在每次重新啟動後都會踩到該服務。我將網域服務帳戶新增至將登入設定為服務的網域群組原則中,執行 gpupdate /force 並能夠啟動該服務。
答案2
你需要授予該帳戶「以服務身分登入」權限。
(在您的網域控制站上)