Contact Info

Crumbtrail

ActiveXperts.com » Administration » Powershell » Powershell 4.0 » Get-Content

Get-Content - Powershell 4.0 CmdLet

ActiveXperts Network Monitor ships with integrated Powershell scripts to monitor complex network. The scripts run out of the box
Download the ActiveXperts Network Monitor FREE version now »

Get-Content

Short description
Gets the content of the item at the specified location.

Syntax


Description
The Get-Content cmdlet gets the content of the item at the location specified by the path, such as the text in a file. 
It reads the content one line at a time and returns a collection of objects , each of which represents a line of 
content.


Beginning in Windows PowerShell 3.0, Get-Content can also get a specified number of lines from the beginning or end of 
an item.