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.
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)- A4% (1)
- B4% (1)
- D92% (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.
Import-MDTPackage is used to import driver or operating system packages, not applications, and is not a prerequisite for importing an application.
Update-MDTDeploymentShare regenerates the content of a deployment share after changes, which is an action performed after modifications, not before importing an application.
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.
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
Community Discussion
No community discussion yet for this question.