{"id":7826,"date":"2025-01-27T11:11:36","date_gmt":"2025-01-27T11:11:36","guid":{"rendered":"https:\/\/howtogeek.blog\/zh\/?p=7826"},"modified":"2025-01-27T11:11:36","modified_gmt":"2025-01-27T11:11:36","slug":"fixing-server-error-sid-mismatch-628-0x274-a-comprehensive-guide","status":"publish","type":"post","link":"https:\/\/howtogeek.blog\/zh\/fixing-server-error-sid-mismatch-628-0x274-a-comprehensive-guide\/","title":{"rendered":"\u4fee\u5fa9\u4f3a\u670d\u5668\u932f\u8aa4 SID \u4e0d\u7b26 628 (0x274)\uff1a\u7d9c\u5408\u6307\u5357"},"content":{"rendered":"<p>\u9047\u5230 ERROR_SERVER_SID_MISMATCH \u5c0d\u7cfb\u7d71\u7ba1\u7406\u54e1\u4f86\u8aaa\u53ef\u80fd\u662f\u4e00\u500b\u8271\u9245\u7684\u6311\u6230\uff0c\u901a\u5e38\u6703\u5c0e\u81f4\u4ee4\u4eba\u6cae\u55aa\u7684\u5b58\u53d6\u554f\u984c\u3002\u7136\u800c\uff0c\u597d\u6d88\u606f\u662f\u89e3\u6c7a\u9019\u500b\u554f\u984c\u662f\u5b8c\u5168\u53ef\u884c\u7684\u3002\u8acb\u6309\u7167\u6b64\u8a73\u7d30\u6307\u5357\u6062\u5fa9\u4f3a\u670d\u5668\u9032\u7a0b\u7684\u529f\u80fd\u4e26\u91cd\u65b0\u7372\u5f97\u5b58\u53d6\u6b0a\u9650\u3002<\/p>\n<h2 id=\"h-how-can-i-fix-error-server-sid-mismatch\">ERROR_SERVER_SID_MISMATCH\u7684\u6709\u6548\u89e3\u6c7a\u65b9\u6848<\/h2>\n<h3 id=\"h-1-restart-the-server-process-and-check-the-server-process-sid\">1.\u91cd\u65b0\u555f\u52d5\u4f3a\u670d\u5668\u9032\u7a0b\u4e26\u9a57\u8b49\u4f3a\u670d\u5668\u9032\u7a0bSID<\/h3>\n<ol>\n<li>\u4f7f\u7528\u7ba1\u7406\u6b0a\u9650\u555f\u52d5\u547d\u4ee4\u63d0\u793a\u5b57\u5143\u3002<\/li>\n<li>\u57f7\u884c\u6307\u4ee4\u91cd\u555f\u76f8\u95dc\u670d\u52d9\uff1a <code><strong>net stop &lt;service_name&gt; &amp;&amp; net start &lt;service_name&gt;<\/strong><\/code> <img alt=\"\u91cd\u555f\u4f3a\u670d\u5668\u9032\u7a0b\u547d\u4ee4\" class=\"wp-image\" decoding=\"async\" height=\"53\" loading=\"lazy\" src=\"https:\/\/cdn.howtogeek.blog\/wp-content\/uploads\/2025\/01\/net-stop.webp\" title=\"\u91cd\u555f\u4f3a\u670d\u5668\u9032\u7a0b\u547d\u4ee4\" width=\"543\"\/> <\/li>\n<li>\u8f38\u5165\u4ee5\u4e0b\u547d\u4ee4\u6aa2\u67e5\u76ee\u524d SID\uff1a<code><strong>whoami \/user<\/strong><\/code><\/li>\n<li>\u5c07\u986f\u793a\u7684 SID \u8207\u5ba2\u6236\u7aef\u4f7f\u7528\u7684\u9810\u671f SID \u9032\u884c\u6bd4\u8f03\uff0c\u4ee5\u78ba\u4fdd\u5c0d\u9f4a\u3002<\/li>\n<\/ol>\n<h3 id=\"h-2-update-the-service-logon-user\">2.\u66f4\u65b0\u670d\u52d9\u767b\u5165\u4f7f\u7528\u8005\u6191\u8b49<\/h3>\n<ol>\n<li>\u6309<kbd>Windows<\/kbd> + <kbd>R<\/kbd>\uff0c\u9375\u5165<strong>services.msc<\/strong>\uff0c\u7136\u5f8c\u6309<kbd>Enter<\/kbd>\u3002<img alt=\"\u958b\u653e\u670d\u52d9\" class=\"wp-image\" decoding=\"async\" height=\"206\" loading=\"lazy\" src=\"https:\/\/cdn.howtogeek.blog\/wp-content\/uploads\/2025\/01\/Services-RUn-command-1-2.webp\" title=\"\u958b\u653e\u670d\u52d9\" width=\"399\"\/><\/li>\n<li>\u627e\u5230\u9047\u5230\u554f\u984c\u7684\u670d\u52d9\uff0c\u53f3\u9375\u55ae\u64ca\u5b83\uff0c\u7136\u5f8c\u9078\u64c7<strong>\u201c\u5c6c\u6027\u201d<\/strong>\u3002<img alt=\"\" class=\"wp-image\" decoding=\"async\" height=\"745\" loading=\"lazy\" src=\"https:\/\/cdn.howtogeek.blog\/wp-content\/uploads\/2025\/01\/properties-touch-keyboard-services.webp\" title=\"\" width=\"1065\"\/><\/li>\n<li>\u9078\u64c7<strong>\u300c\u767b\u5165\u300d<\/strong>\u9078\u9805\u5361\uff0c\u7136\u5f8c\u9a57\u8b49\u6216\u91cd\u65b0\u8f38\u5165\u670d\u52d9\u5e33\u6236\u7684\u6191\u8b49\u3002<\/li>\n<li><strong>\u6309\u4e00\u4e0b\u201c\u78ba\u5b9a\u201d<\/strong>\u5132\u5b58\u8b8a\u66f4\u3002<\/li>\n<\/ol>\n<h3 id=\"h-3-clear-cached-credentials\">3.\u6e05\u9664\u5feb\u53d6\u7684\u6191\u8b49<\/h3>\n<ol>\n<li>\u6309<kbd>Windows<\/kbd> +\u958b\u555f\u300c\u57f7\u884c\u300d\u5c0d\u8a71\u6846<kbd>R<\/kbd>\uff0c\u9375\u5165<strong>control<\/strong>\uff0c\u7136\u5f8c\u9ede\u9078<kbd>Enter<\/kbd>\u3002<img alt=\"\u63a7\u5236\u9762\u677f\u8a2a\u554f\" class=\"wp-image\" decoding=\"async\" height=\"272\" loading=\"lazy\" src=\"https:\/\/cdn.howtogeek.blog\/wp-content\/uploads\/2025\/01\/control-panel-command-in-run-dialog-box.webp\" title=\"\u63a7\u5236\u9762\u677f\u8a2a\u554f\" width=\"456\"\/><\/li>\n<li>\u5c0e\u822a\u5230<strong>\u6191\u8b49\u7ba1\u7406\u5668<\/strong>\u3002<img alt=\"\u6191\u8b49\u7ba1\u7406\u5668\" class=\"wp-image\" decoding=\"async\" height=\"503\" loading=\"lazy\" src=\"https:\/\/cdn.howtogeek.blog\/wp-content\/uploads\/2025\/01\/Control-panel-Credential-manager.webp\" title=\"\u6191\u8b49\u7ba1\u7406\u5668\" width=\"932\"\/><\/li>\n<li>\u522a\u9664\u8207\u6709\u554f\u984c\u7684\u4f3a\u670d\u5668\u95dc\u806f\u7684\u4efb\u4f55\u5df2\u5132\u5b58\u7684\u6191\u8b49\u3002<\/li>\n<\/ol>\n<h3 id=\"h-4-verify-active-directory-configuration\">4.\u9a57\u8b49 Active Directory \u914d\u7f6e<\/h3>\n<ol>\n<li>\u78ba\u8a8d\u76f8\u95dc\u4f7f\u7528\u8005\u5e33\u6236\u6709\u6548\u4e14\u8655\u65bc\u6d3b\u52d5\u72c0\u614b\u3002<\/li>\n<li>\u958b\u555f\u547d\u4ee4\u63d0\u793a\u5b57\u5143\u3002<\/li>\n<li>\u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4\u6aa2\u67e5\u7db2\u57df\u4fe1\u4efb\u72c0\u614b\uff1a <code><strong>nltest \/sc_verify:&lt;domain_name&gt;<\/strong><\/code><img alt=\"\u7db2\u57df\u4fe1\u4efb\u72c0\u614b\u6aa2\u67e5\" class=\"wp-image\" decoding=\"async\" height=\"53\" loading=\"lazy\" src=\"https:\/\/cdn.howtogeek.blog\/wp-content\/uploads\/2025\/01\/nltest-sc_verify.webp\" title=\"\u7db2\u57df\u4fe1\u4efb\u72c0\u614b\u6aa2\u67e5\" width=\"479\"\/><\/li>\n<\/ol>\n<h3 id=\"h-5-re-register-spn\">5.\u91cd\u65b0\u8a3b\u518a\u670d\u52d9\u4e3b\u9ad4\u540d\u7a31 (SPN)<\/h3>\n<ol>\n<li>\u5728\u547d\u4ee4\u63d0\u793a\u5b57\u5143\u4e2d\uff0c\u4f7f\u7528\u4e0b\u5217\u547d\u4ee4\u6aa2\u67e5\u73fe\u6709 SPN\uff1a<code><strong>setspn -L &lt;service_account&gt;<\/strong><\/code><\/li>\n<li>\u5982\u679c SPN \u907a\u5931\uff0c\u8acb\u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4\u8a3b\u518a\uff1a<code><strong>setspn -A &lt;service\/hostname&gt; &lt;account&gt;<\/strong><\/code><\/li>\n<li>\u5b8c\u6210\u8a3b\u518a\u5f8c\uff0c\u9a57\u8b49\u554f\u984c\u662f\u5426\u4ecd\u7136\u5b58\u5728\u3002<\/li>\n<\/ol>\n<p>\u8acb\u6ce8\u610f\uff0c\u5982\u679c\u60a8\u4f7f\u7528 Kerberos \u9a57\u8b49\uff0c\u5247\u6b64\u65b9\u6cd5\u7279\u5225\u76f8\u95dc\u3002<\/p>\n<h3 id=\"h-6-other-tips-to-try\">6.\u5176\u4ed6\u6545\u969c\u6392\u9664\u63d0\u793a<\/h3>\n<ol>\n<li>\u900f\u904e\u57f7\u884c\u4ee5\u4e0b\u547d\u4ee4\u5237\u65b0\u7fa4\u7d44\u539f\u5247\uff1a<code><strong>gpupdate \/force<\/strong><\/code><\/li>\n<li><strong>\u4f7f\u7528PsGetSid<\/strong>\u5de5\u5177\u6aa2\u67e5\u662f\u5426\u6709\u91cd\u8907\u7684 SID \uff1a<code><strong>psgetsid &lt;machine_name&gt;<\/strong><\/code><\/li>\n<li>\u78ba\u4fdd\u6240\u6709\u9069\u7576\u7684\u4f7f\u7528\u8005\u548c\u7fa4\u7d44\u90fd\u64c1\u6709\u5fc5\u8981\u7684\u6b0a\u9650\u3002<\/li>\n<li>\u5229\u7528\u5ba2\u6236\u7aef\u548c\u4f3a\u670d\u5668\u4e0a\u7684<strong>\u4e8b\u4ef6\u6aa2\u8996\u5668\u4f86\u627e\u51fa\u4efb\u4f55\u7570\u5e38\u60c5\u6cc1\u3002<\/strong><\/li>\n<li>\u5728\u5ba2\u6236\u7aef\u548c\u4f3a\u670d\u5668\u4e0a\u57f7\u884c\u91cd\u65b0\u555f\u52d5\u4ee5\u5957\u7528\u548c\u5237\u65b0\u8a2d\u5b9a\u3002<\/li>\n<li>\u6240\u6709\u914d\u7f6e\u7684\u9a57\u8b49\u5c0d\u65bc\u907f\u514d\u9032\u4e00\u6b65\u7684\u8907\u96dc\u5316\u81f3\u95dc\u91cd\u8981\u3002<\/li>\n<li>\u5982\u679c\u5728\u53e2\u96c6\u4e2d\u5de5\u4f5c\uff0c\u8acb\u78ba\u4fdd\u7bc0\u9ede\u914d\u7f6e\u540c\u6b65\u4e14 SID \u4fdd\u6301\u4e00\u81f4\u3002<\/li>\n<\/ol>\n<p>\u7406\u89e3 ERROR_SERVER_SID_MISMATCH \u901a\u5e38\u4f34\u96a8\u8457\u4ee5\u4e0b\u8a0a\u606f\u662f\u81f3\u95dc\u91cd\u8981\u7684\uff1a<strong>628 (0x274) \u4f3a\u670d\u5668\u7a0b\u5e8f\u6b63\u5728\u8207\u5ba2\u6236\u7aef\u6240\u9700\u7684 SID \u4e0d\u540c\u7684 SID \u4e0b\u904b\u884c\u3002<\/strong>\u901a\u5e38\uff0c\u6b64\u554f\u984c\u6e90\u81ea\u65bc\u914d\u7f6e\u932f\u8aa4\u3002\u900f\u904e\u9019\u4e9b\u6b65\u9a5f\uff0c\u60a8\u53ef\u4ee5\u9032\u884c\u5fc5\u8981\u7684\u66f4\u6b63\u3002<\/p>\n<p>\u5982\u679c\u60a8\u6709\u8208\u8da3\u89e3\u6c7a\u66f4\u591a\u554f\u984c\uff0c\u8acb\u8003\u616e\u6df1\u5165\u7814\u7a76<strong>ERROR_CLIENT_SERVER_PARAMETERS_INVALID<\/strong>\u6216<strong>Error Synchronization required<\/strong>\u7b49\u554f\u984c\uff0c\u9019\u4e5f\u662f\u4f3a\u670d\u5668\u7ba1\u7406\u54e1\u9762\u81e8\u7684\u5e38\u898b\u6311\u6230\u3002<\/p>\n<h2>\u5e38\u898b\u554f\u984c\u89e3\u7b54<\/h2>\n<h3><strong>1. ERROR_SERVER_SID_MISMATCH\u662f\u4ec0\u9ebc\u610f\u601d\uff1f<\/strong><\/h3>\n<p>ERROR_SERVER_SID_MISMATCH \u932f\u8aa4\u8868\u793a\u4f3a\u670d\u5668\u7a0b\u5e8f\u5728\u5b89\u5168\u6027\u8b58\u5225\u78bc (SID) \u4e0b\u904b\u884c\uff0c\u8a72\u5b89\u5168\u6027\u8b58\u5225\u78bc\u8207\u7528\u6236\u7aef\u671f\u671b\u7684\u4e0d\u7b26\u3002\u9019\u7a2e\u4e0d\u5339\u914d\u53ef\u80fd\u6703\u5c0e\u81f4\u5b58\u53d6\u554f\u984c\uff0c\u4e26\u4e14\u901a\u5e38\u6e90\u81ea\u65bc\u914d\u7f6e\u4e0d\u4e00\u81f4\u3002<\/p>\n<h3><strong>2.\u6211\u53ef\u4ee5\u9632\u6b62ERROR_SERVER_SID_MISMATCH\u7684\u767c\u751f\u55ce\uff1f<\/strong><\/h3>\n<p>\u96d6\u7136\u5f88\u96e3\u4fdd\u8b49\u6c38\u9060\u4e0d\u6703\u767c\u751f\u6b64\u932f\u8aa4\uff0c\u4f46\u60a8\u53ef\u4ee5\u900f\u904e\u78ba\u4fdd\u5728 Active Directory \u4e2d\u6b63\u78ba\u914d\u7f6e\u670d\u52d9\u5e33\u6236\u548c\u4f7f\u7528\u8005\u6b0a\u9650\u4e26\u5b9a\u671f\u5be9\u6838\u4f3a\u670d\u5668\u8a2d\u5b9a\u662f\u5426\u5b58\u5728\u5dee\u7570\u4f86\u964d\u4f4e\u98a8\u96aa\u3002<\/p>\n<h3><strong>3.\u9047\u5230\u6b64\u932f\u8aa4\u6642\u6211\u61c9\u8a72\u5148\u63a1\u53d6\u4ec0\u9ebc\u6b65\u9a5f\uff1f<\/strong><\/h3>\n<p>\u9996\u5148\u91cd\u65b0\u555f\u52d5\u4f3a\u670d\u5668\u9032\u7a0b\u4ee5\u6aa2\u67e5\u932f\u8aa4\u662f\u5426\u5df2\u89e3\u6c7a\u3002\u5982\u679c\u6c92\u6709\uff0c\u8acb\u7e7c\u7e8c\u9a57\u8b49\u60a8\u7684 Active Directory \u8a2d\u5b9a\u4e26\u78ba\u4fdd\u670d\u52d9\u5e33\u6236\u5177\u6709\u6b63\u78ba\u7684\u6191\u8b49\u3002\u6e05\u9664\u5feb\u53d6\u7684\u6191\u8b49\u4e5f\u53ef\u80fd\u6709\u52a9\u65bc\u89e3\u6c7a\u8a72\u554f\u984c\u3002<\/p>\n<p><a class=\"xiaomi\" href=\"https:\/\/windowsreport.com\/error-server-sid-mismatch\/\" rel=\"noopener noreferrer nofollow\" target=\"_blank\">\u4f86\u6e90\u548c\u5716\u7247<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u9047\u5230 ERROR_SERVER_SID_MISMATCH \u5c0d\u7cfb\u7d71\u7ba1\u7406\u54e1\u4f86\u8aaa\u53ef\u80fd\u662f\u4e00\u500b\u8271\u9245\u7684\u6311\u6230\uff0c\u901a\u5e38\u6703\u5c0e\u81f4\u4ee4\u4eba\u6cae\u55aa\u7684\u5b58\u53d6\u554f\u984c\u3002\u7136\u800c\uff0c\u597d\u6d88\u606f\u662f\u89e3\u6c7a\u9019\u500b\u554f\u984c\u662f\u5b8c\u5168\u53ef\u884c\u7684\u3002\u8acb\u6309\u7167\u6b64\u8a73\u7d30\u6307\u5357\u6062\u5fa9\u4f3a\u670d\u5668\u9032\u7a0b\u7684\u529f\u80fd\u4e26\u91cd\u65b0\u7372\u5f97\u5b58\u53d6\u6b0a\u9650\u3002 ERROR_SERVER_SID_MISMATCH\u7684\u6709\u6548\u89e3\u6c7a\u65b9\u6848 1.\u91cd\u65b0\u555f\u52d5\u4f3a\u670d\u5668\u9032\u7a0b\u4e26\u9a57\u8b49\u4f3a\u670d\u5668\u9032\u7a0bSID \u4f7f\u7528\u7ba1\u7406\u6b0a\u9650\u555f\u52d5\u547d\u4ee4\u63d0\u793a\u5b57\u5143\u3002 \u57f7\u884c\u6307\u4ee4\u91cd\u555f\u76f8\u95dc\u670d\u52d9\uff1a net stop &lt;service_name&gt; &amp;&amp; net start &lt;service_name&gt; \u8f38\u5165\u4ee5\u4e0b\u547d\u4ee4\u6aa2\u67e5\u76ee\u524d SID\uff1awhoami \/user \u5c07\u986f\u793a\u7684 SID \u8207\u5ba2\u6236\u7aef\u4f7f\u7528\u7684\u9810\u671f SID \u9032\u884c\u6bd4\u8f03\uff0c\u4ee5\u78ba\u4fdd\u5c0d\u9f4a\u3002 2.\u66f4\u65b0\u670d\u52d9\u767b\u5165\u4f7f\u7528\u8005\u6191\u8b49 \u6309Windows + R\uff0c\u9375\u5165services.msc\uff0c\u7136\u5f8c\u6309Enter\u3002 \u627e\u5230\u9047\u5230\u554f\u984c\u7684\u670d\u52d9\uff0c\u53f3\u9375\u55ae\u64ca\u5b83\uff0c\u7136\u5f8c\u9078\u64c7\u201c\u5c6c\u6027\u201d\u3002 \u9078\u64c7\u300c\u767b\u5165\u300d\u9078\u9805\u5361\uff0c\u7136\u5f8c\u9a57\u8b49\u6216\u91cd\u65b0\u8f38\u5165\u670d\u52d9\u5e33\u6236\u7684\u6191\u8b49\u3002 \u6309\u4e00\u4e0b\u201c\u78ba\u5b9a\u201d\u5132\u5b58\u8b8a\u66f4\u3002 3.\u6e05\u9664\u5feb\u53d6\u7684\u6191\u8b49 \u6309Windows +\u958b\u555f\u300c\u57f7\u884c\u300d\u5c0d\u8a71\u6846R\uff0c\u9375\u5165control\uff0c\u7136\u5f8c\u9ede\u9078Enter\u3002 \u5c0e\u822a\u5230\u6191\u8b49\u7ba1\u7406\u5668\u3002 \u522a\u9664\u8207\u6709\u554f\u984c\u7684\u4f3a\u670d\u5668\u95dc\u806f\u7684\u4efb\u4f55\u5df2\u5132\u5b58\u7684\u6191\u8b49\u3002 4.\u9a57\u8b49 Active Directory \u914d\u7f6e \u78ba\u8a8d\u76f8\u95dc\u4f7f\u7528\u8005\u5e33\u6236\u6709\u6548\u4e14\u8655\u65bc\u6d3b\u52d5\u72c0\u614b\u3002 \u958b\u555f\u547d\u4ee4\u63d0\u793a\u5b57\u5143\u3002 \u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4\u6aa2\u67e5\u7db2\u57df\u4fe1\u4efb\u72c0\u614b\uff1a nltest \/sc_verify:&lt;domain_name&gt; 5.\u91cd\u65b0\u8a3b\u518a\u670d\u52d9\u4e3b\u9ad4\u540d\u7a31 (SPN) \u5728\u547d\u4ee4\u63d0\u793a\u5b57\u5143\u4e2d\uff0c\u4f7f\u7528\u4e0b\u5217\u547d\u4ee4\u6aa2\u67e5\u73fe\u6709 SPN\uff1asetspn -L &lt;service_account&gt; \u5982\u679c SPN \u907a\u5931\uff0c\u8acb\u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4\u8a3b\u518a\uff1asetspn -A &lt;service\/hostname&gt; &lt;account&gt; [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[6],"class_list":["post-7826","post","type-post","status-publish","format-standard","hentry","category-how-to","tag-windows"],"acf":[],"_links":{"self":[{"href":"https:\/\/howtogeek.blog\/zh\/wp-json\/wp\/v2\/posts\/7826","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/howtogeek.blog\/zh\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/howtogeek.blog\/zh\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/howtogeek.blog\/zh\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/howtogeek.blog\/zh\/wp-json\/wp\/v2\/comments?post=7826"}],"version-history":[{"count":1,"href":"https:\/\/howtogeek.blog\/zh\/wp-json\/wp\/v2\/posts\/7826\/revisions"}],"predecessor-version":[{"id":7827,"href":"https:\/\/howtogeek.blog\/zh\/wp-json\/wp\/v2\/posts\/7826\/revisions\/7827"}],"wp:attachment":[{"href":"https:\/\/howtogeek.blog\/zh\/wp-json\/wp\/v2\/media?parent=7826"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/howtogeek.blog\/zh\/wp-json\/wp\/v2\/categories?post=7826"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/howtogeek.blog\/zh\/wp-json\/wp\/v2\/tags?post=7826"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}