February 2019
Intermediate to advanced
626 pages
15h 51m
English
The New-Item command is able to create files, directories, keys, and so on depending on the provider:
New-Item $env:Temp\newfile.txt -ItemType File New-Item $env:Temp\newdirectory -ItemType Directory New-Item HKLM:\Software\NewKey -ItemType Key
When creating a file using New-Item in PowerShell, the file is empty (0 bytes).
In PowerShell 5, New-Item gained the ability to create symbolic links, junctions, and hard links:
Read now
Unlock full access