Configure TCP/IP settings from command prompt in Windows Server

To configure TCP/IP settings such as the IP address, Subnet Mask, Default Gateway, DNS addresses and many other options you can use Netsh.exe utility. Netsh.exe is a command-line scripting utility that allows you to, either locally or remotely, display or modify the network configuration of a Server that is currently running. Netsh.exe also provides a scripting feature that allows you to run a group of commands in batch mode against a specified Server. Netsh.exe can also save a configuration script in a text file to help you configure other Servers if needed. You can use the Netsh.exe tool to complete the following tasks:

  • Configure interfaces
  • Configure routing protocols
  • Configure routes
  • Configure remote access behavior for Windows-based remote access routers that are running the Routing and Remote Access Server (RRAS) Service
  • Display the configuration of a currently running router on any Server
  • Use the scripting feature to run a collection of commands in batch mode against a specified Server.

With Netsh.exe we can easily view TCP/IP settings. Type the following command in a Command Prompt window (CMD.EXE):

netsh interface ip show config
The following command configures the interface named Local Area Connection with the static IP address 192.168.0.100, the subnet mask of 255.255.255.0, and a default gateway of 192.168.0.1:
netsh interface ip set address name=”Local Area Connection” static 192.168.0.100 255.255.255.0 192.168.0.1 1
Netsh.exe can also be used to configure your NIC to automatically obtain an IP address from a DHCP server:
netsh interface ip set address “Local Area Connection” dhcp
Netsh.exe can also be used to configure DNS addresses as displayed in the example below:
netsh interface ip set dns “Local Area Connection” static 192.168.0.200
Or to configure a NIC to dynamically obtain DNS settings:
netsh interface ip set dns “Local Area Connection” dhcp

Planifikoni një detyre duke përdorur “GUI” dhe CMD

Objektivi

Ne këtë laborator ju do te planifikoni nje detyre duke përdorur ndërfaqen GUI të Windows 7 dhe do të planifikoni një detyre duke përdorur komandën “Schtasks” dhe “at”.

Planifikoni një detyre duke përdorur “GUI” dhe CMD

Krijimi i llogarisë se përdoruesit në GUI dhe CMD dhe kontrollimi i përditësimeve në Windows 7

Objektivat
Ne ketë ushtrim laboratorik ju do te krijoni një llogari për përdoruesin si dhe do t’a konfiguroni Sistemin Operative për te marre përditësimet automatik duke përdorur ndërfaqen grafike të përdoruesit. Gjithashtu, do të krijohen llogarit e përdoruesve dhe do tu caktohen privilegjet përkatëse duke përdorur ndërfaqen e linjave të komandave CMD. Në fund studenti do të përpilojë një skript batch për të automatizuar procesin e krijimit të llogarive të përdoruesve.

Krijimi i llogarisë se përdoruesit në GUI dhe CMD dhe kontrollimi i përditësimeve në Windows 7