How to do it...

Let's use Format-List to modify our information output on a couple of different PowerShell cmdlets:

  1. Open up PowerShell with administrative rights.
  2. Browse to a location that contains some files. I have a few saved in my documents folder, so I will input cd documents in order to navigate into my documents folder.
  3. Type dir. Then press Enter. You see the normal output of the dir command, a simple list of files, and a little bit of information about each of them:
  1. Now instead of using a simple dir, give this command a try: Dir | Format-List.
  1. That is a lot more data! As you can see, by simply adding a pipe with Format-List following ...

Get Windows Server 2016 Administration Cookbook now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.