Add-Content — Basic UsageIT technician command center
PowerShell · Windows Administration

Add-Content — Basic Usage

Use Add-Content for a standard administrative task.

Copy-ready commandAdd-Content — Basic Usage
Add-Content C:\Temp\status.txt "Completed"

Requirements and permissions

Requirements
Windows PowerShell 5.1 or PowerShell 7
Permissions
Varies by command
Last reviewed
2026-07-31

Examples

Basic Usage

Use Add-Content for a standard administrative task.

Add-Content C:\Temp\status.txt "Completed"

Original command

Append text to a file.

Add-Content C:\Temp\status.txt "Completed"

Common errors

Command not found

Confirm Windows PowerShell 5.1 or PowerShell 7 is installed and available in your current shell.