How to change Windows 2008R2 hostname when there is no GUI.
netdom renamecomputer %computername% /NewName:<New_Server_Name>
How to set/change IPv4 address.
This will show current address > netsh interface ipv4 show address
This will set IPv4 address > netsh interface ipv4 set address name=”Local Area Connection” source=static address=10.0.0.4 mask=255.0.0.0 gateway=10.0.0.1
This will set DNSServer > netsh interface ipv4 set dnsservers “Local Area Connection” static 10.0.0.1 Primary
Join existing Domain.
This will join Server to an existing Domain > netdom join MIA-RODC /Domain:woodgrovebank /UserD:administrator /PasswordD:<password> [MIA-RODC < Server Name, woodgrovebank < NETBIOS name of existing Domain, UserD < Domain Administrator]
Disable Network Connection.
netsh interface set interface “local area connection” disabled << This will disable Network Connection
netsh interface>set interface “local area connection” enabled << This will enable Network Connection
Create new Domain using unattended
dcpromo unattend:unattended.txt
unattended.txt
[DCINSTALL]
username=administrator
password=<password>
sitename=defautl-first-site-name
replicaornewdomain=domain
newdomain=forest
newdomaindnsname=<yourdomain_name>
forestlevel=3
databasepath=%systemroot%’NTDS”
logpath=%systemroot%’NTDS”
sysvolpath=%systemroot%’SYSVOl”
installdns=yes
confirmGC=yes
safemodeadminpassword=<password>
rebootoncompletion=yes
Refer: http://support.microsoft.com/kb/947034
How to add users into AD administrators group-
dsadd user “CN=mohan mathew,DC=tfs2010,DC=test” -disabled no -samid mohan -pwd <password> -mustchpwd no -memberof “CN=Administrators,DC=tfs2010,DC=test”
Share on Facebook