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 Group https://bit.ly/infy_premium_group

We're passionate about offering best placement materials and courses!! A one stop place for Placement Materials. We daily post Offcampus updates and Placement Materials.

Qtr No. 213, New Town Yehlanka Indore 454775

admin@prepflix.in