The get-content command gets the content from the item at the specified location.
Snap-In: Microsoft.PowerShell.Management
Syntax:
Get-Content
[-Path] <String[]> [-ReadCount <Int64>] [-TotalCount <Int64>] [-Filter <String>] [-Include <String[]>] [-Exclude <String[]>] [-Force] [-Credential <PSCredential>] [-Verbose] [-Debug] [-ErrorAction <ActionPreference>] [-ErrorVariable <String>] [-OutVariable <String>] [-OutBuffer <Int32>] [-Delimiter <String>] [-Wait] [-Encoding <FileSystemCmdletProviderEncoding>]
Description:
The get-content Cmdlet reads content from the item at the specified path and writes it to the pipeline. How that data is represented depends on the provider and on the -ReadCount parameter. A provider decides how content will be broken into elements and the -ReadCount parameter determines how many of those elements are written to the pipeline as an array.