Lab One
-
N/A
-
ConvertTo-Html
-
Out-File
for redirecting output into a file. Use the Pipe operator or theInputObject
parameter for the input.Out-Printer
is exactly the same as above, but is used for outputting to a printer. -
5 Cmdlets are available.
Get-Command -Noun Process
will show you these processes.To get the specific number,
(Get-Command -Noun Process).Count
is available, revealing 5 Process handling Cmdlets. -
Write-EventLog
-
5 commands are available.
Export-Alias
Get-Alias
Import-Alias
New-Alias
Set-Alias
-
Start-Transcript
andStop-Transcript
-
The
-Newest
parameter. -
The
Get-Service
Cmdlet lets one retrieve a list of services and access remote computers via the-ComputerName
parameter. -
The
Get-Process
Cmdlet lets one retrieve a list of running processes on computers, including remote computers via the-ComputerName
parameter. -
The
-Width
parameter lets one resize it. -
The
-NoClobber
parameter ensures that theOut-File
Cmdlet will not overwrite any existing files. -
The
Get-Alias
command. -
ps -C Server1
is the shortest possible, using theps
alias and the-ComputerName
parameter, which at shortest uses only 2 characters; the hyphen and the first character in the parameter’s name,C
. -
This can be counted quickly via
(gcm -Noun Object).Count
which yields 9. -
The
about_Arrays
topic, accessible viahelp about_Arrays
.