Contact Info

Crumbtrail

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

Set-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 »

Set-Content

Short description
Writes or replaces the content in an item with new content.

Syntax


Description
The Set-Content cmdlet is a string-processing cmdlet that writes or replaces the content in the specified item, such 
as a file. Whereas the Add-Content cmdlet appends content to a file, Set-Content replaces the existing content. You 
can type the content in the command or send content through the pipeline to Set-Content.