Add-Content

NAME

Add-Content

SYNOPSIS

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

SYNTAX

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

DESCRIPTION

The Add-Content cmdlet appends content to a specified item or file. You can specify the content by
typing the content in 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 about the Add-Content cmdlet in all drives, type "Get-Help Add-Content
-Path $null" or see Add-Content at http://go.microsoft.com/fwlink/?LinkID=113278.

RELATED LINKS

Online version: http://technet.microsoft.com/library/hh847782(v=wps.630).aspx
Add-Content (generic): http://go.microsoft.com/fwlink/?LinkID=113278
FileSystem Provider
Clear-Content
Get-Content
Get-ChildItem
Get-Content
Get-Item
Remove-Item
Set-Content
Test-Path

REMARKS

To see the examples, type: "get-help Add-Content -examples".
For more information, type: "get-help Add-Content -detailed".
For technical information, type: "get-help Add-Content -full".
For online help, type: "get-help Add-Content -online"