New-Item

Create a new file, directory, symbolic link, or a registry entry. Note: This command can only be used through PowerShell. More information: https://learn.microsoft.com/powershell/module/microsoft.powershell.management/new-item.

New-Item {{path\to\file}}

New-Item -ItemType Directory {{path\to\directory}}

New-Item {{path\to\file}} -Value {{content}}

New-Item {{path\to\file1 , path\to\file2 , ...}} -Value {{content}}

New-Item -ItemType {{SymbolicLink|HardLink|Junction}} -Path {{path\to\link_file}} -Target {{path\to\source_file_or_directory}}

New-Item {{path\to\registry_key}}

New-Item {{path\to\registry_key}} -Value {{value}}