PowerShell: Create New File

By Xah Lee. Date: . Last updated: .

Create New File

# create a empty new file in current dir
New-Item xnew.txt
# create a file with content
New-Item xnew.txt -value "abc"

PowerShell. Working on Files

PowerShell. Create New File or Dir