Day 3 of learning PowerShell
I’m sharing my PowerShell learning journey for all to follow along. Some of you might already know this information so this might be a refresher course or you can see how I went about it; for those that are new to PowerShell hopefully these snippets help you along your PowerShell journey as well.
Update help files
How to find a cmdlet that output/convert to html
Result= ConvertTo-Html
How to find a cmdlet that can output by either file or printer.
Result= Out-File or Out-Printer
How to find a cmdlet that you can use to write to event log.
Result= Write-EventLog
How to find the cmdlets to create, modify, export, or import aliases?
Results= New-Alias, Set-Alias, Export-Alias, and Import-Alias
Is there a way to keep a transcript of everything you do in the shell?
Results= Start-Transcript and Stop-Transcript
How can you get only the most recent 100 entries in the Security event log?
Result= Get-EventLog
Is there a way to retrieve a list of services on a remote computer?
Is there a way to find what processes are running on a remote computer?
Width setting for Out-File.
Added to a File
Get a list of all aliases
shortest command line to get running processes from a computer named server1