Sends command output to a file.
Snap-In: Microsoft.PowerShell.Utility
Syntax:
Out-File
[-FilePath] <String> [ [-Encoding] <String>] [-Append] [-Force] [-NoClobber] [-Width <Int32>] [-InputObject <PSObject>] [-Verbose] [-Debug] [-ErrorAction <ActionPreference>] [-ErrorVariable <String>] [-OutVariable <String>] [-OutBuffer <Int32>] [-WhatIf] [-Confirm]
Description:
You may choose to have a cmdlet or a pipeline send output to a file. For example, if you want to send a list of processes to a spreadsheet, you can do so wit h the out-file Cmdlet.