Quantcast
Channel: Microsoft Deployment Toolkit forum
Viewing all 11297 articles
Browse latest View live

Powershell script to add domain group to local Administrators Group

$
0
0

I have a script that adds a domain group to the local administrators group and it works great in 3 out of 4 of my task sequences.  All of my task sequences are identical. The only difference is the WIM used and I copy the Powershell command from the first task sequence into the next task sequence to ensure there aren't any typos.

With the one task sequence I am having an issue with I have tried two different WIMs but I'm still getting this error.  Any help would be greatly appreciated.

Thanks,

Andy


Image deployment Stuck at Applying Unattend.xml with DISM.EXE

$
0
0

Hello All, 

I've integrated around 90 Patches into MDT Image of windows Server 2012. so far, only Image and Packages are in Media contents.

When I am deploying Image on a VM- then it is working fine till applying Operating system Image upto (100%)...and gets stuck at Applying Unattend.xml with DISM.exe which is very next step, see screenshot below.

This process is going on for a longer time and after this I am getting below Error and Image is not getting deployed ...

Please advise!!!

Please....

Windows 8 Start Screen Customization for All Users

$
0
0

Short Versions:

    • How can I permanently remove (and prevent automatic re-installation of) some of the default Packaged Applications installed on Windows 8 Pro?
    • How can I save a customized tile arrangement?

    Long Version:  I'm configuring a semi-automated testing system using MDT2012 to install Windows 8 to multiple hardware configurations.  I would like to be able to remove all of the default applications except for the Desktop, and Internet Explorer.  I would like to add applications such as the Command Prompt, and Notepad.  Ideally, I would be able to group the tiles in various ways, capture the configuration, and push it to all of the automatically generated accounts so that we get a standard layout when testing with a User Account, a Guest Account, and/or an Administrator account.

    Windows 7 and Vista have both been working perfectly for over a year (with MDT2010), and I've managed to update them to work with MDT2012 without too much trouble.  I've gotten all of the custom configurations to work, through various means (some scripting, some unattended settings, some task sequence editing, some extensions for the MDT, etc.), however there is one remaining set of configurations that eludes me.  The Start Screen.

    So far, I have tried running a PowerShell script to perform the Remove-AppxProvisionedPackaged during the Audit-User phase, running sysprep /generalize, and capturing the system to a WIM (both with, and without the CopyProfile setting), and I'm able to get most of the user settings, the exceptions being the Start Screen, and the default view of the various folders.  I work around the latter by exporting/importing the Bags registry settings into the default user account; however the former has completely eluded me.  I have also tried configuring group policy settings; however those only work with the Enterprise edition (which isn't what our customers will be using, so changing the SKU isn't an option).

    Deployment Summary information

    $
    0
    0

    How does MDT gather the errors and warnings to deployment summary that is showed when the task sequence finishes?

    Error: 0x800f081e The specified package is not applicable to this image

    $
    0
    0

    Hello All,

    I've been trying to add some patches in windows 2012 Image through MDT. I've downloaded Patches for Windows 2012 OS from MS Patches links and now getting below output while updating deployment share for all patches

    ************************************************

    Deployment Image Servicing and Management tool
    Version: 6.3.9600.17029
    Image Version: 6.3.9600.16384
    Processing 1 of 1 - Adding package Package_for_KB2918614~31bf3856ad364e35~amd64~~6.2.1.4
    Error: 0x800f081e

    The specified package is not applicable to this image.

    The DISM log file can be found at C:\windows\Logs\DISM\dism.log

    Exit code = -2146498530

    DISM /Add-Package failed, rc = -2146498530.
    Injected package Package_for_KB2918614 neutral amd64 6.2.1.4

    *************************************************************

    Can some please advise what is this and how to get rid of this issue.....please!

    SelectTransport: creating directory failed: Win32Exception: root of directory to create not found: The system cannot find the path specified. [0x00000003]

    $
    0
    0

    USMT is failing with error 71 for all users in a specific office when backing up to a specific share:

                                         COMPUTERNAME\Guest, administrator: No, interactive: Yes, logged on: No, has profile: No
                                         DOMAIN\USERNAME, administrator: Yes, interactive: Yes, logged on: Yes, has profile: Yes
                                         COMPUTERNAME\Administrator, administrator: Yes, interactive: Yes, logged on: No, has profile: Yes
    2014-10-31 12:52:37, Status                [0x000000] Activity: 'MIGACTIVITY_TRANSPORT_SELECTION'
    2014-10-31 12:52:37, Info                  [0x000000] Processing the settings store
    2014-10-31 12:52:37, Error                 [0x000000] SelectTransport: creating directory \\san.f.q.d.n\share$\username\BACKUP\USERNAME\USMT failed: Win32Exception: root of directory to create not found: The system cannot find the path specified. [0x00000003] class UnBCL::DirectoryInfo *__cdecl UnBCL::Directory::CreateDir(const class UnBCL::String *)[gle=0x00000005]
    2014-10-31 12:52:37, Info                  [0x000000] Failed.[gle=0x00000091]
    2014-10-31 12:52:37, Info                  [0x000000]   A Windows Win32 API error occurred
       Windows error 3 description: The system cannot find the path specified.[gle=0x00000091]
    2014-10-31 12:52:37, Info                  [0x000000]   Windows Error 3 description: The system cannot find the path specified.
    2014-10-31 12:52:37, Info                  [0x000000] USMT Completed at 2014/10/31:12:52:37.861[gle=0x00000091]
    2014-10-31 12:52:37, Info                  [0x000000] Entering MigShutdown method
    2014-10-31 12:52:37, Info                  [0x080000] COutOfProcPluginFactory::FreeSurrogateHost: Shutdown in progress.
    2014-10-31 12:52:37, Info                  [0x0803e5] Not unmapping HKLM\ELAM; it is not mapped
    2014-10-31 12:52:37, Info                  [0x0803e6] Removing mapping for HKLM
    2014-10-31 12:52:37, Info                  [0x0803e7] Successfully unmapped HKLM
    2014-10-31 12:52:37, Info                  [0x0803e6] Removing mapping for HKU
    2014-10-31 12:52:37, Info                  [0x0803e7] Successfully unmapped HKU
    2014-10-31 12:52:37, Info                  [0x080487] Destroying OS analysis service
    2014-10-31 12:52:37, Info                  [0x080488] Destroyed OS analysis service
    2014-10-31 12:52:37, Info                  [0x000000] Leaving MigShutdown method
    2014-10-31 12:52:37, Info                  [0x000000] ----------------------------------- USMT ERROR SUMMARY -----------------------------------
    2014-10-31 12:52:37, Info                  [0x000000] * USMT error code 71:
    2014-10-31 12:52:37, Info                  [0x000000] +-----------------------------------------------------------------------------------------
    2014-10-31 12:52:37, Info                  [0x000000] | A Windows Win32 API error occurred
    2014-10-31 12:52:37, Info                  [0x000000] | Windows error 3 description: The system cannot find the path specified.
    2014-10-31 12:52:37, Info                  [0x000000] +-----------------------------------------------------------------------------------------

    As the user in question, when I browse \\san.f.q.d.n\share$\username, the BACKUP directory exists, but there are no sub directories.

    I manually created the sub directories, USERNAME\USMT - so the full path now exists: \\san.f.q.d.n\share$\username\BACKUP\USERNAME\USMT

    I re-ran USMT but the process returned the same error.

    If I specify other shares not on san.f.q.d.n but on san1.f.q.d.n or server.f.q.d.n or even workstation.f.q.d.n, it works fine.

    Can someone provide guidance on how to troubleshoot this further?

    Different task sequences available on different machines??

    $
    0
    0

    Hi there, 

    hopefully someone has seen this before as i'm a bit confused here. I've got MDT 2013 installed and have been happily deploying to all manner of machines for months now. 

    But today i've noticed that different task sequences are appearing for different machines. Eg, i have a DELL Latitude E7240 that shows the task sequences as expected, however when i run the same lite touch vbs script on an Optiplex All In One (that has been imaged off the network before), i get a completely different set of task sequences available.. when i try to select one of these, i get a message 'Bad task sequence item (missing OS)'. 

    This is definitely connecting to the same deployment share and they are the same PE version (64 bit). The task sequences i want to see are checked as enabled and not hidden etc.. 

    I just don't know where to check from here, any ideas for me please?? 

    Adam

    MDT 2013 - Passing Deployment Tech's Credentials to a PowerShell AD script?

    $
    0
    0

    Hello,

    I have a PowerShell script written to add a target machine to a specific AD Group.

    This script is set to run as a custom Task Sequence.

    Script:

    $ADServername = Get-ADComputer $env:COMPUTERNAME
    $group = Get-ADGroup -Identity "ADGruopName"
    ADD-ADGroupMember -Identity $group -Members $ADServername

    The issue is, at the time of this task sequence, the server is logged on and running as the local administrator.

    The deployment tech's credentials are held as: "%UserDomain%\%UserID%" "%USerPassword%" in PowerShell throughout the MDT deployment process.

    How can I pass those credentials to the script without prompting the user/deployment tech?

    Thanks!


    MDT 2013 error when installing OS - Win7

    $
    0
    0

    Hello all,

    I have MDT 2013 installed on one of my severs and am attempting to deploy an image to automate the process.  I have the LTI flash drive and get all the way to installing the OS when at 1% it fails.  I have the logs for it arelocated here and from what I can tell it looks like it's a task issue.  I have gone over my task several times and from what I can tell I am applying it properly.

    Any and all help is appreciated!


    Please remember to click "Mark as Answer" on the post that helps you, and to click "Unmark as Answer" if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.

    customsettings.ini - if model is and architecture is

    $
    0
    0

    Hi

     

    as topic. .. how can I install applications or set settings based on:

     

    if architecture is x64 and model is 2056wvx for instance..

     

    I'm pretty sure there's a way.. but can't remember the correct way of the syntax..

     

    Thanks in advance...

     

    Martin


    Kindest regards, Martin

    MDT monitor service cannot start successfully

    $
    0
    0

    Does anyone have a clue about this?

    Server:Win 2008 R2 x64

    MDT 2013



    Detecting OS version and architecture from deployment wizard in WinPE

    $
    0
    0

    I have a custom wizard page that is displayed after the user chooses task sequence. I'm trying to add some logic to this custom page and I need to be able to detect the OS version and architecture that the task sequence is going to install. 

    First I tried using  "oEnvironmentItem("OSVersion")" but because we are in WinPE this returns as "WinPE", not the OS that is configured to task sequence.

    Is there a built-in function already that I can use?

    xcopy shortcut to litetouch on desktop with special function.

    $
    0
    0

    Hey all my MDT guru's out there. First post, here it goes.

    I have a lot of experience with MDT now, but still trying to hammer out the details. 

    I would like a shortcut back to an MDT script that copies to the desktop in the administrator account.

    I would like for it to only show my "Install Applications" task sequence.

    Possibly a way to deploy this shortcut to my end users. Any ideas?

    Checking credentials before adding to the domain mdt 2013

    $
    0
    0
    Hi everyone. I was wondering if it was possible to create a script or task that checks the credentials of the user adding the computer to the domain during the image process begins. Our problem is the tech enters their credentials in the winpe environment and then it runs through the image. They will not know until its done if they typed their credentials correctly. We used to have a set username and password set but due to privacy concerns we had to scratch that and go to this system.  

    MDT 2013 Task Sequence return to command prompt

    $
    0
    0

    Hey All,

    I created a fresh MDT 2013 share on a 2008 R2 machine that also holds the WDS for PXE.

    Right after it applies DISM, it restarts back to a command prompt, my logs don't report any errors. When I type exit, the machine reboots and the task sequence continues as normal. Here is the peice in my dynamic log where it stops logging. Last line is where it stops and I type exit.

    ZTIdrivers processing completed successfully. ZTIdrivers11/3/2014 11:11:59 AM0 (0x0000)
    Event 41001 sent: ZTIdrivers processing completed successfully.ZTIdrivers11/3/2014 11:11:59 AM0 (0x0000)
    Will boot into Windows PE architecture x64 to match OS being deployed.ZTIWinRE11/3/2014 11:12:00 AM0 (0x0000)
    OSDTargetDriveCache was determined earlier : C: ZTIWinRE11/3/2014 11:12:00 AM0 (0x0000)
    Property OSDTargetDriveCache is now = C:ZTIWinRE11/3/2014 11:12:00 AM0 (0x0000)
    Property OSDisk is now = C:ZTIWinRE11/3/2014 11:12:00 AM0 (0x0000)
    WinRE is not enabled, Skip.ZTIWinRE11/3/2014 11:12:00 AM0 (0x0000)
    ZTIWinRE processing completed successfully. ZTIWinRE11/3/2014 11:12:00 AM0 (0x0000)
    Event 41001 sent: ZTIWinRE processing completed successfully.ZTIWinRE11/3/2014 11:12:00 AM0 (0x0000)
    Property PHASE is now = STATERESTOREZTINextPhase11/3/2014 11:12:00 AM0 (0x0000)
    ZTINextPhase COMPLETED.  Return Value = 0 ZTINextPhase11/3/2014 11:12:00 AM0 (0x0000)
    ZTINextPhase processing completed successfully. ZTINextPhase11/3/2014 11:12:00 AM0 (0x0000)
    Event 41001 sent: ZTINextPhase processing completed successfully.ZTINextPhase11/3/2014 11:12:01 AM0 (0x0000)

    A little further along I noticed it changed the state to dirty. But I don't think that's related. Could be wrong.


    -G


    Sysprep File General Question

    $
    0
    0

    Good afternoon,

    I'm trying to get my deployment share to actually work correctly...  Background is this.

    Before we had a deployment share we created the image by doing this.

    Step 1.  Load OS onto ref machine

    Step 2.  Create sysprep answer file using AIK

    Step 3.  Syspreped machine and shutdown

    Step 4.  Captured image using clonezilla. 

    We then created a deployment share but could never get the sysprep file to apply correctly so we said screw it and put it up on the share un syspreped.  This creates a few issues.  Mainly with SUS and DC's. 

    So I decided to finally look more into this and it turns out there is this LiteTouch.wsf file I need to invoke from the reference machine.  Doing this and seeing the image file work was amazing...  However it still does not apply certain things.  For example, the copy profile true...  No matter where I seem to stick this in the sysprep file it does not get applied.  Here is what I have done

    Step 1.  Loaded my image from Clonezille Pre Syspreped and updated it to the newest windows patches(Including IE 11, I removed IE settings from the sysprep as that is known to cause issues and I really don't care about IE at this point, I can customize that later).  Not all machines sit in a domain hence why copy profile needs to work...  I could use a local GP.. 

    Step 2.  Created a sysprep and capture task

    Step 3.  ran LiteTouch.wsf and captured the image

    Step 4.  Swapped out images in my current OS deployment task

    Step 5.  Imaged using LiteTouch boot CD

    I then verified the SID's were different and they were.  I then noticed that NONE of my profile settings came down.  Is there some kind of log I can be looking at?  I looked at the setupact log and I don't even see the word CopyProfile in it, like it's not processing that part of the answer file or it's not processing any of it.  Am I missing something easy?

    I would like to not sysprep my reference machines twice... 

    WDS/MDT - Drivers Inject

    $
    0
    0

    Hi All,

    I have been using WDS/MDT/WSUS for a while now, and its in a good place apart from getting drivers to inject, the main problem being on-board LAN Drivers. In some of our builds we have add-in Intel NICs and these work perfect once you hit windows, but if you try and use the on-board drivers we always get a connection error:

    I have downloaded the drives required and tests it by installing the drivers separately, I used the same download to import into the out-of-box drivers. I updated the WIM image by regenerating it completely, and I also delete the old boot image from WDS and replaced it with the new one.

    I have even done comparisons on the FileRepository - with the drivers installed and without, and using the changes created from that to import the drivers/.inf files still without any luck.

    Information:

    Windows Server 2012
    MDT - 6.2.5019.0
    WDS - 6.2.9200.16384
    WSUS - 6.2.9200.16.384

    This is the last thing I really want to get working on this system/setup, any help would be much appreciated. To me it seems like the drivers are not importing correctly before windows is booted, which is then causing the TS to fail as it has no connection, has anyone else experienced this problem and actually fixed it?

    If you require anymore information, just ask and I will get them across asap - some items take longer than others due to removing Names as everything is under NDA. Please also when asking for more information state the location of files, will make life a lot easier and quicker for responses.

    Thanks


    Task Sequence Doesn't Resume When Restarted into WinPE

    $
    0
    0

    What's the proper process to restart into WinPE and resume the TS just like the Sysprep & Capture TS?

    In my test MDT 2013 OSD Task Sequence, I've copied the following steps from a stock Sysprep & Capture Task Sequence into my test TS:

    • Apply Windows PE - cscript.exe "%SCRIPTROOT%\LTIApply.wsf" /PE /STAGE
    • Apply Windows PE (BCD) - cscript.exe "%_SMSTSMDataPath%\Scripts\LTIApply.wsf" /PE /BCD

    Although it does correctly reboot into WinPE, it DOES NOT resume the TS: Instead it pulls up the Task Sequence selection screen.

    Trying to run powershell script after OS install, task sequence won't use credentials..

    $
    0
    0

    Hello!

    Im trying to create a reference image of Windows Embedded 8.1. Im using the "Standard Client Task Sequence" as template with an added powershell script to install .Net Framework 3.5. The problem that i experience is that when the OS have installed and MDT has logged in as Administrator the task sequence can't run the powershell script that is located on the deploymentshare since my MDT server wan't credentials. Under the deployment of the OS there is no problem using the local account that i have configured in Bootsstrap.ini. The Deploymentshare on the server is shared to everyone with full access so i don't really understand why this happends.. How can i solve this?

    Tried to turn off protecting shareing on the server but the option doesn't exists for some reason.. Is it because the server is in a domain? If i run the task sequence without the script everything works perfect.

    Thanks in advance.

    // Anthon

    Keep extra partition on deployment with MDT 2013

    $
    0
    0
    helloall,
    I am usingMDT2013to make thedeploymentofsome workstationsin the company,howeverthey allhavean extrapartition(D:\),doingsome testingI noticed that the MDTdoescleantheentiredisk, notjust on theC:\ drive.Is it possibleto get theMDTformatjust drivethesystemkeepingthe extra drive(D:\)?

    Thank you.

    Eduardo Sena | Microsoft Certified Professional | Embaixador Windows 8 | MVP Windows-Expert IT Pro | eduardosena@hotmail.com.br Blog - www.eduardosena.com.br

    Viewing all 11297 articles
    Browse latest View live


    <script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>