[Lab Solutions]: Learn Windows PowerShell 3 in a Month of Lunches – Chapter 4 Lab.

  1. Display a list of running processes.
    1. Get-Processes
  2. Display the 100 most recent entries from the Application log – without using Get-WinEvent.
    1. Get-EventLog -LogName Application -Newest 100
  3. Display a list of all commands that are of the “cmdlet” command type.
    1. Get-Command -CommandType Cmdlet
  4. Display a list of all aliases in the current session.
    1. Get-Alias
  5. Create a new alias (d) to get a directory listening.
    1. New-Alias -Name “d” -Value Get-ChildItem
  6. Display a list of services that begin with the letter “m”.
    1. Get-Service m*
  7. Display a list of all Windows Firewall rules.
    1. Get-NetFirewallRule
  8. Display a list of only inbound Windows firewall rules.
    1. Get-NetFirewallRule -Direction inbound
Tyler
Written by Tyler