Lab One
-
N/A
-
ConvertTo-Html -
Out-Filefor redirecting output into a file. Use the Pipe operator or theInputObjectparameter for the input.Out-Printeris exactly the same as above, but is used for outputting to a printer. -
5 Cmdlets are available.
Get-Command -Noun Processwill show you these processes.To get the specific number,
(Get-Command -Noun Process).Countis available, revealing 5 Process handling Cmdlets. -
Write-EventLog -
5 commands are available.
Export-AliasGet-AliasImport-AliasNew-AliasSet-Alias
-
Start-TranscriptandStop-Transcript -
The
-Newestparameter. -
The
Get-ServiceCmdlet lets one retrieve a list of services and access remote computers via the-ComputerNameparameter. -
The
Get-ProcessCmdlet lets one retrieve a list of running processes on computers, including remote computers via the-ComputerNameparameter. -
The
-Widthparameter lets one resize it. -
The
-NoClobberparameter ensures that theOut-FileCmdlet will not overwrite any existing files. -
The
Get-Aliascommand. -
ps -C Server1is the shortest possible, using thepsalias and the-ComputerNameparameter, 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).Countwhich yields 9. -
The
about_Arraystopic, accessible viahelp about_Arrays.