Mary needs to create a new directory named “Projects” within her “C:\Users\Mary” directory. She wants to ensure that the directory is created correctly and efficiently using the appropriate command. Which of the following PowerShell commands should she use?

New-Item -Path "C:\Users\Mary\Projects" -ItemType Folder

New-Item -Path "C:\Users\Mary\Projects" -ItemType Directory

New-Item -Path "C:\Users\Mary\Projects" -Type Directory

New-Item -Path "C:\Users\Mary\Projects" -Type Folder

Verified Answer
Correct Option - b

To get all Infosys Certified Full Stack System Administrator - Windows - Intermediate Exam questions Join Telegram Group https://rebrand.ly/lex-telegram-236dee

Telegram