IThastobecool.com Geeks have opinions too!

19Aug/092

MDT 2010 Release Candidate!

The Release Candidate for MDT 2010 just went public!
This release promises a lot of bug fixes and is tested with pre-RC build of Config Manager 2007 SP2.

Sign up for it here: https://connect.microsoft.com/site/sitehome.aspx?SiteID=14

17Aug/0942

ZeroTouch for MDT 2010 without SCCM!

Don’t you just wish you could set all your clients to boot from network, and let the PXE server evaluate whether or not it should load the WinPE image to redeploy the computer? Well you can with SCCM using mandatory advertisements of course… but I've written a little script that will achieve the same functionality using native MDT, without the use of the SCCM infrastructure :)

Here’s how you do it:

  • Requirements:
    • MDT2010 (beta 2) /WDS installed on Windows Server 2008
    • Powershell enabled on the WDS server
    • MDT deployment share configured to use the database (i’m using an SQLEXPRESS instance configured on the same machine as MDT/WDS in this example)
    • SQL Server Management Studio or equal SQL server management tooling for editing the database.

Ok here we go and setting it up. First some simple stuff :)

  • Set your WDS server to admin approval mode

image

  • On the Directory Services tab, make sure you set the OU location in which the WDS server will create the temporary computer object for approved devices

image

  • Make sure your WDS server account has full control on the OU set in the WDS directory services

image

Ok, that was easy now wasn’t it?

Now let’s edit the MDT database to fit our needs. This assumes your already set up your database using the database wizard in the MDT Workbench.

  • Start the SQL Management Studio application and expand the MDT database (MDT_DB in this example)
  • Browse to Tables –> dbo.Settings –> Columns

image

  • Right click Collumns and select New Column

image

  • Give the new column the name of netBoot and type nvarchar(50)

image

  • Save and close the SQL management studio
  • Verify the database expansion was successful by opening the MDT Workbench and navigating to the database view > Computers > properties

image

  • Select the Details tab and browse all the way to the bottom to verify that the netBoot value is there

image

Ok, that was part 1 of the configuration. Now we have to know what to actually do with this extra field in the database. Well that’s where my script comes in. Here’s how you install it.

  • Run the following command as an administrator on the WDS/MDT server:
    • Server 2008: Powershell.exe –command “ & {Set-ExecutionPolicy Unrestricted } “
    • Server 2008 R2: Powershell.exe –command “ & {Set-ExecutionPolicy Bypass } “
  • Download the MDT-ZTI.ps1 file to your WDS/MDT server (in this example I'm using D:\MDT-ZTI.ps1)
  • Start Task Scheduler and Right click library > Create Task

image

  • Give the task a name of your liking. I’m using MDT-ZTI in this example.

image

  • On the triggers tab select: New

image

  • Begin the task: On an event

image

  • Log: Microsoft-Windows-Deployment-Services-Diagnostics/Operational
  • Source: Deployment-Services-Diagnostics
  • EventID: 4096
  • Click Ok and go to the Actions tab and select New

image

  • Add action

image

  • Start a Program
  • Program/Script: Powershell.exe
  • Add Arguments(optional): –command D:\MDT-ZTI.ps1

Ok the ZeroTouch “service” is almost ready to go. Now there’s another thing that we need to configure… we have expanded the MDT database to contain an extra column…  but how does the service know what database and what database server to use?. Well that is hardcoded in the top of the configuration of the MDT-ZTI.ps1 file. In the future I will be using params() from powershell, but for now just change it in the top of the script.

# //***************************************************************************
# // Configuration:
# // Notes: Set the database name and datasource for your environment here.
# // For SQLEXPRESS on the same server use "\SQLEXPRESS" as datasource  # //***************************************************************************
$Database = "MDT_DB"
$DataSource = ".\SQLEXPRESS"

 

 

Now how does the “service” know what computers are allowed to boot into WinPE and what computers should boot to the next boot device? That’s a simple 3 part answer:

  1. Every computer that is NOT in the MDT database will be rejected (pxeabort.com) by the ZTI.
  2. Every computer that IS IN the MDT database will be polled for the value of netBoot.
  3. If the value of netBoot does not equal FALSE it will approve the device so it will load the boot image, and then set netBoot to FALSE so the device won’t load the boot image on the next reboot :)

So if you have a computer which is not booting into winPE just clear the netBoot field in the database and on the next reboot it will boot into winPE.

IMPORTANT: Please be sure to test this first in a test environment first, it is not recommended to implement this in production directly.

Download:  MDT-ZTI

12Aug/090

MDT 2010 beta 2 new features coverage

Well, I’m not going to re-invent the wheel here, seeing as Michael Niehaus (the lead engingeer on MDT) already wrote very very nice articles on the new features of MDT 2010 beta 2.

New features 1 to 11

New features 12 to 18

26Feb/090

Microsoft Deployment Toolkit 2010 beta 2 features

Yesterday I attended a MS Livemeeting in which Michael Niehaus and Tim Mintner showed all the new features MDT 2010 beta 2 will contain.
Here’s a summary of what I believe are the most interesting changes and new features:

Beta 1 features:

  • Windows 7 and Windows server 2008 R2 Support

Beta 2 features:

  • Deployment Workbench (UI) Architecture Enhancements
  • More flexible
    • Support for multiple deployment shares (both local and remote)
    • Multi-User support for the workbench (previously more than one active instance of the deployment workbench led to strange behaviors)
    • Easier and more flexible grouping
    • Drag and drop support, even from portable deployment point
    • Long running tasks can be cancelled (or run from a command line)
    • Each deployment point can have an associated database (as opposed to a single database for all deployment points in MDT 2008)
    • Each deployment point can have linked deployment points, for replication
    • Each deployment point can have multiple media definitions
    • Drivers can be targeted to install even if not detected
  • Based on PowerShell provider
    • Wizard Pages have "View Script" and "View Output" on summary (just like SCVMM2008)
  • Script Architecture Enhancements
    • Improved diagnostics and logging
    • Better error and recovery
      • Better network retry logic (no more: unable to contact deployment point errors!)
    • Improved readability of default scripts
  • Documentation Improvements
    • Simplified documentation
    • Cross linked content
    • Covers both the why's and how's’

As you can see, there’s going to be enough changes! Suffice to say I will test-drive Beta 2 once it’s up for download!

25Feb/090

Xenserver and windows 7 part two

Just two weeks ago i told you how to get the windows 7 beta running on XenServer. At this moment Citrix describes this method as "The hard way" (i prefer to call it "The cool way" ;) ). As expected the problem is caused by running Windows 7 enlightened, this should make virtual machines faster because they know they are  virtual. As we discovered this does not work yet.

Now the easy way to run Windows 7 on XenServer: Just download this template and install it. Remember when using this template you're machine is not hypervisor aware anymore so might perform less. Because it's called the easy way lets quote how to install it to.

After downloading and unzipping the template follow the steps below.

Getting it onto your XenServer system:

1.       In XenCenter right-click on your server and select Import VM
2.       Browse to the file and select Exported Template as the Import Type

Building a Windows 7 Beta VM:

1.       Once the template is installed just click New VM button and the Windows 7 Template will show up at the top of the first screen
2.       The rest is business as usual just be sure to add a disk drive and a NIC as you are creating the VM

10Jan/090

Beta: Microsoft Deployment Toolkit 2010

Deploy Windows 7 beta with Microsoft Deployment Toolkit 2010. Join the beat and download MDT 2010 now at http://connect.microsoft.com.

MDT 2010 is the next version of Microsoft Deployment Toolkit, a solution accelerator for operating system and application deployment. New features like flexible driver management, optimized transaction processing, and access to distribution shares from any location simplify deployment and make your job easier. Deploy faster and easier with MDT 2010. Join the beta now.

Tell us what you think! Join the beta and send us your honest feedback. We appreciate your input.

Microsoft Deployment Toolkit is the fourth generation deployment accelerator from Microsoft. It is the recommended process and toolset to automate desktop and server deployment. MDT benefits you by providing:
• Detailed guidance and job aids for every organized role involved with large-scale deployment projects.
• Unified tools and processes required for desktop and server deployment in a common deployment console and collection of guidance.
• Reduced deployment time, standardized desktop and server images, along with improved security and ongoing configuration management.
Tell your peers about MDT 2010! Please forward this mail to anyone who wants to learn more about Microsoft Deployment Toolkit.