October 2017
Intermediate to advanced
440 pages
11h 47m
English
The New-Item command is able to create files, directories, and keys:
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:
The links ...
Read now
Unlock full access