nerdexam
Microsoft

70-695 · Question #89

You have a server named Server1 that runs Windows Server 2012 R2. Server1 has the Microsoft Deployment Toolkit (MDT) installed and a deployment share is created. You need to add an application named…

The correct answer is D. New-PSDrive. To effectively use Microsoft Deployment Toolkit (MDT) PowerShell cmdlets like Import-MDTApplication, it is often necessary to first create a PowerShell drive mapping to the deployment share.

Implement a Lite-Touch Deployment

Question

You have a server named Server1 that runs Windows Server 2012 R2. Server1 has the Microsoft Deployment Toolkit (MDT) installed and a deployment share is created. You need to add an application named App1.exe to the deployment share by using Windows PowerShell. You plan to run the following command:

Which cmdlet should you run before you run the Import-MDTApplication command?

Options

  • AImport-MDTPackage
  • BUpdate-MDTDeploymentShare
  • CSet-ExecutionPolicy
  • DNew-PSDrive

How the community answered

(26 responses)
  • A
    4% (1)
  • B
    4% (1)
  • D
    92% (24)

Why each option

To effectively use Microsoft Deployment Toolkit (MDT) PowerShell cmdlets like Import-MDTApplication, it is often necessary to first create a PowerShell drive mapping to the deployment share.

AImport-MDTPackage

Import-MDTPackage is used to import driver or operating system packages, not applications, and is not a prerequisite for importing an application.

BUpdate-MDTDeploymentShare

Update-MDTDeploymentShare regenerates the content of a deployment share after changes, which is an action performed after modifications, not before importing an application.

CSet-ExecutionPolicy

Set-ExecutionPolicy configures PowerShell's script execution restrictions and is generally set once for the system or user, not a specific prerequisite cmdlet for running an individual MDT cmdlet.

DNew-PSDriveCorrect

The New-PSDrive cmdlet is used to create a PowerShell drive, which in the context of MDT, typically maps to the root of a deployment share. This established drive provides a convenient and consistent way for subsequent MDT cmdlets, such as Import-MDTApplication, to specify and interact with the correct deployment share without requiring a full UNC path each time.

Concept tested: MDT PowerShell deployment share setup

Source: https://learn.microsoft.com/en-us/powershell/module/microsoft.powershell.management/new-psdrive

Topics

#MDT#PowerShell#New-PSDrive#deployment share

Community Discussion

No community discussion yet for this question.

Full 70-695 Practice