SlideShare a Scribd company logo
1 of 1
Unit 11 Project
(from the Official Companion Content to “Learn Windows PowerShell 3 in a Month of Lunches” and
“MoreLunches.com”)
Task 1
Create a list of running processes. The list should include only process names, IDs, VM, and PM
columns. Put the list into an HTML-formatted file named C:Procs.html. Make sure that the HTML file
has an embedded title of, “Current Processes.” Display the file in a Web browser and make sure that title
appears in the browser window’s title bar.
gps | select ProcessName,ID,VM,PM | ConvertTo-HTML -Title "Current Processes" -as List | out-file
C:Procs.html
Task 2
“`t” (backtick T inside double quotes) is PowerShell’s escape sequence for a horizontal tab. Create a tab-
delimited file named C:Services.tdf that contains all services on your computer. Include only the
services’ names, display names, and status.
gsv | selectName,DisplayName,Status|export-csv -delimiter"`t"-pathServices.tdf
Task 3
Repeat Task 1, modifying your command so that the VM and PM columns of the HTML file display
values in megabytes (MB), instead of bytes. The formula to calculate megabytes, displaying the value as a
whole number, goes something like $_.VM / 1MB –as [int] for the VM property.
PS C:UsersAdministrator>gps|selectProcessName,ID,
@{l="vm(mb)";e={[int]($_.vm/1mb)}},@{l="pm(mb)";e={[int]($_.pm/1mb)}} |ConvertTo-HTML-Title
"CurrentProcesses" -asList| out-fileC:Procs.html

More Related Content

Viewers also liked (10)

Market day good
Market day goodMarket day good
Market day good
 
Practica 25
Practica 25Practica 25
Practica 25
 
Formacion de trabajos 2
Formacion de trabajos 2Formacion de trabajos 2
Formacion de trabajos 2
 
Formación de centros de trabajo
Formación de centros de trabajoFormación de centros de trabajo
Formación de centros de trabajo
 
Prueba
PruebaPrueba
Prueba
 
Untitled 1
Untitled 1Untitled 1
Untitled 1
 
Cookie
CookieCookie
Cookie
 
Germany2 smoker copy
Germany2 smoker copyGermany2 smoker copy
Germany2 smoker copy
 
Hats
HatsHats
Hats
 
Contabilidad
ContabilidadContabilidad
Contabilidad
 

Similar to Unit 11 Project - Team Dude & Dudette

Qtp not just for gui anymore
Qtp   not just for gui anymoreQtp   not just for gui anymore
Qtp not just for gui anymorePragya Rastogi
 
WORKING WITH FILE AND PIPELINE PARAMETER BINDING
WORKING WITH FILE AND PIPELINE PARAMETER BINDINGWORKING WITH FILE AND PIPELINE PARAMETER BINDING
WORKING WITH FILE AND PIPELINE PARAMETER BINDINGHitesh Mohapatra
 
The Ring programming language version 1.5.2 book - Part 7 of 181
The Ring programming language version 1.5.2 book - Part 7 of 181The Ring programming language version 1.5.2 book - Part 7 of 181
The Ring programming language version 1.5.2 book - Part 7 of 181Mahmoud Samir Fayed
 
Ten Steps To Empowerment
Ten Steps To EmpowermentTen Steps To Empowerment
Ten Steps To EmpowermentMohan Dutt
 
How to Integrate Internet of Things with Webserver with
How to Integrate Internet of Things with Webserver with How to Integrate Internet of Things with Webserver with
How to Integrate Internet of Things with Webserver with Ionela
 
Website designing company in faridabad
Website designing company in faridabadWebsite designing company in faridabad
Website designing company in faridabadCss Founder
 
.Net course-in-mumbai-ppt
.Net course-in-mumbai-ppt.Net course-in-mumbai-ppt
.Net course-in-mumbai-pptvibrantuser
 
Dbva dotnet programmer_guide_chapter8
Dbva dotnet programmer_guide_chapter8Dbva dotnet programmer_guide_chapter8
Dbva dotnet programmer_guide_chapter8Shakeel Mujahid
 
Automating Desktop Management with Windows Powershell V2.0 and Group Policy M...
Automating Desktop Management with Windows Powershell V2.0 and Group Policy M...Automating Desktop Management with Windows Powershell V2.0 and Group Policy M...
Automating Desktop Management with Windows Powershell V2.0 and Group Policy M...Microsoft TechNet
 
SynapseIndia creating asp controls programatically development
SynapseIndia creating asp controls programatically developmentSynapseIndia creating asp controls programatically development
SynapseIndia creating asp controls programatically developmentSynapseindiappsdevelopment
 
The Ring programming language version 1.5.3 book - Part 53 of 184
The Ring programming language version 1.5.3 book - Part 53 of 184The Ring programming language version 1.5.3 book - Part 53 of 184
The Ring programming language version 1.5.3 book - Part 53 of 184Mahmoud Samir Fayed
 
The Ring programming language version 1.5.3 book - Part 43 of 184
The Ring programming language version 1.5.3 book - Part 43 of 184The Ring programming language version 1.5.3 book - Part 43 of 184
The Ring programming language version 1.5.3 book - Part 43 of 184Mahmoud Samir Fayed
 
Visual c++ 2010_tutorial
Visual c++ 2010_tutorialVisual c++ 2010_tutorial
Visual c++ 2010_tutorialAyub Abd Rahman
 
Powershell Seminar @ ITWorx CuttingEdge Club
Powershell Seminar @ ITWorx CuttingEdge ClubPowershell Seminar @ ITWorx CuttingEdge Club
Powershell Seminar @ ITWorx CuttingEdge ClubEssam Salah
 

Similar to Unit 11 Project - Team Dude & Dudette (20)

Qtp not just for gui anymore
Qtp   not just for gui anymoreQtp   not just for gui anymore
Qtp not just for gui anymore
 
WORKING WITH FILE AND PIPELINE PARAMETER BINDING
WORKING WITH FILE AND PIPELINE PARAMETER BINDINGWORKING WITH FILE AND PIPELINE PARAMETER BINDING
WORKING WITH FILE AND PIPELINE PARAMETER BINDING
 
The Ring programming language version 1.5.2 book - Part 7 of 181
The Ring programming language version 1.5.2 book - Part 7 of 181The Ring programming language version 1.5.2 book - Part 7 of 181
The Ring programming language version 1.5.2 book - Part 7 of 181
 
Ten Steps To Empowerment
Ten Steps To EmpowermentTen Steps To Empowerment
Ten Steps To Empowerment
 
4.C#
4.C#4.C#
4.C#
 
How to Integrate Internet of Things with Webserver with
How to Integrate Internet of Things with Webserver with How to Integrate Internet of Things with Webserver with
How to Integrate Internet of Things with Webserver with
 
groovy & grails - lecture 13
groovy & grails - lecture 13groovy & grails - lecture 13
groovy & grails - lecture 13
 
Website designing company in faridabad
Website designing company in faridabadWebsite designing company in faridabad
Website designing company in faridabad
 
.Net course-in-mumbai-ppt
.Net course-in-mumbai-ppt.Net course-in-mumbai-ppt
.Net course-in-mumbai-ppt
 
Dbva dotnet programmer_guide_chapter8
Dbva dotnet programmer_guide_chapter8Dbva dotnet programmer_guide_chapter8
Dbva dotnet programmer_guide_chapter8
 
Asp
AspAsp
Asp
 
Automating Desktop Management with Windows Powershell V2.0 and Group Policy M...
Automating Desktop Management with Windows Powershell V2.0 and Group Policy M...Automating Desktop Management with Windows Powershell V2.0 and Group Policy M...
Automating Desktop Management with Windows Powershell V2.0 and Group Policy M...
 
SynapseIndia creating asp controls programatically development
SynapseIndia creating asp controls programatically developmentSynapseIndia creating asp controls programatically development
SynapseIndia creating asp controls programatically development
 
Controls
ControlsControls
Controls
 
The Ring programming language version 1.5.3 book - Part 53 of 184
The Ring programming language version 1.5.3 book - Part 53 of 184The Ring programming language version 1.5.3 book - Part 53 of 184
The Ring programming language version 1.5.3 book - Part 53 of 184
 
The Ring programming language version 1.5.3 book - Part 43 of 184
The Ring programming language version 1.5.3 book - Part 43 of 184The Ring programming language version 1.5.3 book - Part 43 of 184
The Ring programming language version 1.5.3 book - Part 43 of 184
 
Asp.net tips
Asp.net tipsAsp.net tips
Asp.net tips
 
Visual c++ 2010_tutorial
Visual c++ 2010_tutorialVisual c++ 2010_tutorial
Visual c++ 2010_tutorial
 
Visual programming
Visual programmingVisual programming
Visual programming
 
Powershell Seminar @ ITWorx CuttingEdge Club
Powershell Seminar @ ITWorx CuttingEdge ClubPowershell Seminar @ ITWorx CuttingEdge Club
Powershell Seminar @ ITWorx CuttingEdge Club
 

More from Lianna Babeli

Unit 10 Assignment - Long Lesson - Babeli
Unit 10 Assignment - Long Lesson - BabeliUnit 10 Assignment - Long Lesson - Babeli
Unit 10 Assignment - Long Lesson - BabeliLianna Babeli
 
Unit 11 - Final Project - Threat & Risk Assessment - Babeli
Unit 11 - Final Project - Threat & Risk Assessment - BabeliUnit 11 - Final Project - Threat & Risk Assessment - Babeli
Unit 11 - Final Project - Threat & Risk Assessment - BabeliLianna Babeli
 
Unit 9 - Remote Desktop Assistance - Babeli
Unit 9 - Remote Desktop Assistance - BabeliUnit 9 - Remote Desktop Assistance - Babeli
Unit 9 - Remote Desktop Assistance - BabeliLianna Babeli
 
Unit 7 - Password Policies and Procedures - Babeli
Unit 7 - Password Policies and Procedures - BabeliUnit 7 - Password Policies and Procedures - Babeli
Unit 7 - Password Policies and Procedures - BabeliLianna Babeli
 
Unit 5 Project - Babeli
Unit 5 Project - BabeliUnit 5 Project - Babeli
Unit 5 Project - BabeliLianna Babeli
 
Unit 11 - Assignment B - Babeli
Unit 11 - Assignment B - BabeliUnit 11 - Assignment B - Babeli
Unit 11 - Assignment B - BabeliLianna Babeli
 
Project Conclusion - Babeli
Project Conclusion - BabeliProject Conclusion - Babeli
Project Conclusion - BabeliLianna Babeli
 

More from Lianna Babeli (8)

Unit 10 Assignment - Long Lesson - Babeli
Unit 10 Assignment - Long Lesson - BabeliUnit 10 Assignment - Long Lesson - Babeli
Unit 10 Assignment - Long Lesson - Babeli
 
Unit 11 - Final Project - Threat & Risk Assessment - Babeli
Unit 11 - Final Project - Threat & Risk Assessment - BabeliUnit 11 - Final Project - Threat & Risk Assessment - Babeli
Unit 11 - Final Project - Threat & Risk Assessment - Babeli
 
Unit 9 - Remote Desktop Assistance - Babeli
Unit 9 - Remote Desktop Assistance - BabeliUnit 9 - Remote Desktop Assistance - Babeli
Unit 9 - Remote Desktop Assistance - Babeli
 
Unit 7 - Password Policies and Procedures - Babeli
Unit 7 - Password Policies and Procedures - BabeliUnit 7 - Password Policies and Procedures - Babeli
Unit 7 - Password Policies and Procedures - Babeli
 
Unit 5 Project - Babeli
Unit 5 Project - BabeliUnit 5 Project - Babeli
Unit 5 Project - Babeli
 
Unit 11 - Assignment B - Babeli
Unit 11 - Assignment B - BabeliUnit 11 - Assignment B - Babeli
Unit 11 - Assignment B - Babeli
 
Unit 8 - Project
Unit 8 - ProjectUnit 8 - Project
Unit 8 - Project
 
Project Conclusion - Babeli
Project Conclusion - BabeliProject Conclusion - Babeli
Project Conclusion - Babeli
 

Unit 11 Project - Team Dude & Dudette

  • 1. Unit 11 Project (from the Official Companion Content to “Learn Windows PowerShell 3 in a Month of Lunches” and “MoreLunches.com”) Task 1 Create a list of running processes. The list should include only process names, IDs, VM, and PM columns. Put the list into an HTML-formatted file named C:Procs.html. Make sure that the HTML file has an embedded title of, “Current Processes.” Display the file in a Web browser and make sure that title appears in the browser window’s title bar. gps | select ProcessName,ID,VM,PM | ConvertTo-HTML -Title "Current Processes" -as List | out-file C:Procs.html Task 2 “`t” (backtick T inside double quotes) is PowerShell’s escape sequence for a horizontal tab. Create a tab- delimited file named C:Services.tdf that contains all services on your computer. Include only the services’ names, display names, and status. gsv | selectName,DisplayName,Status|export-csv -delimiter"`t"-pathServices.tdf Task 3 Repeat Task 1, modifying your command so that the VM and PM columns of the HTML file display values in megabytes (MB), instead of bytes. The formula to calculate megabytes, displaying the value as a whole number, goes something like $_.VM / 1MB –as [int] for the VM property. PS C:UsersAdministrator>gps|selectProcessName,ID, @{l="vm(mb)";e={[int]($_.vm/1mb)}},@{l="pm(mb)";e={[int]($_.pm/1mb)}} |ConvertTo-HTML-Title "CurrentProcesses" -asList| out-fileC:Procs.html