Commit d183e92c authored by O'Reilly Media, Inc's avatar O'Reilly Media, Inc
Browse files

Initial commit

parents
Loading
Loading
Loading
Loading
+7 −0
Changes for Learning Windows PowerShell - Working Files/Chapter 1/No Work Files.rtf: 7 added lines, 0 removed lines.
Original line number Diff line number Diff line
{\rtf1\ansi\ansicpg1252\cocoartf1038\cocoasubrtf350
{\fonttbl\f0\fswiss\fcharset0 Helvetica;}
{\colortbl;\red255\green255\blue255;}
\margl1440\margr1440\vieww9000\viewh8400\viewkind0
\pard\tx720\tx1440\tx2160\tx2880\tx3600\tx4320\tx5040\tx5760\tx6480\tx7200\tx7920\tx8640\ql\qnatural\pardirnatural

\f0\fs24 \cf0 No work files for this lesson...}
 No newline at end of file
+7 −0
Changes for Learning Windows PowerShell - Working Files/Chapter 10/No Work Files.rtf: 7 added lines, 0 removed lines.
Original line number Diff line number Diff line
{\rtf1\ansi\ansicpg1252\cocoartf1038\cocoasubrtf350
{\fonttbl\f0\fswiss\fcharset0 Helvetica;}
{\colortbl;\red255\green255\blue255;}
\margl1440\margr1440\vieww9000\viewh8400\viewkind0
\pard\tx720\tx1440\tx2160\tx2880\tx3600\tx4320\tx5040\tx5760\tx6480\tx7200\tx7920\tx8640\ql\qnatural\pardirnatural

\f0\fs24 \cf0 No work files for this lesson...}
 No newline at end of file
+11 −0
Changes for Learning Windows PowerShell - Working Files/Chapter 2/Windows Forms Example.txt: 11 added lines, 0 removed lines.
Original line number Diff line number Diff line
[void][reflection.assembly]::LoadWithPartialName(
"System.Windows.Forms")
$form = new-object Windows.Forms.Form
$form.Text = "My First Form"
$button = new-object Windows.Forms.Button
$button.text="Push Me!"
$button.Dock="fill"
$button.add_click({$form.close()})
$form.controls.add($button)
$form.Add_Shown({$form.Activate()})
$form.ShowDialog()
 No newline at end of file
+56.5 KiB

File added.

No diff preview for this file type.

+46 −0
Changes for Learning Windows PowerShell - Working Files/Chapter 4/Format Examples.txt: 46 added lines, 0 removed lines.
Original line number Diff line number Diff line
Get-Process

Get-Process | Format-Wide

Get-Process | Format-Wide -column 1  (also 2,3,4,5,...)

------------------------------------------------------------------------------

Get-Process | Format-List

Get-Process -Name powershell | Format-List

(you can specify properties to be included):
Get-Process -Name powershell | Format-List -Property ProcessName,FileVersion,StartTime,Id

(wildcard can be used to view all properties)
Get-Process -Name powershell | Format-List -Property *

------------------------------------------------------------------------------------

Get-Process | Format-Table

Get-Process -Name powershell | Format-Table

(Note that data often gets truncated)
Get-Process -Name powershell | Format-Table -Property Path,Name,Id,Company

(The Autosize parameter displays as much info as possible beginning
with the leftmost columns)
Get-Process -Name powershell | Format-Table -Property Path,Name,Id,Company -AutoSize

(To see more of a certain column, move it to the left)
Get-Process -Name powershell | Format-Table -Property Company,Name,Id,Path -AutoSize

(The Wrap parameter will prevent truncated data)
Get-Process -Name powershell | Format-Table -Wrap -Property Name,Id,Company,Path

(The GroupBy parameter groups output based on a property value)
Get-Process -Name powershell | Format-Table -Wrap -AutoSize -Property Name,Id,Path -GroupBy Company






Loading