Monthly Archives: November 2013

SCCM 2012 R2 & MDT 2013 – Unattend.xml

0.0 00 Hi All, Customizing Unattend.xml is always fun, including when things does not work as expected and how to troubleshoot this when things are not going as planned? the way i find is simple…copy the xml file to a temp folder after changes to it happen, and i do this manually… 1- after the configure step and before the setup and configure windows, add a pause on your task sequence (i’ll be posting how to do it on a later post) 2-copy the file from c:\windows\panther\unattended\unattended.xml to c:\temp\phase1.xml 3- continue your task sequence and the setup and configure windows will happen… 4- once the restart countdown start copy the same file again to c:\temp\phase2.xml now it is time to leave the installation to happen and your task sequence to finish and troubleshoot your xml files… couple of problems i already found when customizing the xml: 1- order of the…


4.2 06 Hi All, Today i’m happy to share with you that my CM12 Book is available via Amazon (US, UK and European) Deutschland: France: Italy: Spain: United Kingdom: United States:  

Change PXE Password on all DP’s

4.7 03 Have you ever tried to change the PXE password for your DP’s?? it is easy isn’t it?!?!?! go to the properties of your DP and change the password there… but if you have 100+ DP’s, it will take a bit of time, don’t it? This is what happen with a good friend of mine and he asked help… if you’re in the same situation, the following powershell script is here to help :), you’ll only need to change the sdkserver, sitecode and password to the values you want $sdkserver=”SDKSERVERNAME” $sitecode=”SITECODE” $password=”PASSWORD” $property=”PXEPassword” $passwordclass = [wmiclass]”” $passwordclass.psbase.Path = “\\” + $sdkserver + “\ROOT\SMS\site_” + $SiteCode + “:SMS_Site” $inParams = $passwordclass.GetMethodParameters(“EncryptDataEx”) $inParams[“Data”] = $password $inParams[“SiteCode”] = $SiteCode $outParams = $passwordclass.InvokeMethod(“EncryptDataEx”, $inParams, $null) $PXEpassword = $outParams.EncryptedData.ToString() #Write-Output “PXE Password is set to the following encrypted value: ” $PXEpassword $listofDP = gwmi -computer $sdkserver -namespace “root\sms\site_$sitecode” -query “select * from SMS_SCI_SysResUse where…

SCCM 2012 R2 and MDT 2013 – UDI

0.0 00 Hi All, 1 of my clients is using SCCM 2012 R2 with MDT 2013 for the UDI (User driven installation). The UDI is really simple, ask name of the computer, OU/Domain, User primary user as well as language. As you can see here, UDI does not format the PC. Based on this, we created a new UDI XML file and created our task sequence with the 1st step when in winpe is to format the disk. The problem start after the UDI Wizard runs, as it clear the OSDisk variable. After this, you’ll see the error The parameter is incorrect. (Error: 80070057; Source: Windows) when trying to apply the OS as i described here Looking at the MDT code, i found that if the OSDDiskpart is set to TRUE, mdt will clear the OSDisk Variable and if it is set to anything else, it will get the value from OSDTargetDrive….

SCCM 2012 R2 and MDT 2013 – UDI (Locale)

5.0 02 Hi All, 1 of my clients is using SCCM 2012 R2 with MDT 2013 for the UDI (User driven installation). The UDI is really simple, ask name of the computer, OU/Domain, User primary user as well as language. As you can see here, UDI does not format the PC. Based on this, we created a new UDI XML file and changed the default unattended.xml to add the UDI variables to the new OS. We changed/added the following from en-us for the code it was <InputLocale>%KeyboardLocale%</InputLocale> <SystemLocale>%UserLocale%</SystemLocale> <UILanguage>%UILanguage%</UILanguage> <UserLocale>%UserLocale%</UserLocale> the problem is when we apply the XML file, it did not change the keyboard and locale to our test location (UK), instead, it kept en-us. searching, we found a blog post for MDT 2012 Update 01 from Cameron (you can find the post here) and applying the workaround fixed the issue. after that, i found that the MDT 2013…

Local Administrators Group and Compliance Settings

4.0 01 Hi All, how do you manage the local administrators group? Many companies use the Restricted Group in the Active Directory/GPO to do it, but unfortunately, this settings is not an “add” rule, it is a replace. What i mean by this is simple: Imagine the scenario where you have 3 groups that always need be member of the admin group (Group1, Group2 and Group3). It is simple, you create a group policy and add this group of users to the restricted group. Now, you have few servers that need to have a 4th group. For server1 and server2, you need to add the group4 and for server3 and server4, you need to add group5. You can think that it is easy, just create a restricted group for those 2 set of servers adding the group4 or group5… in this scenario, once the 2nd GPO is applied, it will…

Robocopy and Task Sequence

5.0 03 Hi all, Sometimes we need copy files from the server to the client during OS deployment, but if you’re a large organization with many physical locations, copying files from a specific location may not be suitable as it may cause copying files from the WAN link. Due this, people of use DFS or use SCCM to do it creating CMD files to run as a program and execute this via TS. This is an interesting way to do, but i always try to avoid creating CMD files (I prefer use VBS to Powershell), and the reason is simple….it is another script that people need to know and need to maintain. In this world where people start early using computers, creating CMD file and maintain a CMD file may not be as simples as it was when I started..anyway… As i said, i like to avoid creating scripts and…

SCCM 2012 R2 and MDT 2013

5.0 01 Hi All, today i started testing the SCCM 2012 R2 and MDT 2013 integration and for my surprise, the Task Sequence i created (and modified) was failing with the following error: Set command line: “OSDApplyOS.exe” /image:PS100007,1 “/config:PS10000B,unattend.xml” /target:%OSDisk% The /target parameter specifies an invalid target location. Failed to run the action: Apply Operating System Image. The parameter is incorrect. (Error: 80070057; Source: Windows) at the 1st, i though that was something wrong with my image and just to be sure, did a DP update but it was not… looking at the internet I found Johan similar issue on MDT 2012 RC ( and because this, I went back to my TS and started validating the format steps… for my surprise, the MDT format step for UFDI (Format and Partition Disk (UEFI)) that i copied from the MDT TS itself had the OSDisk (Primary) a variable called OSDTemporaryDrive instead of OSDisk….

Good News! An update for Operating System Deployment in SCCM 2012 R2 is here!

4.0 02   Beautiful people of the world. Microsoft has finally released a nice new hot fix for OSD in SCCM 2012 R2. Its here!