Contact Info

Crumbtrail

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

Get-Content - Powershell 1.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

Description
Get content from item (specific location)

Usage


Options


Example(s)
Display the content of a file on the console (via the pipeline):

PS C:\>get-content -Path C:\myFile.txt

Get the first 50 lines from one file and write into another file:

PS C:\>get-content c:\Logs\BigLogfile.txt -totalcount 50 | set-content c:\Logs\top50.txt