First step with MDT 2010 and PowerShell

My very first step was to add the Microsoft.BDD.PSSnapIn.

Add-PSSnapin Microsoft.BDD.PSSnapin

 

And then I could make a new PSDrive

New-PSDrive -Name MyMDT -PSProvider MDTProvider -Root \\psdc01\DeploymentShare$

 

When I have a PSDrive I can access it thru

cd MyMDT:

dir

Name
—-
Applications
Operating Systems
Out-of-Box Drivers
Packages
Task Sequences
Selection Profiles
Linked Deployment Shares
Media

This means that I can access my MDT solution and do
everything with PowerShell. I’m in love! :)

But It will get better.
To learn much and fast about how to do tasks with PowerShell you can
use the MDT Workbench.

A simple and nice task is to create a folder for every Office application
that you want to add.

With the Workbench we do like this.

mdt-newfolder

mdt-newfolder2

mdt-newfolder3

On the last picture, on the right, just above finish
you got “View Script”.

This will open Notepad with a full .ps1 script
with the task that you did in the workbench.

image

This is nice!

Thanks DXter for the heads up on this.

More on MDT 2010 and PowerShell will come soon.

 

Technorati Tags: ,

No related posts.

This entry was posted in PowerShell Blogs and tagged , . Bookmark the permalink.

3 Responses to First step with MDT 2010 and PowerShell

  1. RT @walle75: [Blog] First step with MDT 2010 and PowerShell: My very first step was to add the Microsoft.BDD.PSSnapIn. http://bit.ly/8QRpCY

  2. Fredrik Wall says:

    [Blog] First step with MDT 2010 and PowerShell: My very first step was to add the Microsoft.BDD.PSSnapIn.
    Add-PSSn… http://bit.ly/8QRpCY

  3. MSFT Scripting Guys says:

    RT @walle75: [Blog] First step with MDT 2010 and PowerShell: My very first step was to add the Microsoft.BDD.PSSnapIn. http://bit.ly/8QRpCY

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>