New-Item

noun

say it: “NOO EYE-tum” /ˈnu ˈaɪtəm/

A PowerShell command that makes a new folder or file; -ItemType Directory makes a folder and -ItemType File a file.

What does New-Item do?

New-Item makes something new: a folder with -ItemType Directory, or a file with -ItemType File (and -Value for its first line). Give it several names, with commas, to make several at once; for a folder deep in a path, it makes every missing folder on the way.

New-Item -ItemType Directory photos, music, documents

In a sentence

  • “New-Item made every missing folder along the path school\fall-2026\biology.”
  • “Sam made three folders at once with New-Item -ItemType Directory.”

Level: Novice · More PowerShell terms at this level

Updated