OBJ 2 – Task5 : Get-Process | Sort Name -Descending | ConvertTo-HTML –Property Name,ID,VM,PM | Out-File c:ProcReport.html
OBJ 3 – Task 2 : New-Item c:ScriptOutput -ItemType directory
OBJ 3 – Task 7 :
$x = 1..5
$x.Count
$x[3,4] or $x[-2,($x.count-1)] or $x[-2,-1]
$y = “red”,”white”,”blue”
$z = $x + $y
OBJ 4 – Task 3: Get-Volume |Where-Object { $PSItem.SizeRemaining -gt 0 -and $PSItem.SizeRemaining / $PSItem.Size -lt .1 }
Get-Volume |Where-Object { $PSItem.SizeRemaining -gt 0 -and $PSItem.SizeRemaining /$PSItem.Size -lt .99 }