85.7k views
3 votes
Which of the following powershell commands will create a directory called testarchive

a. New-Item -ItemType Directory -Name testarchive
b. Make-Directory testarchive
c. Expand-Archive -path
d. Add-Directory testarchive

User VLostBoy
by
8.6k points

1 Answer

3 votes

Final answer:

The correct PowerShell command is New-Item -ItemType Directory -Name testarchive.

Step-by-step explanation:

The correct PowerShell command to create a directory called testarchive is New-Item -ItemType Directory -Name testarchive.

User Michael Du
by
8.1k points