{"id":7678,"date":"2025-01-24T16:00:44","date_gmt":"2025-01-24T16:00:44","guid":{"rendered":"https:\/\/howtogeek.blog\/zh\/?p=7678"},"modified":"2025-01-24T16:00:44","modified_gmt":"2025-01-24T16:00:44","slug":"how-to-fix-error-invalid-variant-604-0x25c","status":"publish","type":"post","link":"https:\/\/howtogeek.blog\/zh\/how-to-fix-error-invalid-variant-604-0x25c\/","title":{"rendered":"\u5982\u4f55\u4fee\u5fa9\u932f\u8aa4\u7121\u6548\u8b8a\u9ad4 604 (0x25C)"},"content":{"rendered":"<p>ERROR_INVALID_VARIANT \u8a0a\u606f\u5c0d Windows \u4f7f\u7528\u8005\u4f86\u8aaa\u53ef\u80fd\u662f\u4e00\u500b\u4ee4\u4eba\u6cae\u55aa\u7684\u969c\u7919\uff0c\u901a\u5e38\u8868\u73fe\u70ba\u4ee3\u78bc 604 (0x25C) \u4e26\u6307\u793a\u63d0\u4f9b\u7684\u8b8a\u9ad4\u7d50\u69cb\u5305\u542b\u7121\u6548\u8cc7\u6599\u3002\u6b64\u932f\u8aa4\u901a\u5e38\u6e90\u81ea\u65bc\u6b0a\u9650\u4e0d\u8db3\uff0c\u4f46\u4e0d\u7528\u64d4\u5fc3\uff01\u5728\u672c\u6307\u5357\u4e2d\uff0c\u6211\u5011\u5c07\u63a2\u7d22\u6709\u6548\u89e3\u6c7a\u6b64\u554f\u984c\u7684\u6709\u6548\u65b9\u6cd5\u3002<\/p>\n<h2 id=\"h-how-can-i-fix-error-invalid-variant\">\u5982\u4f55\u89e3\u6c7a ERROR_INVALID_VARIANT<\/h2>\n<p>\u5728\u89e3\u6c7a ERROR_INVALID_VARIANT \u932f\u8aa4\u6642\uff0c\u5229\u7528\u7279\u5b9a\u5de5\u5177\u53ef\u4ee5\u7c21\u5316\u6d41\u7a0b\u3002\u4ee5\u4e0b\u662f\u5169\u7a2e\u53ef\u9760\u7684\u65b9\u6cd5\uff1a\u4f7f\u7528 PsExec \u548c NSudo\u3002<\/p>\n<h3 id=\"h-1-use-pstools\">1.\u5229\u7528 PsExec<\/h3>\n<ol>\n<li> \u9996\u5148<a href=\"https:\/\/learn.microsoft.com\/en-us\/sysinternals\/downloads\/psexec\" rel=\"noreferrer noopener\" target=\"_blank\">\u4e0b\u8f09 PsExec \u5be6\u7528\u7a0b\u5f0f<\/a>\u3002 <\/li>\n<li> \u4e0b\u8f09\u5f8c\uff0c\u5c07\u5b58\u6a94\u89e3\u58d3\u7e2e\u5230\u4e00\u500b\u65b9\u4fbf\u7684\u4f4d\u7f6e\uff0c\u4f8b\u5982\u684c\u9762\u3002\u63d0\u53d6\u7684\u8cc7\u6599\u593e\u5c07\u5728\u5f8c\u7e8c\u6b65\u9a5f\u4e2d\u7a31\u70ba Pstools \u8cc7\u6599\u593e\u3002 <\/li>\n<li><kbd>Windows<\/kbd> \u6309+ \u9375<kbd>S<\/kbd>\uff0c\u9375\u5165<strong>cmd<\/strong>\uff0c\u7136\u5f8c\u9078\u64c7<strong>\u4ee5\u7ba1\u7406\u54e1\u8eab\u4efd\u57f7\u884c\uff0c<\/strong> \u53ef\u4ee5\u4f7f\u7528\u63d0\u5347\u7684\u6b0a\u9650\u5b58\u53d6\u547d\u4ee4\u63d0\u793a\u5b57\u5143\u3002<img alt=\"CMD \u63d0\u5347 ERROR_NET_OPEN_FAILED\" class=\"wp-image\" decoding=\"async\" height=\"670\" loading=\"lazy\" src=\"https:\/\/cdn.howtogeek.blog\/wp-content\/uploads\/2025\/01\/CMD-elevated-3-1.webp\" title=\"CMD \u63d0\u5347 ERROR_NET_OPEN_FAILED\" width=\"720\"\/> <\/li>\n<li> \u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4\u5c07\u76ee\u9304\u8b8a\u66f4\u70ba Pstools \u8cc7\u6599\u593e\uff1a <code><strong>cd C:\\Users\\Username\\Desktop\\Pstools<\/strong><\/code>\u5176\u4e2d\u300c\u4f7f\u7528\u8005\u540d\u7a31\u300d\u5c0d\u61c9\u65bc\u60a8\u7684 Windows \u5e33\u6236\u540d\u7a31\u3002<img alt=\"\" class=\"wp-image\" decoding=\"async\" height=\"173\" loading=\"lazy\" src=\"https:\/\/cdn.howtogeek.blog\/wp-content\/uploads\/2025\/01\/pstools-cd.webp\" title=\"\" width=\"631\"\/> <\/li>\n<li> \u4ee5\u6b64\u547d\u4ee4\u70ba\u4f8b\u57f7\u884c\u5fc5\u8981\u7684\u5de5\u5177\uff1a <code><strong>psexec.exe -i -s %windir%\\system32\\mmc.exe \/s taskschd.msc<\/strong><\/code><img alt=\"\" class=\"wp-image\" decoding=\"async\" height=\"230\" loading=\"lazy\" src=\"https:\/\/cdn.howtogeek.blog\/wp-content\/uploads\/2025\/01\/psexec-command.webp\" title=\"\" width=\"795\"\/><\/li>\n<li> \u73fe\u5728\uff0c\u60a8\u61c9\u8a72\u80fd\u5920\u5b58\u53d6\u4efb\u52d9\u898f\u5283\u7a0b\u5f0f\u6216\u4e4b\u524d\u89f8\u767c\u932f\u8aa4\u7684\u4efb\u4f55\u5176\u4ed6\u5de5\u5177\u3002\u5982\u679c\u60a8\u4f7f\u7528\u4e0d\u540c\u7684\u61c9\u7528\u7a0b\u5e8f\uff0c\u8acb\u8a18\u4f4f\u76f8\u61c9\u5730\u4fee\u6539\u6b65\u9a5f 5 \u4e2d\u7684\u547d\u4ee4\u4ee5\u6eff\u8db3\u60a8\u7684\u8981\u6c42\u3002 <\/li>\n<\/ol>\n<h3 id=\"h-2-use-nsudo\">2.\u5229\u7528 NSudo \u9032\u884c\u63d0\u5347\u8a2a\u554f<\/h3>\n<ol>\n<li> \u9996\u5148\uff0c\u4e0b\u8f09<a href=\"https:\/\/github.com\/azraelrabbit\/NSudo-1?tab=readme-ov-file\" rel=\"noreferrer noopener\" target=\"_blank\">NSudo\u8edf\u9ad4<\/a>\u3002 <\/li>\n<li>\u555f\u52d5 NSudo \u4e26\u4f7f\u7528\u5b83\u5728<strong>TrustedInstaller<\/strong>\u4e0a\u4e0b\u6587\u4e0b \u555f\u52d5<strong>cmd<\/strong>\u3002<strong><\/strong><img alt=\"\u9700\u8981\u6253\u958b\" class=\"wp-image\" decoding=\"async\" height=\"243\" loading=\"lazy\" src=\"https:\/\/cdn.howtogeek.blog\/wp-content\/uploads\/2025\/01\/nsudo-open.webp\" title=\"\u9700\u8981\u6253\u958b\" width=\"448\"\/> <\/li>\n<li> \u73fe\u5728\u60a8\u53ef\u4ee5\u57f7\u884c\u9700\u8981\u66f4\u9ad8\u6b0a\u9650\u7684\u547d\u4ee4\uff0c\u4f8b\u5982<code><strong>SCHTASKS \/Change \/TN \"Microsoft\\Windows\\UpdateOrchestrator\\Reboot\"\/DISABLE<\/strong><\/code>\uff0c\u6709\u6548\u7de9\u89e3\u932f\u8aa4\u3002 <\/li>\n<li> \u6216\u8005\uff0c\u60a8\u53ef\u4ee5\u958b\u555f\u4efb\u52d9\u898f\u5283\u7a0b\u5e8f\u6216\u4efb\u4f55\u9069\u7528\u7684\u7a0b\u5e8f\uff08\u5305\u62ec TrustedInstaller \u6216 System\uff09\u4f86\u9a57\u8b49\u554f\u984c\u662f\u5426\u5df2\u89e3\u6c7a\u3002 <\/li>\n<\/ol>\n<p>\u6bcf\u7576\u9700\u8981\u7279\u6b0a\u6b0a\u9650\u624d\u80fd\u8207\u7279\u5b9a Windows \u670d\u52d9\u6216\u6d41\u7a0b\u4e92\u52d5\u6642\uff0cERROR_INVALID_VARIANT \u5c31\u6703\u51fa\u73fe\u3002\u9451\u65bc\u5b83\u5728\u5404\u7a2e\u61c9\u7528\u7a0b\u5f0f\u4e2d\u767c\u751f\uff0c\u8abf\u6574\u547d\u4ee4\u547d\u4ee4\u5c0d\u65bc\u6210\u529f\u6392\u9664\u6545\u969c\u81f3\u95dc\u91cd\u8981\u3002<\/p>\n<h2>\u5e38\u898b\u554f\u984c\u89e3\u7b54<\/h2>\n<h3><strong>1.\u662f\u4ec0\u9ebc\u539f\u56e0\u5c0e\u81f4ERROR_INVALID_VARIANT\u8a0a\u606f\uff1f<\/strong><\/h3>\n<p>ERROR_INVALID_VARIANT \u8a0a\u606f\u901a\u5e38\u662f\u5728\u5617\u8a66\u57f7\u884c\u6d89\u53ca\u9700\u8981\u63d0\u5347\u6b0a\u9650\u7684\u670d\u52d9\u6216\u9032\u7a0b\u7684\u547d\u4ee4\u6642\u7531\u6b0a\u9650\u554f\u984c\u89f8\u767c\u7684\u3002<\/p>\n<h3><strong>2.\u5c0d\u65bc ERROR_INVALID_VARIANT \u4ee5\u5916\u7684\u932f\u8aa4\uff0c\u6211\u53ef\u4ee5\u4f7f\u7528\u9019\u4e9b\u65b9\u6cd5\u55ce\uff1f<\/strong><\/h3>\n<p>\u662f\u7684\uff0c\u96d6\u7136\u9019\u4e9b\u65b9\u6cd5\u662f\u70ba\u89e3\u6c7a ERROR_INVALID_VARIANT \u800c\u81ea\u8a02\u7684\uff0c\u4f46\u5b83\u5011\u4e5f\u9069\u7528\u65bc\u89e3\u6c7a\u5176\u4ed6\u76f8\u95dc\u7684 Windows \u6b0a\u9650\u932f\u8aa4\u3002\u8acb\u52d9\u5fc5\u6839\u64da\u9700\u8981\u8abf\u6574\u547d\u4ee4\u53c3\u6578\u3002<\/p>\n<h3><strong>3. NSudo \u5728\u6211\u7684\u7cfb\u7d71\u4e0a\u4f7f\u7528\u5b89\u5168\u55ce\uff1f<\/strong><\/h3>\n<p>\u6beb\u7121\u7591\u554f\uff0cNSudo \u662f\u4e00\u6b3e\u503c\u5f97\u4fe1\u8cf4\u7684\u5de5\u5177\uff0c\u5c08\u70ba\u9032\u968e\u4f7f\u7528\u8005\u8a2d\u8a08\uff0c\u53ef\u4ee5\u4ee5\u66f4\u9ad8\u7684\u6b0a\u9650\u7ba1\u7406 Windows \u6d41\u7a0b\u3002\u4f46\u662f\uff0c\u8acb\u59cb\u7d42\u78ba\u4fdd\u60a8\u5f9e\u4fe1\u8b7d\u826f\u597d\u7684\u4f86\u6e90\u4e0b\u8f09\u5b83\u3002<\/p>\n<p><a class=\"xiaomi\" href=\"https:\/\/windowsreport.com\/error-invalid-variant\/\" rel=\"noopener noreferrer nofollow\" target=\"_blank\">\u4f86\u6e90\u548c\u5716\u7247<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>ERROR_INVALID_VARIANT \u8a0a\u606f\u5c0d Windows \u4f7f\u7528\u8005\u4f86\u8aaa\u53ef\u80fd\u662f\u4e00\u500b\u4ee4\u4eba\u6cae\u55aa\u7684\u969c\u7919\uff0c\u901a\u5e38\u8868\u73fe\u70ba\u4ee3\u78bc 604 (0x25C) \u4e26\u6307\u793a\u63d0\u4f9b\u7684\u8b8a\u9ad4\u7d50\u69cb\u5305\u542b\u7121\u6548\u8cc7\u6599\u3002\u6b64\u932f\u8aa4\u901a\u5e38\u6e90\u81ea\u65bc\u6b0a\u9650\u4e0d\u8db3\uff0c\u4f46\u4e0d\u7528\u64d4\u5fc3\uff01\u5728\u672c\u6307\u5357\u4e2d\uff0c\u6211\u5011\u5c07\u63a2\u7d22\u6709\u6548\u89e3\u6c7a\u6b64\u554f\u984c\u7684\u6709\u6548\u65b9\u6cd5\u3002 \u5982\u4f55\u89e3\u6c7a ERROR_INVALID_VARIANT \u5728\u89e3\u6c7a ERROR_INVALID_VARIANT \u932f\u8aa4\u6642\uff0c\u5229\u7528\u7279\u5b9a\u5de5\u5177\u53ef\u4ee5\u7c21\u5316\u6d41\u7a0b\u3002\u4ee5\u4e0b\u662f\u5169\u7a2e\u53ef\u9760\u7684\u65b9\u6cd5\uff1a\u4f7f\u7528 PsExec \u548c NSudo\u3002 1.\u5229\u7528 PsExec \u9996\u5148\u4e0b\u8f09 PsExec \u5be6\u7528\u7a0b\u5f0f\u3002 \u4e0b\u8f09\u5f8c\uff0c\u5c07\u5b58\u6a94\u89e3\u58d3\u7e2e\u5230\u4e00\u500b\u65b9\u4fbf\u7684\u4f4d\u7f6e\uff0c\u4f8b\u5982\u684c\u9762\u3002\u63d0\u53d6\u7684\u8cc7\u6599\u593e\u5c07\u5728\u5f8c\u7e8c\u6b65\u9a5f\u4e2d\u7a31\u70ba Pstools \u8cc7\u6599\u593e\u3002 Windows \u6309+ \u9375S\uff0c\u9375\u5165cmd\uff0c\u7136\u5f8c\u9078\u64c7\u4ee5\u7ba1\u7406\u54e1\u8eab\u4efd\u57f7\u884c\uff0c \u53ef\u4ee5\u4f7f\u7528\u63d0\u5347\u7684\u6b0a\u9650\u5b58\u53d6\u547d\u4ee4\u63d0\u793a\u5b57\u5143\u3002 \u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4\u5c07\u76ee\u9304\u8b8a\u66f4\u70ba Pstools \u8cc7\u6599\u593e\uff1a cd C:\\Users\\Username\\Desktop\\Pstools\u5176\u4e2d\u300c\u4f7f\u7528\u8005\u540d\u7a31\u300d\u5c0d\u61c9\u65bc\u60a8\u7684 Windows \u5e33\u6236\u540d\u7a31\u3002 \u4ee5\u6b64\u547d\u4ee4\u70ba\u4f8b\u57f7\u884c\u5fc5\u8981\u7684\u5de5\u5177\uff1a psexec.exe -i -s %windir%\\system32\\mmc.exe \/s taskschd.msc \u73fe\u5728\uff0c\u60a8\u61c9\u8a72\u80fd\u5920\u5b58\u53d6\u4efb\u52d9\u898f\u5283\u7a0b\u5f0f\u6216\u4e4b\u524d\u89f8\u767c\u932f\u8aa4\u7684\u4efb\u4f55\u5176\u4ed6\u5de5\u5177\u3002\u5982\u679c\u60a8\u4f7f\u7528\u4e0d\u540c\u7684\u61c9\u7528\u7a0b\u5e8f\uff0c\u8acb\u8a18\u4f4f\u76f8\u61c9\u5730\u4fee\u6539\u6b65\u9a5f 5 \u4e2d\u7684\u547d\u4ee4\u4ee5\u6eff\u8db3\u60a8\u7684\u8981\u6c42\u3002 2.\u5229\u7528 NSudo \u9032\u884c\u63d0\u5347\u8a2a\u554f \u9996\u5148\uff0c\u4e0b\u8f09NSudo\u8edf\u9ad4\u3002 \u555f\u52d5 NSudo \u4e26\u4f7f\u7528\u5b83\u5728TrustedInstaller\u4e0a\u4e0b\u6587\u4e0b \u555f\u52d5cmd\u3002 \u73fe\u5728\u60a8\u53ef\u4ee5\u57f7\u884c\u9700\u8981\u66f4\u9ad8\u6b0a\u9650\u7684\u547d\u4ee4\uff0c\u4f8b\u5982SCHTASKS \/Change \/TN [&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-7678","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\/7678","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=7678"}],"version-history":[{"count":1,"href":"https:\/\/howtogeek.blog\/zh\/wp-json\/wp\/v2\/posts\/7678\/revisions"}],"predecessor-version":[{"id":7679,"href":"https:\/\/howtogeek.blog\/zh\/wp-json\/wp\/v2\/posts\/7678\/revisions\/7679"}],"wp:attachment":[{"href":"https:\/\/howtogeek.blog\/zh\/wp-json\/wp\/v2\/media?parent=7678"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/howtogeek.blog\/zh\/wp-json\/wp\/v2\/categories?post=7678"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/howtogeek.blog\/zh\/wp-json\/wp\/v2\/tags?post=7678"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}