Вы находитесь на странице: 1из 4

Student Name _william gibbs___________

Date 10/26/11___

Windows CLI Commands Lab Document


NOTE: Use Carriage Returns and Page Breaks as needed to prevent table cell contents from extending across page boundaries.

Task 1: Displaying IP Configuration Settings


Open a Windows CLI with Administrator rights ( ). Maximize the size of the CLI. Use the ipconfig /all command to determine the following IP configuration settings for your Ethernet NIC: IP Address: Subnet Mask: Default Gateway: MAC (Physical) Address 1st DNS Server IP Address 192.168.1.67 255.255.255.0 192.168.1.254 70-1A-04-4F-56-67 192.168.1.254

Copy and paste the specified ipconfig /all command output from the Windows CLI into the Task 1 table cell provided below: Task 1 ipconfig /all Command Output
C:\Users\Bill>ipconfig/all Windows IP Configuration Host Name . . . . . . . Primary Dns Suffix . . Node Type . . . . . . . IP Routing Enabled. . . WINS Proxy Enabled. . . DNS Suffix Search List. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . : : : : : : Bill-PC Broadcast No No gateway.2wire.net

Wireless LAN adapter Wireless Network Connection: Connection-specific DNS Suffix Description . . . . . . . . . . Physical Address. . . . . . . . DHCP Enabled. . . . . . . . . . Autoconfiguration Enabled . . . Link-local IPv6 Address . . . . IPv4 Address. . . . . . . . . . Subnet Mask . . . . . . . . . . Lease Obtained. . . . . . . . . Lease Expires . . . . . . . . . Default Gateway . . . . . . . . DHCP Server . . . . . . . . . . DHCPv6 IAID . . . . . . . . . . DHCPv6 Client DUID. . . . . . . . . . . . . . . . . . . . . : : : : : : : : : : : : : : gateway.2wire.net Dell Wireless 1397 WLAN Mini-Card 70-1A-04-4F-56-67 Yes Yes fe80::d129:ab8c:cbc4:b51%11(Preferred) 192.168.1.67(Preferred) 255.255.255.0 Wednesday, October 26, 2011 1:41:16 PM Thursday, October 27, 2011 5:24:23 PM 192.168.1.254 192.168.1.254 225450500 00-01-00-01-12-73-07-6F-00-25-64-65-B8-A1

DNS Servers . . . . . . . . . . . : 192.168.1.254 NetBIOS over Tcpip. . . . . . . . : Enabled Ethernet adapter Local Area Connection: Media State . . . . . . . . . . Connection-specific DNS Suffix Description . . . . . . . . . . Controller Physical Address. . . . . . . . DHCP Enabled. . . . . . . . . . Autoconfiguration Enabled . . . . : Media disconnected . : gateway.2wire.net . : Marvell Yukon 88E8040 PCI-E Fast Ethernet . : 00-25-64-65-B8-A1 . : Yes . : Yes

In the Windows CLI, use the netsh command that displays only the IP configuration settings for your Ethernet NIC. In the space provided below, write the netsh command required for the task described above:
netsh interface ip show config "wireless"

Transfer the answer to your lab document. Copy and paste the netsh command execution from the Windows CLI into the Task 1 table cell provided for this purpose. Task 1 netsh interface show config Command Output
C:\Users\Bill>netsh interface ip show config "wireless" Configuration for interface "wireless" DHCP enabled: IP Address: Subnet Prefix: Default Gateway: Gateway Metric: InterfaceMetric: DNS servers configured through DHCP: Register with which suffix: WINS servers configured through DHCP:

Yes 192.168.1.67 192.168.1.0/24 (mask 255.255.255.0) 192.168.1.254 0 25 192.168.1.254 Primary only None

Task 2: Changing NIC Configuration settings from the CLI


Complete the following Windows CLI tasks using netsh interface commands. Copy and paste your CLI commands and command output into the Task 2 table cell provided below: Task 2 CLI Command Output
C:\Scripts>netsh interface ip show config "wireless" Configuration for interface "wireless" DHCP enabled: IP Address: Subnet Prefix: Default Gateway:

Yes 192.168.1.67 192.168.1.0/24 (mask 255.255.255.0) 192.168.1.254

C:\Scripts>netsh interface ip set address "wiresless" source=static 10.0.0.10 255.255.255.0 10.0.0.1 1 DHCP enabled: IP Address: Subnet Prefix: Default Gateway: No 10.0.0.10 10.0.0.0/24 (mask 255.255.255.0) 10.0.0.1

C:\Scripts>netsh interface ip set address "wiresless" source=dhcp C:\Scripts>netsh interface ip show config Configuration for interface "wireless" DHCP enabled: IP Address: Subnet Prefix: Default Gateway: "wireless" Yes 192.168.1.67 192.168.1.0/24 (mask 255.255.255.0) 192.168.1.254

Task 3: Windows CLI Shutdown Commands


Complete the following Windows CLI shutdown tasks. Copy and paste your CLI commands and command output into the Task 3 table cell provided below:. Task 3 CLI Command Output
1.) C:\Users\Bill>shutdown /s /t 60 /c "Shutdown in 60 Seconds!!!"

2.)

C:\Users\Bill>shutdown /r /f /m \\billslaptop /t 60 -c "**Restart Will Occur in 1 Minute**"

3.) C:\Users\Bill>shutdown /s /f /m \\billslaptop /t 120 -c "!! Remote Shutdown of your Computer will Occur in 2 Minutes !!

Task 4: Executing Windows CLI Commands in a Batch File


Copy and paste your script file content (from NotePad or the Windows CLI using the type command) into the Task 4 table cell labeled Task 4 Script. Also copy and paste the successful RUN of the script from the Windows CLI into the Task 4 Script RUN table cell.
3

Task 4 Script

Task 4 Script RUN

Вам также может понравиться