{"id":37262,"date":"2024-11-26T13:18:50","date_gmt":"2024-11-26T05:18:50","guid":{"rendered":"https:\/\/fwq.ai\/blog\/37262\/"},"modified":"2024-11-26T13:18:50","modified_gmt":"2024-11-26T05:18:50","slug":"win7-%e6%80%8e%e4%b9%88%e6%9f%a5id","status":"publish","type":"post","link":"https:\/\/fwq.ai\/blog\/37262\/","title":{"rendered":"win7 \u600e\u4e48\u67e5id"},"content":{"rendered":"<blockquote><p>\n  \u53ef\u4ee5\u901a\u8fc7\u4ee5\u4e0b\u65b9\u6cd5\u67e5\u8be2 windows 7 \u7684\u7528\u6237 id\uff1a\u4f7f\u7528\u547d\u4ee4\u63d0\u793a\u7b26\u8f93\u5165 &#8220;whoami \/user&#8221;\uff1b\u4f7f\u7528 powershell \u8f93\u5165 &#8220;get-localuser&#8221; \u5e76\u67e5\u770b &#8220;sid&#8221; \u5217\uff1b\u4f7f\u7528\u8ba1\u7b97\u673a\u7ba1\u7406\u67e5\u770b\u7528\u6237\u5e10\u6237\u7684 &#8220;\u5e38\u89c4&#8221; \u9009\u9879\u5361\uff1b\u4f7f\u7528 wmic \u8f93\u5165 &#8220;wmic useraccount get name,sid&#8221; \u67e5\u770b sid\uff0c\u5176\u4e2d\u5305\u542b uid\u3002\n<\/p><\/blockquote>\n<p><img decoding=\"async\" src=\"https:\/\/img.php.cn\/upload\/article\/202409\/25\/2024092509012031655.jpg\" class=\"aligncenter\" title=\"win7 \u600e\u4e48\u67e5id\u63d2\u56fe\" alt=\"win7 \u600e\u4e48\u67e5id\u63d2\u56fe\" \/><\/p>\n<p><strong>\u5982\u4f55\u67e5\u8be2 Windows 7 \u7684\u7528\u6237 ID<\/strong><\/p>\n<p>Windows 7 \u4e3a\u6bcf\u4e2a\u7528\u6237\u5206\u914d\u4e86\u4e00\u4e2a\u552f\u4e00\u7684\u6807\u8bc6\u7b26 (ID)\uff0c\u79f0\u4e3a\u7528\u6237\u6807\u8bc6\u7b26 (UID)\u3002UID \u7528\u4e8e\u8bc6\u522b\u7528\u6237\u5e76\u7ba1\u7406\u8bbf\u95ee\u6743\u9650\u3002\u4ee5\u4e0b\u662f\u51e0\u79cd\u67e5\u8be2 Windows 7 \u7528\u6237 ID \u7684\u65b9\u6cd5\uff1a<\/p>\n<p><strong>\u65b9\u6cd5 1\uff1a\u4f7f\u7528\u547d\u4ee4\u63d0\u793a\u7b26<\/strong><\/p>\n<ol>\n<li>\u6309\u4e0b\u952e\u76d8\u4e0a\u7684 &#8220;Win + R&#8221; \u6253\u5f00\u8fd0\u884c\u5bf9\u8bdd\u6846\u3002<\/li>\n<li>\u5728\u5bf9\u8bdd\u6846\u4e2d\u8f93\u5165 &#8220;cmd&#8221; \u5e76\u6309 Enter \u952e\u3002<\/li>\n<li>\u5728\u547d\u4ee4\u63d0\u793a\u7b26\u7a97\u53e3\u4e2d\uff0c\u8f93\u5165 &#8220;whoami \/user&#8221; \u5e76\u6309 Enter \u952e\u3002<\/li>\n<li>\u8be5\u547d\u4ee4\u4f1a\u663e\u793a\u5f53\u524d\u767b\u5f55\u7528\u6237\u7684 UID\u3002<\/li>\n<\/ol>\n<p><strong>\u65b9\u6cd5 2\uff1a\u4f7f\u7528 PowerShell<\/strong><\/p>\n<ol>\n<li>\u6309\u4e0b\u952e\u76d8\u4e0a\u7684 &#8220;Win + X&#8221;\uff0c\u7136\u540e\u9009\u62e9 &#8220;Windows PowerShell (\u7ba1\u7406\u5458)&#8221;\u3002<\/li>\n<li>\u5728 PowerShell \u4e2d\uff0c\u8f93\u5165 &#8220;Get-LocalUser&#8221; \u5e76\u6309 Enter \u952e\u3002<\/li>\n<li>\u627e\u5230 &#8220;SID&#8221; \u5217\uff0c\u5b83\u663e\u793a\u4e86\u7528\u6237 UID\u3002<\/li>\n<\/ol>\n<p><strong>\u65b9\u6cd5 3\uff1a\u4f7f\u7528\u8ba1\u7b97\u673a\u7ba1\u7406<\/strong><\/p>\n<ol>\n<li>\u6309\u4e0b\u952e\u76d8\u4e0a\u7684 &#8220;Win + R&#8221;\uff0c\u7136\u540e\u8f93\u5165 &#8220;compmgmt.msc&#8221; \u5e76\u6309 Enter \u952e\u3002<\/li>\n<li>\u5c55\u5f00 &#8220;\u7cfb\u7edf\u5de5\u5177&#8221;\uff0c\u7136\u540e\u9009\u62e9 &#8220;\u672c\u5730\u7528\u6237\u548c\u7ec4&#8221;\u3002<\/li>\n<li>\u5728\u53f3\u4fa7\u7a97\u683c\u4e2d\uff0c\u53cc\u51fb\u7528\u6237\u5e10\u6237\u3002<\/li>\n<li>\u5728 &#8220;\u5e38\u89c4&#8221; \u9009\u9879\u5361\u4e2d\uff0c\u53ef\u4ee5\u770b\u5230\u7528\u6237\u7684 UID\u3002<\/li>\n<\/ol>\n<p><strong>\u65b9\u6cd5 4\uff1a\u4f7f\u7528 WMIC<\/strong><\/p>\n<ol>\n<li>\u6309\u4e0b\u952e\u76d8\u4e0a\u7684 &#8220;Win + R&#8221;\uff0c\u7136\u540e\u8f93\u5165 &#8220;wmic useraccount get name,sid&#8221; \u5e76\u6309 Enter \u952e\u3002<\/li>\n<li>\u8be5\u547d\u4ee4\u4f1a\u663e\u793a\u6bcf\u4e2a\u7528\u6237\u7684\u540d\u79f0\u548c SID\uff0c\u5176\u4e2d SID \u5305\u542b UID\u3002<\/li>\n<\/ol>\n<p>\u4ee5\u4e0a\u5c31\u662fwin7 \u600e\u4e48\u67e5id\u7684\u8be6\u7ec6\u5185\u5bb9\uff0c\u66f4\u591a\u8bf7\u5173\u6ce8\u7c73\u4e91\u5176\u5b83\u76f8\u5173\u6587\u7ae0\uff01<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u53ef\u4ee5\u901a\u8fc7\u4ee5\u4e0b\u65b9\u6cd5\u67e5\u8be2 windows 7 \u7684\u7528\u6237 id\uff1a\u4f7f\u7528\u547d\u4ee4\u63d0\u793a\u7b26\u8f93\u5165 &#8220;whoami \/user&#8221;\uff1b\u4f7f\u7528 powershell \u8f93\u5165 &#8220;get-localuser&#8221; \u5e76\u67e5\u770b &#8220;sid&#8221; \u5217\uff1b\u4f7f\u7528\u8ba1\u7b97\u673a\u7ba1\u7406\u67e5\u770b\u7528\u6237\u5e10\u6237\u7684 &#8220;\u5e38\u89c4&#8221; \u9009\u9879\u5361\uff1b\u4f7f\u7528 wmic \u8f93\u5165 &#8220;wmic useraccount get name,sid&#8221; \u67e5\u770b sid\uff0c\u5176\u4e2d\u5305\u542b uid\u3002 \u5982\u4f55\u67e5\u8be2 Windows 7 \u7684\u7528\u6237 ID Windows 7 \u4e3a\u6bcf\u4e2a\u7528\u6237\u5206\u914d\u4e86\u4e00\u4e2a\u552f\u4e00\u7684\u6807\u8bc6\u7b26 (ID)\uff0c\u79f0\u4e3a\u7528\u6237\u6807\u8bc6\u7b26 (UID)\u3002UID \u7528\u4e8e\u8bc6\u522b\u7528\u6237\u5e76\u7ba1\u7406\u8bbf\u95ee\u6743\u9650\u3002\u4ee5\u4e0b\u662f\u51e0\u79cd\u67e5\u8be2 Windows 7 \u7528\u6237 ID \u7684\u65b9\u6cd5\uff1a \u65b9\u6cd5 1\uff1a\u4f7f\u7528\u547d\u4ee4\u63d0\u793a\u7b26 \u6309\u4e0b\u952e\u76d8\u4e0a\u7684 &#8220;Win + R&#8221; \u6253\u5f00\u8fd0\u884c\u5bf9\u8bdd\u6846\u3002 \u5728\u5bf9\u8bdd\u6846\u4e2d\u8f93\u5165 &#8220;cmd&#8221; \u5e76\u6309 Enter \u952e\u3002 \u5728\u547d\u4ee4\u63d0\u793a\u7b26\u7a97\u53e3\u4e2d\uff0c\u8f93\u5165 &#8220;whoami \/user&#8221; [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[8],"tags":[],"class_list":["post-37262","post","type-post","status-publish","format-standard","hentry","category-os"],"_links":{"self":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/37262","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/comments?post=37262"}],"version-history":[{"count":0,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/37262\/revisions"}],"wp:attachment":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/media?parent=37262"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/categories?post=37262"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/tags?post=37262"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}