{"id":13869,"date":"2021-07-29T03:11:43","date_gmt":"2021-07-28T19:11:43","guid":{"rendered":"http:\/\/blog.idc.net\/13869\/"},"modified":"2021-07-29T03:11:43","modified_gmt":"2021-07-28T19:11:43","slug":"windows-server-2008-r2-%e6%9c%8d%e5%8a%a1%e5%99%a8%e5%b8%b8%e7%94%a8%e5%91%bd%e4%bb%a4%e5%b0%8f%e7%bb%93","status":"publish","type":"post","link":"https:\/\/idc.net\/help\/13869\/","title":{"rendered":"Windows Server 2008 R2 \u670d\u52a1\u5668\u5e38\u7528\u547d\u4ee4\u5c0f\u7ed3"},"content":{"rendered":"<div class=\"idc_table\">\n<p><strong>1.\u4fee\u6539\u8ba1\u7b97\u673a\u540d\u79f0<\/strong><\/p>\n<p>\u5de5\u4f5c\u7ec4\uff1aNetdom RenameComputer %ComputerName% \/NewName:08R2ServerCore<\/p>\n<p>\u57df\u73af\u5883\u4e2d\uff1aNetdom RenameComputer %ComputerName% \/Newname:08R2ServerCore \/UserD:Administrator \/PasswordD:P@ssw0rd<\/p>\n<p><strong>2.\u8bbe\u7f6e\u8ba1\u7b97\u673aIP\u5730\u5740<\/strong><\/p>\n<p>\u628aIP\u5730\u5740\u8bbe\u7f6e\u6210\u52a8\u6001\u83b7\u53d6\uff1aNetsh Interface ipv4 Set Address Name=\"\u672c\u5730\u8fde\u63a5\" Source=DHCP<\/p>\n<p>\u628aIP\u5730\u5740\u8bbe\u7f6e\u6210\u4e00\u4e2a\u9759\u6001IP: Netsh Interface ipv4 Set Address \"\u672c\u5730\u8fde\u63a5\" Static 10.0.0.10 255.0.0.0 10.0.0.1<\/p>\n<p><strong>3.\u8bbe\u7f6eDNS\u5730\u5740<\/strong><\/p>\n<p>Netsh Interface ipv4 Set DNSServer \"\u672c\u5730\u8fde\u63a5\" 202.96.209.133 index=1<\/p>\n<p><strong>4. \u5173\u95ed\u9632\u706b\u5899<\/strong><\/p>\n<p>Netsh Firewall Set Opmode disable<\/p>\n<p><strong>5.\u5f00\u542f\u9632\u706b\u589980\u7aef\u53e3<\/strong><\/p>\n<p>Netsh Firewall add portopening TCP 80 blah enable subnet<\/p>\n<p><strong>6.\u5c06\u8ba1\u7b97\u673a\u52a0\u5165\u57df<\/strong><\/p>\n<p>netdom join %computername% \/domain:\u57df\u540d \/userd:\u57df\u540d\\\u6709\u6743\u9650\u7684\u7528\u6237\u540d \/passwordd:*<\/p>\n<p><strong>7.\u5c06\u8ba1\u7b97\u673a\u4ece\u57df\u4e2d\u5220\u9664<\/strong><\/p>\n<p>netdom remove %computername% \/domain:\u57df\u540d \/userd:\u57df\u540d\\\u6709\u6743\u9650\u7684\u7528\u6237\u540d \/passwordd:*<\/p>\n<p><strong>8. \u91cd\u542f\u8ba1\u7b97\u673a\u548c\u5173\u95ed\u8ba1\u7b97\u673a<\/strong><\/p>\n<p>\u91cd\u542f\uff1ashutdown \/r \/t 0<\/p>\n<p>\u5173\u673a\uff1ashutdown \/s \/t 0<\/p>\n<p><strong>9.\u5e38\u89c1\u7684\u67e5\u770b\u547d\u4ee4<\/strong><\/p>\n<p>\u67e5\u770b\u5df2\u7ecf\u5b89\u88c5\u7684\u529f\u80fd\uff1aoclist<\/p>\n<p>\u67e5\u770b\u8ba1\u7b97\u673a\u4fe1\u606f\uff1asysteminfo<\/p>\n<p>\u67e5\u770b\u8ba1\u7b97\u673a\u540d\u79f0\uff1ahostname<\/p>\n<p>\u67e5\u770b\u5f53\u524d\u8ba1\u7b97\u673a\u7aef\u53e3\u4f7f\u7528\u60c5\u51b5\uff1aNetstat -na<\/p>\n<p>\u67e5\u770b\u5f53\u524d\u7684\u7aef\u53e3\u7684\u4f7f\u7528\u60c5\u51b5\uff1aNetstat -na | find \"80\"<\/p>\n<p>\u67e5\u770b\u8ba1\u7b97\u673a\u7684\u6fc0\u6d3b\u4fe1\u606f\uff1aslmgr.vbs -did<\/p>\n<p><strong>10. \u6fc0\u6d3b\u547d\u4ee4<\/strong><\/p>\n<p>\u4f7f\u7528\u67d0\u4e00\u4e2a\u5e8f\u5217\u53f7\u6fc0\u6d3b\uff1aSlmgr \/ipk 11111-22222-33333-44444-55555<\/p>\n<p>\u81ea\u52a8\u6fc0\u6d3b\uff1aslmgr \/ato<\/p>\n<p><strong>11.\u7528\u6237\u548c\u7ec4<\/strong><\/p>\n<p>\u65b0\u5efa\u7528\u6237\uff1anet user Alice P@ssw0rd<\/p>\n<p>\u5220\u9664\u7528\u6237: net user Alice \/del<\/p>\n<p>\u4fee\u6539\u7528\u6237\u5bc6\u7801:net user Alice abc123,<\/p>\n<p>\u65b0\u5efa\u7ec4\uff1a net localgroup SalesGroup<\/p>\n<p>\u628aAlice\u52a0\u5165\u5230\u7ec4SalesGroup: net localgroup SalesGroup Alice \/add<\/p>\n<p>\u5c06Alice\u4ece\u7ec4SalesGroup\u4e2d\u79fb\u51fa\uff1anet localgroup SalesGroup Alice \/del<\/p>\n<p><strong>12.\u914d\u7f6e\u8ba1\u7b97\u673aWeb\u4ee3\u7406\u5730\u5740\u548c\u7aef\u53e3<\/strong><\/p>\n<p>netsh winhttp Set proxy 10.0.0.1:8080<\/p>\n<p><strong>13\u5141\u8bb8\u6216\u8005\u7981\u6b62ping<\/strong><\/p>\n<p>\u5141\u8bb8ping\u5165\uff1anetsh firewall set icmpsetting 8<\/p>\n<p>\u7981\u6b62ping\u5165\uff1anetsh firewall Set icmpsetting 8 disable<\/p>\n<p><strong>14.\u5b89\u88c5\u548c\u5378\u8f7d\u89d2\u8272\uff1a<\/strong><\/p>\n<p>\u5b89\u88c5DHCP: Start \/w ocsetup DHCPServerCore<\/p>\n<p>\u5378\u8f7dDHCP: Start \/w ocsetup DHCPServerCore \/uninstall<\/p>\n<p>\u8bbe\u7f6e\u4e3a\u81ea\u52a8\u542f\u52a8\uff1asc config DHCPServer Start = auto<\/p>\n<p>\u5176\u4ed6\u670d\u52a1\u7684\u540d\u79f0\u53ef\u4ee5\u901a\u8fc7: oclist\u6765\u67e5\u770b<\/p>\n<p><strong>15.\u5347\u7ea7\u4e3aRODC<\/strong><\/p>\n<p>-----\u5148\u5199\u4e00\u4e2aunattend.txt\u6587\u4ef6\uff0c\u628a\u4e0b\u5217\u590d\u5236\u5230\u6587\u4ef6\u4e2d\uff0c\u5b58\u653e\u5728C\u76d8---<\/p>\n<p>[DCInstall]<\/p>\n<p>InstallDNS=Yes<\/p>\n<p>ConfirmGC=No<\/p>\n<p>CriticalReplicationOnly=Yes<\/p>\n<p>DisableCancelForDnsInstall=no<\/p>\n<p> ReplicaDomainDNSName=contoso.com<\/p>\n<p>ReplicaOrNewDomain=ReadOnlyReplica<\/p>\n<p>ReplicationSourceDC=server8.contoso.com<\/p>\n<p>SafeModeAdminPassword=abc123,<\/p>\n<p>SiteName=Default-First-Site-Name<\/p>\n<p>UserDomain=contoso.com<\/p>\n<p>UserName=administrator<\/p>\n<p>Password=P@ssw0rd<\/p>\n<p>-------------------------------------<\/p>\n<p>\u7136\u540e\u5728\u547d\u4ee4\u884c\u8f93\u5165\uff1a<\/p>\n<p>dcpromo \/unattend:\"c:\\unattend.txt\"<\/p>\n<p><span><\/span><\/p>\n","protected":false},"excerpt":{"rendered":"<p>1.\u4fee\u6539\u8ba1\u7b97\u673a\u540d\u79f0 \u5de5\u4f5c\u7ec4\uff1aNetdom RenameComputer %ComputerName% \/New [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[26],"tags":[],"class_list":["post-13869","post","type-post","status-publish","format-standard","hentry","category-windows"],"_links":{"self":[{"href":"https:\/\/idc.net\/help\/wp-json\/wp\/v2\/posts\/13869","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/idc.net\/help\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/idc.net\/help\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/idc.net\/help\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/idc.net\/help\/wp-json\/wp\/v2\/comments?post=13869"}],"version-history":[{"count":0,"href":"https:\/\/idc.net\/help\/wp-json\/wp\/v2\/posts\/13869\/revisions"}],"wp:attachment":[{"href":"https:\/\/idc.net\/help\/wp-json\/wp\/v2\/media?parent=13869"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/idc.net\/help\/wp-json\/wp\/v2\/categories?post=13869"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/idc.net\/help\/wp-json\/wp\/v2\/tags?post=13869"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}