- At a command prompt, type the following:
netsh interface ipv4 show interfaces
Make a note of the number shown in the Idx column of the output for your network adapter. If your computer has more than one network adapter, make a note of the number corresponding to the network adapter for which you wish to set a static IP address.
- Set the IP address At the command prompt, type:
netsh interface ipv4 set address name="<ID>" source=static address=<StaticIP> mask=<SubnetMask> gateway=<DefaultGateway>
Where:
ID is the number from step 2 above
StaticIP is the static IP address that you are setting
SubnetMask is the subnet mask for the IP address
DefaultGateway is the default gateway
- DNS Server At the command prompt, type:
netsh interface ipv4 add dnsserver name="<ID>" address=<DNSIP>index=1Where:
ID is the number from step 2 above
DNSIP is the IP address of your DNS server
Repeat step 4 for each DNS server that you want to set, incrementing the index= number each time.
Notes
· If you set the static IP address on the wrong network adapter, you can change back to using the DHCP address supplied by using the following command:
· netsh interface ipv4 set address name="<ID>" source=dhcp
· where ID is the number of the network adapter from Step 2.
To rename the server (Make this inthyperv01)
1. Determine the current name of the server with the hostname or ipconfig command.
2. At a command prompt, type:
netdom renamecomputer <ComputerName> /NewName:<NewComputerName>
3. Restart the computer.
- To disable the firewall
· Type the following:
netsh firewall set opmode mode=disable
- To enable RDP
cscript C:\Windows\System32\Scregedit.wsf /ar 0
- To activate Server Core
start /w slmgr.vbs -ipk 7PGF4-P7GJP-FDVWM-RB93X-9XXPX
- Check the activation status
start /w slmgr.vbs –ato
- Add Server Core to the domain
netdom join ComputerName /domain:DomainName /userd:UserName /passwordd:*
- Install the Hyper-V role on Server Core
Start /w ocsetup Microsoft-Hyper-V
- Log into your Hyper V Server
- Allow program through the firewall, on server
netsh advfirewall firewall set rule group="Windows Management Instrumentation (WMI)" new enable=yes
- on client ———
netsh firewall add allowedprogram program=%windir%\system32\mmc.exe name="Microsoft Management Console"
- net localgroup "Distributed COM Users" /add hyper-v-1\dean
- on server ———
net localgroup "Distributed COM Users" /add hyper-v-1\dean
- On the Server, run the setup of SCVMM agent (vmmAgent.msi) from the command prompt. This can be found in the setup files from System Center Virtual Machine Manager.
- When adding a host to System Center Virtual Machine Manager, navigate to the folder where the security file is stored. The default location is %SystemRoot%\Program Files\Microsoft System Center Virtual Machine Manager 2007. The name of this file is SecurityFile.txt
To find the network adapters