Which CmdLet is used to create a new item in the file system or registry?
-
New-Item
-
Create-Item
-
Move-Item
-
Invoke-Item
A
Correct answer
Explanation
New-Item is the PowerShell cmdlet specifically designed to create new items in various providers including the file system and registry. Create-Item is not a valid PowerShell cmdlet. Move-Item is used for moving or renaming items, while Invoke-Item performs the default action on an item (like opening a file).