Wednesday, July 30, 2014

Server Core - Command Lines

To show the interfaces available
Type
netsh interface show interface

To set ip addresses
Type
netsh interface ipv4 set address name="Interface Name" source=static address=StaticIP 
mask=SubnetMask gateway=DefaultGateway

To disable and enable network card
Type
Netsh interface set interface “Interface Name” disabled
Netsh interface set interface “Interface Name” enabled



To change the interface name
Type
Netsh interface set interface name=”Local Area Connection” newname=”NewName


To add DNS Ip Address
Type
Netsh interface ipv4 add dnsserver name=”Local Area Connection” address=<IP address of DNS server>


Type

To show hostname

Hostname

To change hostname

netdom renamecomputer %COMPUTERNAME% /Newname "NEW-NAME"


To restart the computer

Type

Shutdown /r /t 0


To install active directory

Type

dcpromo /unattend /replicaOrNewDomain:Replica /replicaDomainDNSName:<DomainName> /ConfirmGC:Yes /UserName:<DomainName>\Adminsitrator /Password:* /safeModeAdminPassword:<AdminPassword>



To enable or disable Windows Firewall

Type

To Switch Off

netsh advfirewall set allprofiles state off

To Switch On

netsh advfirewall set allprofiles state on



To enable powershell and start powershell


Type

sconfig then select "4" then "2" after reboot is complete

Type

powershell






Wednesday, June 25, 2014

NPS RADIUS & VPN Server setup diagram. - LAB Environment



NPS RADIUS & VPN Server setup diagram. - LAB Environment









Configuring a VPN Connection on a Client Machine

Step 1 - Start > Run type "control.exe /name Microsoft.NetworkAndSharingCenter"


Step 2 -Select "Set up a new connection or network"


Step 3 - Select "Use my Internet Connection (VPN).


Step 4 - Type in the internet address or public IP address.


 Step 5 - Key in the username and password of the VPN User and click on "Connect"


Step 6 - VPN is connected.

 

Configuring the VPN Server as a RADIUS Client

Step 1 - Start > Run type "nps.msc"


Step 2 - Right click and select "New" on RADIUS Clients.

Step 3 - Follow the steps as below.



Configuring VPN Server and VPN Server to work with NPS RADIUS Server.

Step 1 - Start > Run type "rrasmgmt.msc"


Step 2 - Right click and Select as per below.


Step 3 - Select "Remote access (dial-up or VPN)


Step 4 - Check on "VPN"


Step 5 - Select as below to set your own IP Addresses.


 Step 6 - Create the IP Address range.


 Step 7 - Select "Yes" to set the VPN Server to work with a RADIUS server
 

 Step 8 - Type in the primary RADIUS server name (In this case it will be the NPS server) and create a shared secret.


Step 9 - Review and Finish the configuration.


 

Creating a Network Policy for VPN Servers

Step 1 - Start > Run type "nps.msc" and hit enter.

Step 2 - Right click and select "New" on Network Policies.


Step 3 - Select "Remote Access Server (VPN Dial Up)


Step 4 - Follow instructions as below.


Step 5 - Select "Access Granted"

Step 6 - Select the authentication methods.

 Step 7 - Configure the constraints as shown below or as per your preference.



Step 8 - Review and finish the new network policy.







Tuesday, June 24, 2014

Installing Microsoft Network Policy Server



Step 1 – Click on Start> Run type “servermanager.msc” and enter.



Step 2 – Check on “Network Policy and Access Server”


Step 3 – Check on “Network Policy Server”


Step 4 – Review the roles to be installed and click on “Install”