MDT 2013 and RES Automation Manager

Hi,
In one of the first step of MDT I'm using a simple script that asks for the country code (e.g. NL), which I would like to store in an environment variable, which I can later on read into RES Automation Manager. But it seems that after MDT is finished and
Windows starts up, the environment variable is gone.  Are there any other ways to accomplish this? I'm using it to install language specific applications from RES AM, after MDT is finished. The Windows language settings itself I set with the
CustomSettings.ini, that is based on the same simple script
[Settings]
Priority=ByCountry, CountryAbbr,Model,Default
Properties=CountryAbbr, CountryOU,CustomProperty
[ByCountry]
UserExit=ZTIGetCountry.vbs
CountryAbbr=#GetCountryCode()#
[NL]
CountryOU=NL
CountryOrRegion=31
InputLocale=0409:00020409
KeyboardLocale=nl-US
UserLocale=nl-NL
UILanguage=nl-NL
TimeZoneName=W. Europe Standard Time
ZTIGetCountryCode.vbs
Function UserExit(sType, sWhen, sDetail, bSkip)
oLogging.CreateEntry "entered UserExit ", LogTypeInfo
UserExit = Success
End Function
Function GetCountryCode()
Set objShell = CreateObject("WScript.Shell")
Set objEnv = objShell.Environment("SYSTEM")
GetCountryCode = InputBox("Fill in Country Code (NL DE DA FR PT); If default, use None")
objEnv("MDT_Language") = GetCountryCode
Set objShell = Nothing
Set objEnv = Nothing
End Function
Any idea what I can do else??
Thanks,
Mario

Hi, this looks quite similar to my blog post I did some time ago:
MDT 2012 LTI Deployment, Regional and Locale settings based on #chars of Hostname
The trick in your specific case is to either, not reboot your machine, or to set the installation of RES Automation Manager right after the reboot.
Basically MDT clean's up it's act after it is finished. This also means the environment variables which are stored in a .dat file in the C:\MININT folder are removed after MDT has finished.
So either you need to find a way to perform your RES AM job, during the MDT task sequence, or set or dump the environment variables to a file are temporarily variable which RES AM can use.
Here are some articles that will help you get further:
MDT and RES Automation Manager – Let’s come together (in Sweet Harmony)
Creating custom variables in MDT 2013
Finding All References to MDT Variables in a Deployment Share: VariableDocumentor
v1.0
Dumping Task Sequence Variables
Cheers!
If this post is helpful please click "Mark for answer", thanks! Kind regards

Similar Messages

  • MDT 2013 and Windows Embedded Standard 7

    Hi Guys
    I'm currently working on a Windows Embedded 7 Standard build and deployment.
    Looking at the support Matrix and the video from Johan, it looks like:
    MDT 2010 has support with the hacked LTIAPPLY script
    MDT 2012 onwards support Embedded POS Ready - no mention of Standard.
    Can you clarify:
    If WES7 is supported in MDT 2013.
    Is there a set of specific task sequence steps I should use for deploying WES7? I will still need to run the standard pre-install to clean disk, gather vars etc.
    I have written some post build scripts, which configures the FBWF state and installs final apps, which i'll run at the State Restore phase.
    Many Thanks
    Ian Fraser

    Can you share your experience with MDT 2013 and Windows 7 Embedded? Are you deploying the SCCM client to the clients? Any scripts you can post would be helpful.

  • MDT 2013 and WES7

    Hi,
    I would like to know if anyone has succesfully deployed a WES7 or WES8 image using MDT 2013 litetouch. There seems to be support for doing this with WEP7 (POSready) but what about the Standard version?
    I can make use of the startnet.cmd and imagex tool from a Windows PE, but it would be nice if MDT could be used to deploy images and apps to WES7 (or WES8)
    BR
    Morten

    Hi,
    I would like to know if anyone has succesfully deployed a WES7 or WES8 image using MDT 2013 litetouch. There seems to be support for doing this with WEP7 (POSready) but what about the Standard version?
    I can make use of the startnet.cmd and imagex tool from a Windows PE, but it would be nice if MDT could be used to deploy images and apps to WES7 (or WES8)
    BR
    Morten

  • MDT 2013 and USMT 5

    I've had MDT 2012 set up and working fine (with USMT 4.0), and have been utilizing the USMT via batch file to copy profiles and transfer them manually in some cases.  I'm needing to move some people to Win 8.1 and between computers with 8.1, so I updated
    to MDT 2013.  As I figured, it broke everything I had going.  After putting back the USMT files where they were, the batch files no longer work as they must be "run as administrators".  I added my domain admin account as a local admin,
    and even tried a plain local admin account.  No go.  For the life of me, I have no idea what the hang up is.  Below is the batch file, what am I missing since this used to work fine?  I also cannot simply run the scanstate.exe, and it flashes
    a cmd prompt and closes before I can see what it's doing.
    if exist "c:\usmt" then Goto SkipUSMT
    echo d | xcopy \\server\folder\deployment\usmt\amd64 c:\usmt
    cd /d c:\usmt\
    set /P Input=Computer Name?
    scanstate \\server\folder\deployment\captures\%Input% /i:migdocs.xml /i:migapp.xml /v:13 /uel:90
    :SkipUSMT

    Gives me nothing more than what I had:
    2014-11-06 15:02:05, Info                  [0x000000] SCANSTATE.EXE Version 6.3.9600.17237[gle=0x000000b7]
    2014-11-06 15:02:05, Info                  [0x000000] USMT Started at 2014/11/06:15:02:05.262
    2014-11-06 15:02:05, Info                  [0x000000] Command line: scanstate \\SERVER\folder\captures\Computer /l:Scan.log /i:migdocs.xml /i:migapp.xml /v:13 /uel:90
    2014-11-06 15:02:05, Info                  [0x000000] Failed.
    2014-11-06 15:02:05, Info                  [0x000000]   Administrator privileges are required to run this tool.
    2014-11-06 15:02:05, Info                  [0x000000] USMT Completed at 2014/11/06:15:02:05.263
    2014-11-06 15:02:05, Info                  [0x000000] Entering MigShutdown method
    2014-11-06 15:02:05, Info                  [0x000000] Leaving MigShutdown method
    2014-11-06 15:02:05, Info                  [0x000000] ----------------------------------- USMT ERROR SUMMARY -----------------------------------
    2014-11-06 15:02:05, Info                  [0x000000] * USMT error code 34: 
    2014-11-06 15:02:05, Info                  [0x000000] +-----------------------------------------------------------------------------------------
    2014-11-06 15:02:05, Info                  [0x000000] | Administrator privileges are required to run this tool.
    2014-11-06 15:02:05, Info                  [0x000000] +-----------------------------------------------------------------------------------------

  • Problem with ztisetbackground.wsf in MDT 2013 and Windows 8.1

    Has anyone found a way to get ztisetbackground.wsf to work with a Windows 8.1 build after the WinPE phase?  It works fine with Windows 7 builds.
    Ad(Thanks)vance!
    JJ

    Unfortunately not.  Doesn't look like it will be fixed in the upcoming release of MDT 2013 Update 1 based on the following post...
    http://blogs.technet.com/b/mniehaus/archive/2015/03/03/mdt-2013-update-1-preview-what-s-changed.aspx.

  • MDT 2013 and the D: directory

    I'm new to MDT since upgrading from 2012 to 2012 R2 and I'm not finding the specific logic in the OSD Task Sequence that keeps setting our OS drives to "D".
    Where is it, can I change it, and what is the reasoning behind this drive choice?

    OSDPreserveDriveLetter was already set to False.
    Also it does not matter which captured OS image I use.  Ever since I starting MDT this issue has appeared.
    I have been reusing an older Windows 7 image and also captured a Windows 8.1 image straight off the media; both deploy with the OS on the D: drive.

  • MDT 2013 and locationserver.xml prompting for credentials

    I have multiple locations we are sharing our DeploymentShare so we are using a LocationServer.xml file to pull from one of those locations.   We have everything working except that we can not get rid of the credentials prompts.
    Does anyone have a solution for that ?
    Thanks
    Don

    Hi,
    Have you replicated all the system folders in the Public Folder to the Exchange 2013 server, especially for the EFORMS REGISTRY folder since the Outlook will try to access this
    folder when loading and Organization Forms templates.
    Happy New Year!
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
    [email protected]
    Simon Wu
    TechNet Community Support

  • Office 365 Outlook 2013 and Business Contact Manager Performance issues

    I have some slowness with Outlook 365 at times. Most of the times, Outlook will have to restart. I use Business Contact
    Manager so I cannot turn off Exchange Cache. Are there some steps I can follow to troubleshoot? The problems started 7 days ago and seem to be getting worse. 

    Hi,
    The Outlook slowness problem can be caused by many factors, one common cause is some 3rd-party add-ins. We can troubleshoot in Outlook Safe Mode first:
    Press Win + R and type “outlook.exe /safe” in the blank box, then press Enter.
    If there’s no problem in Safe Mode, disable the suspicious add-ins to verify which add-ins caused this issue.
    We can also check the OST file size since large .ost files can also slow the performance of Outlook.
    Make sure that offline OST file in Outlook isn't too large. A large OST file may indicate corruption or fragmentation of the file. This can affect performance.
    In Outlook, right-click the mailbox in the navigation pane, and then click
    Properties.
    Click Folder Size, and then note the Total size value on the
    Local Data tab.
    Open the Outlook system folder by opening the following folder path, depending on the operating system:
    Windows 7 or Windows Vista: %userprofile%\AppData\Local\Microsoft\Outlook
    Windows XP: %userprofile%\Local Settings\Application Data\Microsoft\Outlook
    Note the size of the OST file for the user’s Outlook profile. If the OST file is more than 3 to 4 gigabytes (GB) larger than the
    Total size value, the file may be corrupted or fragmented. Close Outlook, rename the OST file, and then reopen Outlook to re-create the OST file.
    Some other troubleshoot steps can be found in this Microsoft Knowledge Base:
    http://support.microsoft.com/kb/2441551/en-us
    Regards,
    Melon Chen
    TechNet Community Support

  • MDT 2013 and SMB 3.0

    Hello,
    I'm building an MDT environment using NAS boxes for deployment shares. The question is:
    When running MDT on Server 2012 R2, would the NAS box need full support for SMB 3.0 for the deployment?
    Thanks in advance
    Brian.

    No SMB 2 support will work.
    SMB 3 will be faster but not a must.

  • MDT 2013 and HP Elite 8300 CMT don't work

    Hi!
    I've got a Problem with booting into PE 5.0 on HP 8300 CMT with MDT2013
    I always get Boot error: 0xc000000e, Info: unexpected error
    I have allready injected all drivers (storage, NIC, graphics) but it doesn't work.
    Problem exists with Litetouch-Partition and even when booting from USB-Stick (which perfectly works on Prodesk 400)
    Any clues?

    It is not clear to me if you are getting this problem when booting up WinPE, or after the OS is placed on the local hard disk, and booting into
    Are you booting into uEFI mode or CSM mode? Crack open your bdd.log file after booting into WInPE, and search for isuefi.
    Additionally, did you modify the diskpartitioning layout for your task sequence? If so you may have not set things up right, create a new task sequence with the partition set to 100% (the default).
    Keith Garner - Principal Consultant [owner] -
    http://DeploymentLive.com

  • HP Client WinPE Driver Packs and MDT 2013

    Just today I noticed that HP had a couple of WinPE driver Packs for download on their site for WinPE 3.0 and 4.0. I'm using MDT 2013 to deploy Win 7 x64 for now, perhaps Win 8.1 out in the future. What version of WinPE does MDT make for Boot Images? Which
    driver pack would be best for MDT 2013 and Win 7 deployment? WinPE 3.0?
    Orange County District Attorney

    Just found my answer in a great post at
    http://www.deploymentresearch.com/Research/tabid/62/EntryId/112/MDT-2013-Lite-Touch-Driver-Management.aspx
    Just in time!
    Orange County District Attorney

  • MDT 2013 - A Connection to the deployment share could not be made - DHCP Lease was not obtained

    First, let me give you some context:
    Framework: MDT 2013 with MS SDK 7.1
    Task Sequence: Standard Client TS with sysprep and capture.
    Target workstation (build workstation): VM Guest on ESX 5.5 host, 8 vCPU, 8GB RAM, LSI Logic SAS Controller, E1000 NIC, SSD DAS
    Behavior: The VM loads and installs the OS fine in PE, VM boots into OS successfully and resumes the TS, after the first system reboot, the error message occurs and it reads:
    A connection to the deployment share (\\*********\DeploymentShare$) could not be made. DHCP Lease was not obtained for any Networking device! Possible Cause: Check physical connection. Retry:...... Cancel:.....
    While observing this error, I didn't notice the NIC hadn't completely initialized and obtained an IP yet (network adapter icon in systray), additionally hitting retry after the NIC was initialized resumed the TS.
    This behavior reoccurs with several subsequent reboots until a few more applications (Citrix Receiver, VMware Tools) with services are installed which seem to then slow the system boot-up time and then allows the TS to start after the NIC has initialized.
    From several posts I've read on this forum, this particular behavior was alleviated by a "wait for IP lease" mechanism built into the TS engine which was introduced in MDT 2010 SP1, I wasn't able to find any other confirmation whether
    this mechanism is still in effect with MDT 2013. Another point worth mentioning from several other posts I was able to find is that this behavior appears to manifested itself on target workstations with SSDs, which would somewhat explain the faster
    TS load time vs waiting for an IP lease. I've also tried to replicate this behavior in a non-SSD and low-performance VM environment and I wasn't able to replicate it.
    My question: Does anyone else have experienced this behavior with MDT 2013 and if so, how did you resolve it? Or is this a bug?

    I have this issue intermittently as well.  For us, it coincided with the deployment of IP phones, which meant PoE switches all around.  However, the problem persisted even after we turned off PoE to the ethernet ports from which we normally PXE
    boot.
    As this issue has been intermittent, I've backburnered it.  When it does happen, I just wait for the lease to arrive then rerun the wizard.
    Thanks for the feedback, that's true the TS can be resumed manually once the lease has occured but it defeats the purpose of an automated TS if I have to keep an eye on it and intervene if I need to.
    The network guys here recommended putting wireshark or network monitor on it and figuring out just what the heck is going on.  Basically, what Keith Garner said.  They also disabled PortFast awhile back to see if that made any difference, and it did
    not.

  • Surface Pro Driver injection no longer working under MDT 2013

    Since upgrading to MDT 2013 we are experiencing an issue with deploying Windows 8.1 to our Surface Pros. The deployment seems to be ignoring driver group settings in CS.ini and it basically injects no drivers. We are following the guide Microsoft posed here:
    http://www.microsoft.com/en-us/download/details.aspx?id=38826
    So I'm confused as to where we are going wrong. Here is the section in question from CS.ini:
    [ByModel]
    Subsection=Model-%Model%
    [Model-Surface with Windows 8 Pro]
    OSDComputerName=TAB%SerialNumber%
    DriverGroup001="Windows 8.1 x64\Microsoft\Surface Pro"
    DriverSelectionProfile=Nothing
    XResolution=1920
    YResolution=1080
    Incidentally the computer name is getting set so i know this block is working. Any idea why the drivers would get skipped over?

    I've been deploying to Surface tablets just fine and deployed to a Surface 3 just a couple days ago without any issues, but I do follow Johan's "Total control" way of managing drivers. http://www.deploymentresearch.com/Research/tabid/62/EntryId/112/MDT-2013-Lite-Touch-Driver-Management.aspx
    I'd recommend you go that way as well as you'll most likely have fewer issues. Depending on your situation you may also want to make use of the "ModelAliasExit" script and use Make variables or you can just follow the method above exactly as is.
    If this post is helpful please vote it as Helpful or click Mark for answer.

  • [SOLVED] MDT 2013 - Package install (offline updates) - how to make it work?!

    Hello.
    Lack of documentation about offline update is really weird.
    I've installed WSUS, approved updates for Windows 7, made Package subfolder "WSUS_updates" at MDT 2013 and point it to c:\WSUS\WsusContent folder and got 160 updates as cab or msu files. Made MDT Selection Profile "WU" pointed
    to Packages\Wsus_updates.
    After that I've add new step to task sequence (fully tested many times before) to Preinstall\Install updates offine, just after "Inject drivers", with "WU" selection, fully update MDT share even with images regeneration,
    replaced new images at WDS.
    Test run - no one update got to OS during deployment!!
    and Final step shows 0 errors and 0 warnings.
    Really frustrated about this.
    Need any advice.
    thank you.
    -=C U=-

    THe BDD.log shows:
    About to run command: dism.exe /Image:C:\ /Apply-Unattend:C:\Windows\Panther\Unattend.xml /ScratchDir:C:\MININT\Scratch
    Command has been started (process ID 1960)
    Console > Deployment Image Servicing and Management tool
    Console > Version: 6.3.9600.16384
    Console > Image Version: 6.1.7601.17514
    Console > Error: 0x800f082e
    Console > DISM failed. No operation was performed.
    Console > For more information, review the log file.
    Console > The DISM log file can be found at X:\WINDOWS\Logs\DISM\dism.log
    Return code from command = -2146498514
    FAILURE ( 5627 ): -2146498514 0x800F082E: Run DISM.exe
    Can you check the dism.log file?
    I suspect that your unattend.xml file has some errors.
    Keith Garner - Principal Consultant [owner] -
    http://DeploymentLive.com

  • For %TaskSequenceID% no longer working in MDT 2013.

    I've used the blogs by Michael Niehaus to get MDT 2010 and MDT 2012 LTI deployment wizard application selection profiles working.
    I'm now running MDT 2013 and when following the instructions here:
    http://blogs.technet.com/b/mniehaus/archive/2012/09/04/revisiting-lti-deployment-wizard-application-selection-profiles.aspx, the MDT Wizard Displays the error: "No task sequences are available (TaskSequences.xml does not exist, is empty, or is inaccessible)."

    Updating the deployment share seems to have resolved the issue.

Maybe you are looking for

  • ITunes + Vista = my computer can no longer see my DVDrw drive...

    I just downloaded iTunes 7.6.2.9 onto my Dell Inspiron E1705 - and when I restart my computer, the computer can no longer see my Optical drive (DVDrw). I contacted Dell support, and they changed something in the regedit limits or something(I'm not a

  • 10.4 tiger for mac book

    Hi does any know were I can buy or download 10.4 tiger for mac book? thanks

  • About credit card

    Hi, I had registered my credit card a week ago on Apple.and then that day  I remove all information about credit card off my apple acount.but today i learned that  2 dollars payment has been given off my credit card.but I never  buy any paid apps.Eac

  • Keychain keeps asking for password

    A few days ago I had a keychain failure and since then Mail and the system periodically ask me to enter the keychain password. I'd like to stop this behavior and let all installed apps use keychain while I'm logged in. Where do I find the setting?

  • Some of music didn't make the transfer...

    I was transferring my music from old computer to new.  I put it all onto my external hard drive and when transferring it onto my new computer, some of the music didn't make it due to lack of space.  Now that I have deleted various files, how do I fin