Scripting

Only available on StudyMode
  • Download(s) : 22
  • Published : March 4, 2013
Open Document
Text Preview
Student Name ____________________________ Date _____________ Windows CLI and Batch Lab

Objectives
In this lab, students will learn the following objectives:
1 • the basic net commands for managing networks;
2 • the local and remote shutdown commands;
3 • the basic NETSH commands for setting IP addresses;
4 • common-batch language commands and environmental variables; 5 • the common Windows shell commands and batch commands; and 6 • how to create a batch file that will run from the command prompt.

Open the lab document file for this iLab assignment: Windows_CLI_Batch_iLab.docx. As you complete each task, copy and paste the required Windows CLI session output to the lab document. Also, complete any tables and answer any questions. Required information for the lab document is shown in red. Edit out all the extra commands and mistakes in your Windows CLI session.

-------------------------------------------------
Unless otherwise directed by your instructor, your lab document must be submitted to the eCollege Dropbox, as follows.

-------------------------------------------------
On-Site Submission: Submit your completed lab document to the appropriate eCollege Dropbox by 11:59 p.m. on the night before your next scheduled campus class. Online Submission: Submit your completed lab document to the appropriate eCollege Dropbox by 11:59 p.m. MDT on Sunday night at the conclusion of the week the iLab was assigned in. -------------------------------------------------

-------------------------------------------------
Late assignments may be accepted at the discretion of your instructor, but if they are accepted, grade penalties will be applied.

Note: All the configuration commands refer to the Ethernet NIC* on your computer. If you use a Wireless NIC and your Ethernet NIC is not connected, you may do the commands using your Wireless NIC. *NIC refers to Network Interface Card.

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 ___________________________________

Transfer the answers to your lab document. Copy and paste only the information for the NIC configuration settings recorded from the ipconfig/all command into the Task 1 table cell provided.

If you haven’t done so already, change the name of your Ethernet NIC from “Local Area Connection” to “Wired.” If you have a wireless NIC, change its name to “Wireless.” Instructions for this task are in the Week 1 lecture. 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.| |

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 2: Changing NIC Configuration Settings from the CLI

-------------------------------------------------
The syntax for assigning a static IP configuration to an NIC is -------------------------------------------------

-------------------------------------------------
netsh interface ip set address “Wired” source=static {IP address} {mask} {GW} {metric}, -------------------------------------------------

-------------------------------------------------
where “Wired” is the NIC name in double quotes, GW is the default gateway IP address, and metric is the number of hops to the gateway (usually 1). -------------------------------------------------...
tracking img