Contact Info

Crumbtrail » Administration » Powershell » Powershell 3.0 » Add-Content

Add-Content - Powershell 3.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 »


Short description
Appends content, such as words or data, to a file.

Add-Content [-Path] <String[]> [-Value] <Object[]> [-Credential <PSCredential>] [-Exclude <String[]>] [-Filter <String>
] [-Force] [-Include <String[]>] [-PassThru] [-Confirm] [-WhatIf] [-UseTransaction [<SwitchParameter>]] [<CommonParamet
Add-Content [-Value] <Object[]> [-Credential <PSCredential>] [-Exclude <String[]>] [-Filter <String>] [-Force] [-Includ
e <String[]>] [-PassThru] -LiteralPath <String[]> [-Confirm] [-WhatIf] [-UseTransaction [<SwitchParameter>]] [<CommonPa
Add-Content [-Encoding {Unknown | String | Unicode | Byte | BigEndianUnicode | UTF8 | UTF7 | UTF32 | Ascii | Default | 
Oem}] [-Force] [-Stream <string>] [-Confirm] [-WhatIf] [-UseTransaction] [<CommonParameters>]

The Add-Content cmdlet appends content to a specified item or file. You can specify the content by typing the content i
n the command or by specifying an object that contains the content.

In file system drives, the Add-Content cmdlet appends the content you specify to the end of a file. This cmdlet is not 
valid on folders.

Note: This custom cmdlet help file explains how the Add-Content cmdlet works in a file system drive. For information ab
out the Add-Content cmdlet in all drives, type "Get-Help Add-Content -Path $null" or see Add-Content at http://go.micro