Anda di halaman 1dari 4

Student Name

Reginald Stewart

Class

COMP230

Date

9/4/2016

Windows CLI Commands Lab Report


NOTE: Please use Carriage Returns and Page Breaks as needed to prevent box contents from
extending across page boundaries.

Task 1: Rename the Ethernet Interface and Display IP


Configuration Settings
Open the Windows Command Prompt using the desktop or the Taskbar icon. Maximize the size of the
CLI. Use the ipconfig /all command to determine the following IP configuration settings for Wired
Ethernet NIC:
IP Address:

192.168.0.1 (Preferred)

Subnet Mask:

255.255.255.0

Default Gateway:

192.168.0.250

MAC (Physical) Address

00-50-56-9E-2A-52

Copy and paste the specified ipconfig /all command output from the Windows CLI into the Task 1 box
provided below.
Task 1 ipconfig /all Command Output
Microsoft Windows [Version 6.1.7600]
Copyright (c) 2009 Microsoft Corporation. All rights reserved.
C:\Windows\system32>ipconfig/all
Windows IP Configuration
Host Name . . . . . . . . . . . . : vlab-PC1
Primary Dns Suffix . . . . . . . :
Node Type . . . . . . . . . . . . : Hybrid
IP Routing Enabled. . . . . . . . : No
WINS Proxy Enabled. . . . . . . . : No
Ethernet adapter NIC:
Connection-specific DNS Suffix . :
Description . . . . . . . . . . . : Intel(R) PRO/1000 MT Network Connect
Physical Address. . . . . . . . . : 00-50-56-9E-2A-52
DHCP Enabled. . . . . . . . . . . : No
Autoconfiguration Enabled . . . . : Yes
Link-local IPv6 Address . . . . . : fe80::5146:91de:6608:3427%11(Preferr
IPv4 Address. . . . . . . . . . . : 192.168.0.1(Preferred)
Subnet Mask . . . . . . . . . . . : 255.255.255.0
Default Gateway . . . . . . . . . : 192.168.0.250
DHCPv6 IAID . . . . . . . . . . . : 234884137
DHCPv6 Client DUID. . . . . . . . : 00-01-00-01-14-EE-13-98-00-0C-29-DBDNS Servers . . . . . . . . . . . : fec0:0:0:ffff::1%1

COMP230_Wk1_Lab_Report.docx

Revision Date: 1213

fec0:0:0:ffff::2%1
fec0:0:0:ffff::3%1
NetBIOS over Tcpip. . . . . . . . : Enabled
Tunnel adapter isatap.{CAC6B1A4-0532-49D8-9051-CF00095F0447}:
Media State . . . . . . . . . . . : Media disconnected
Connection-specific DNS Suffix . :
Description . . . . . . . . . . . : Microsoft ISATAP Adapter
Physical Address. . . . . . . . . : 00-00-00-00-00-00-00-E0
DHCP Enabled. . . . . . . . . . . : No
Autoconfiguration Enabled . . . . : Yes
Tunnel adapter Local Area Connection* 11:
Media State . . . . . . . . . . . : Media disconnected
Connection-specific DNS Suffix . :
Description . . . . . . . . . . . : Teredo Tunneling Pseudo-Interface
Physical Address. . . . . . . . . : 00-00-00-00-00-00-00-E0
DHCP Enabled. . . . . . . . . . . : No
Autoconfiguration Enabled . . . . : Yes
C:\Windows\system32>

Task 2: Changing Interface Configuration settings from the CLI


Complete the following Windows CLI tasks using only netsh interface commands.
Copy and paste your CLI commands and command output into the Task 2 box provided below.
Task 2 CLI netsh Commands Output
C:\Users\Administrator\Desktop>netsh interface ip show config "NIC"
Configuration for interface "NIC"
DHCP enabled:
Yes
IP Address:
169.254.102.115
Subnet Prefix:
169.254.0.0/16 (mask 255.255.0.0)
InterfaceMetric:
10
DNS servers configured through DHCP: None
Register with which suffix:
Primary only
WINS servers configured through DHCP: None
C:\Users\Administrator\Desktop>netsh interface ip set address "NIC" source=stati
c 200.100.10.10 255.255.255.0 200.100.10.1 1
C:\Users\Administrator\Desktop>netsh interface ip show config "NIC"
Configuration for interface "NIC"
DHCP enabled:
No
IP Address:
200.100.10.10
Subnet Prefix:
200.100.10.0/24 (mask 255.255.255.0)

COMP230_Wk1_Lab_Report.docx

Revision Date: 1213

Default Gateway:
200.100.10.1
Gateway Metric:
1
InterfaceMetric:
10
Statically Configured DNS Servers: None
Register with which suffix:
Primary only
Statically Configured WINS Servers: None
C:\Users\Administrator\Desktop>netsh interface ip set address "NIC" source=dhcp
C:\Users\Administrator\Desktop>netsh interface ip show config "NIC"
Configuration for interface "NIC"
DHCP enabled:
Yes
IP Address:
169.254.102.115
Subnet Prefix:
169.254.0.0/16 (mask 255.255.0.0)
InterfaceMetric:
10
DNS servers configured through DHCP: None
Register with which suffix:
Primary only
WINS servers configured through DHCP: None

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 box provided below.
Task 3 CLI Shutdown Commands Output
C:\Users\Administrator\Desktop>shutdown /s /t 90 /c "Shutdown in 90 secs, Save y
our Work NOW!!"
C:\Users\Administrator\Desktop>shutdown /a
C:\Users\Administrator\Desktop>shutdown /r /t 60 /c "**Restart Will Occur in 1 M
inute**"
C:\Users\Administrator\Desktop>shutdown /a
C:\Users\Administrator\Desktop>shutdown /s /m \\Vlab-PC2 /t 120 /c "Remote Shutd
own in 2 minutes"
C:\Users\Administrator\Desktop>shutdown /a /m vlab-PC2

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 box labeled Task 4 Script. Also copy and paste the successful RUN of the script from
the Windows CLI into the Task 4 Script RUN box.
Task 4 Script
rem Clear the screen
cls
:: Disable the echo command
@ echo off
:: Include scripting header

COMP230_Wk1_Lab_Report.docx

Revision Date: 1213

echo Reginald Stewart


echo D03109191
echo 9/4/2016
::Display a message
echo "MyCommands.cmd Script is now running"NIC"
Display current IP settings
netsh interface ip show config "NIC"
::Change the NIC ethernet interface
netsh interface ip set address "NIC" source=static 150.100.10.1 255.255.255.0 150.100.10.0 0
::Creates a 6 second delay using the Windows timeout command
timeout /t 6 > nul
::Shows the DHCP settings
echo The current IP Settings is
netsh interface ip show config "NIC"
::command to shutdown computer in a designated time frame
shutdown /s /t 60 /c "Local Shutdown in 1 minute!!"
::Creates a 4 second delay using the Windows timeout command
timeout /t 4 > nul
::command to cancel shutdown process
shutdown /a
::Display a message
echo "Shutdown has been aborted"
:: message display
echo "End of script"

Task 4 Script RUN


Reginald Stewart
D03109191
9/4/2016
"MyCommands.cmd Script is now running"NIC"
'Display' is not recognized as an internal or external command,
operable program or batch file.
The filename, directory name, or volume label syntax is incorrect.
The filename, directory name, or volume label syntax is incorrect.
The current IP Settings is
The filename, directory name, or volume label syntax is incorrect.
"Shutdown has been aborted"
"End of script"
C:\comp230>

COMP230_Wk1_Lab_Report.docx

Revision Date: 1213

Anda mungkin juga menyukai