MDT 2010 + PowerShell from Windows 7

I like to do everything from my Windows 7 machine.
One administration point with all of my scripts.

So I wanted to access my MDT 2010 server thru PowerShell
from It too.

As default this will not go.
You need to Add-PSSnapIn

Add-PSSnapIn Microsoft.BDD.PSSnapIn

And you will not have that on your Windows 7 machine

out of the box. But It’s not that hard to fix.

Just install MDT 2010 on the Windows 7 machine as well.

This is a 10 MB installation file only :)

No problem!

image

And now we can access our MDT solution remote with

PowerShell.

This is a small test script

cls
Add-PSSnapIn Microsoft.BDD.PSSnapIn
New-PSDrive -Name MyMDT -PSProvider MDTProvider -Root \\padc01\DeploymentShare$
cd MyMDT:
dir

And the output will be something like

WARNING: column "CurrentLocation" does not fit into the display and was removed.

Name           Used (GB)     Free (GB) Provider      Root                          
—-           ———     ——— ——–      —-                          
MyMDT                                  MDTProvider   \\padc01\DeploymentShare$     

Name : Applications

Name : Operating Systems

Name : Out-of-Box Drivers

Name : Packages

Name : Task Sequences

Name : Selection Profiles

Name : Linked Deployment Shares

Name : Media

 

No related posts.

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

4 Responses to MDT 2010 + PowerShell from Windows 7

  1. Fredrik Wall says:

    [Blog] MDT 2010 + PowerShell from Windows 7: How to access remote MDT 2010 server with PowerShell from Windows 7, http://bit.ly/8RSvOl

  2. ravikanth says:

    RT @walle75: [Blog] MDT 2010 + PowerShell from Windows 7: How 2 access remote MDT 2010 …, http://bit.ly/8RSvOl

  3. RT @ravikanth: RT @walle75: [Blog] MDT 2010 + PowerShell from Windows 7: How 2 access remote MDT 2010 …, http://bit.ly/8RSvOl

  4. MSFT Scripting Guys says:

    RT @ravikanth: RT @walle75: [Blog] MDT 2010 + PowerShell from Windows 7: How 2 access remote MDT 2010 …, http://bit.ly/8RSvOl

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>