下面是一此基本命令:
显示计算机网络接口:netsh interface ipv4 show interfaces
修改机器名:netdom renamecomputer WIN-HLCAQ4422I0 /newname:NEWCOMPUTERNAME
删除所有的DNS条目:Netsh interface ipv4 delete dnsserver "本地连接" all
指定DNS:netsh interface ipv4 set dnsserver "本地连接" static 127.0.0.1 primary
添加IP:netsh interface ipv4 add address "本地连接" 192.168.0.120 255.255.255.0 192.168.0.1
修改KEY:slmgr -ipk 7PJBC-63K3J-62TTK-XF46D-W3WMD
激活:slmgr.vbs -ato
加入域 :netdom join localdb /domain:scally.com
域帐户加入本地组:net localgroup administrators scally\administrator /add
-----------下面为安装AD时的配置文件--------------------
[DCINSTALL]
ReplicaOrNewDomain=Domain
NewDomain=Forest
NewDomainDNSName=scally.com
ForestLevel=0
DomainNetbiosName=SCALLY
UserName=administrator
Password=Subin!@#
SiteName=Default-First-Site-Name
DatabasePath="%systemroot%'NTDS"
LogPath="%systemroot%'NTDS"
SYSVOLPath="%systemroot%'SYSVOL"
InstallDNS=yes
ConfirmGC=yes
SafeModeAdminPassword=Subin!@#
RebootOnCompletion=yes
--------------------------------------------------------
-------------------------------在核心 服务上安装SQL2008---------------
Dism /online /enable-feature /featurename:NetFx2-ServerCore
Dism /online /enable-feature /featurename:NetFx2-ServerCore-WOW64
Dism /online /enable-feature /featurename:NetFx3-ServerCore
Dism /online /enable-feature /featurename:NetFx3-ServerCore-WOW64
Dism /online /enable-feature /featurename:MicrosoftWindowsPowerShell
?shutdown –r –t 0
-----------------------------------------------------------------------------
下面推荐一个小软件,它可以直接在Core上运行,关键是他拥有GUI用户界面。使用它来修改防火墙设计是最合适不过的了。
Core Configurator 2.0 (x64)
http://coreconfig.codeplex.com/
----------------------------------------------------------
下面为产品序列号:
Windows Server 2008 R2 的KEY为试用版
Windows Server 2008 R2 Web: KBV3Q-DJ8W7-VPB64-V88KG-82C49
SharePoint Server 2010 Enterprise Client Access License features
GGDG8-JCMXH-8KG8C-RJYYX-3Y33H
SharePoint Server 2010 for Internet Sites, Enterprise
9FPGB-W6QTT-G68T4-TBX7M-R624H
SharePoint Server 2010 Standard Client Access License features
KB443-F7CJV-J2RP4-QYQJ7-6PBB3
SharePoint Server 2010 for Internet Sites, Standard
H4P2T-CYKM7-9FKKD-DTQ7X-W69GG
-----------------------------SQLServer------------------------------
--------------------------------------------------------------------