Project 10x: Intro to PowerShell (up to 20 pts.)
What you need
- A Windows computer, real or virtual. I used Windows 7 but you could also use Win XP or Vista, or Win 8
Reference Works
You will need to figure out for yourself the commands to get the required output.
All the techniques you need are in these two places:
http://www.powershellpro.com/powershell-tutorial-introduction/ (the first 4 tutorials only)
Sam's PowerShell Notes
Creating the Files You Need
Click Start. Type in CMD and press Shift+Ctrl+Enter.
If a User Account Control box pops up, approve the privilege escalation.
In the Administrator Command Prompt, execute these commands.
In the second and third command, replace YOURNAME with your own name:
cd \
mkdir YOURNAME
cd YOURNAME
echo "12345" > a
type a a a > b
type a a a > c
type a a a > b1
dir
Your directory should contain four files, as shown in the image below on this page:
Task 1: List Files
Open Powershell and get a list of all the files in the C:\YOURNAME directory.
Your directory should contain four files, as shown in the image below on this page.
I obscured the command, but your command should be visible:
Save a screenshot with the name Proj 10xa from YOUR NAME.
Task 2: List Files in a Web Page
Create a Web page listing of all the files in the C:\YOURNAME directory.
Your directory should contain four files, as shown in the image below on this page.
Save a screenshot with the name Proj 10xb from YOUR NAME.
Task 3: List Files with Name and Size
Open Powershell and get a list of all the files in the C:\YOURNAME directory,
showing only the fullname and size, as shown in the image below on this page.
I obscured the command, but your command should be visible:
Save a screenshot with the name Proj 10xc from YOUR NAME.
Task 4: List Large Files
Open Powershell and get a list of all the files in the C:\YOURNAME directory with a
file size larger than 20 bytes, as shown in the image below on this page.
I obscured the command, but your command should be visible:
Save a screenshot with the name Proj 10xd from YOUR NAME.
Turning in Your Project
Email the images to cnit.345@gmail.com with a Subject line of
Proj 10x from Your Name.
Last modified 11-17-11 5 pm