Windows 7 not joining to domain with SCCM OSD Task sequence

Iam having trouble with Windows 7 deployment through SCCM, where the systems dont get joined to the domain if the system name is not already present in the AD.
If I have the system name already in AD it works fine also Iam able to join the system to the domain with the same account Iam using in SCCM TS for domain join.
Searched around and not able to find a resolution. I checked the setupact.log and found the follwoing messages.
2011-01-03 21:00:31, Info                         [DJOIN.EXE] Unattended Join: Begin
2011-01-03 21:00:31, Info                         [DJOIN.EXE] Unattended Join: Loading input parameters...
2011-01-03 21:00:31, Info                         [DJOIN.EXE] Unattended Join: AccountData = [NULL]
2011-01-03 21:00:31, Info                         [DJOIN.EXE] Unattended Join: UnsecureJoin = [NULL]
2011-01-03 21:00:31, Info                         [DJOIN.EXE] Unattended Join: MachinePassword = [secret not logged]
2011-01-03 21:00:31, Info                         [DJOIN.EXE] Unattended Join: JoinDomain = [xposure.com]
2011-01-03 21:00:31, Info                         [DJOIN.EXE] Unattended Join: JoinWorkgroup = [NULL]
2011-01-03 21:00:31, Info                         [DJOIN.EXE] Unattended Join: Domain = [xposure]
2011-01-03 21:00:31, Info                         [DJOIN.EXE] Unattended Join: Username = [domain.join]
2011-01-03 21:00:31, Info                         [DJOIN.EXE] Unattended Join: Password = [secret not logged]
2011-01-03 21:00:31, Info                         [DJOIN.EXE] Unattended Join: MachineObjectOU = [CN=Computers,DC=Xposure,DC=com]
2011-01-03 21:00:31, Info                         [DJOIN.EXE] Unattended Join: DebugJoin = [NULL]
2011-01-03 21:00:31, Info                         [DJOIN.EXE] Unattended Join: DebugJoinOnlyOnThisError = [NULL]
2011-01-03 21:00:31, Info                         [DJOIN.EXE] Unattended Join: Checking that auto start services have started.
2011-01-03 21:00:31, Info                         [DJOIN.EXE] Unattended Join: Joining domain [xposure.com]...
2011-01-03 21:00:31, Info                         [DJOIN.EXE] Unattended Join: Calling DsGetDcName for xposure.com...
2011-01-03 21:00:31, Info                         [DJOIN.EXE] Unattended Join: DsGetDcName returned [NJYAD01.xposure.com]
2011-01-03 21:00:31, Info                         [DJOIN.EXE] Unattended Join: Constructed domain parameter [xposure.com\NJYAD01.xposure.com]
2011-01-03 21:00:35, Warning                      [DJOIN.EXE] Unattended Join: NetJoinDomain attempt failed: 0x2, will retry in 5 seconds...
2011-01-03 21:00:40, Warning                      [DJOIN.EXE] Unattended Join: NetJoinDomain attempt failed: 0x2, will retry in 5 seconds...
2011-01-03 21:00:46, Warning                      [DJOIN.EXE] Unattended Join: NetJoinDomain attempt failed: 0x2, will retry in 5 seconds...
2011-01-03 21:00:51, Warning                      [DJOIN.EXE] Unattended Join: NetJoinDomain attempt failed: 0x2, will retry in 5 seconds...
2011-01-03 21:00:56, Warning                      [DJOIN.EXE] Unattended Join: NetJoinDomain attempt failed: 0x2, will retry in 5 seconds...
2011-01-03 21:01:02, Warning                      [DJOIN.EXE] Unattended Join: NetJoinDomain attempt failed: 0x2, will retry in 5 seconds...
2011-01-03 21:01:07, Warning                      [DJOIN.EXE] Unattended Join: NetJoinDomain attempt failed: 0x2, will retry in 5 seconds...
2011-01-03 21:01:12, Warning                      [DJOIN.EXE] Unattended Join: NetJoinDomain attempt failed: 0x2, will retry in 5 seconds...
2011-01-03 21:01:17, Warning                      [DJOIN.EXE] Unattended Join: NetJoinDomain attempt failed: 0x2, will retry in 5 seconds...
2011-01-03 21:01:23, Warning                      [DJOIN.EXE] Unattended Join: NetJoinDomain attempt failed: 0x2, will retry in 5 seconds...
2011-01-03 21:01:28, Warning                      [DJOIN.EXE] Unattended Join: NetJoinDomain attempt failed: 0x2, will retry in 5 seconds...
2011-01-03 21:01:34, Warning                      [DJOIN.EXE] Unattended Join: NetJoinDomain attempt failed: 0x2, will retry in 5 seconds...
2011-01-03 21:01:39, Warning                      [DJOIN.EXE] Unattended Join: NetJoinDomain attempt failed: 0x2, will retry in 5 seconds...
2011-01-03 21:01:44, Warning                      [DJOIN.EXE] Unattended Join: NetJoinDomain attempt failed: 0x2, will retry in 5 seconds...
2011-01-03 21:01:49, Warning                      [DJOIN.EXE] Unattended Join: NetJoinDomain attempt failed: 0x2, will retry in 5 seconds...
2011-01-03 21:01:55, Warning                      [DJOIN.EXE] Unattended Join: NetJoinDomain attempt failed: 0x2, will retry in 5 seconds...
2011-01-03 21:02:00, Warning                      [DJOIN.EXE] Unattended Join: NetJoinDomain attempt failed: 0x2, will retry in 5 seconds...
2011-01-03 21:02:05, Warning                      [DJOIN.EXE] Unattended Join: NetJoinDomain attempt failed: 0x2, will retry in 5 seconds...
2011-01-03 21:02:10, Warning                      [DJOIN.EXE] Unattended Join: NetJoinDomain attempt failed: 0x2, will retry in 5 seconds...
2011-01-03 21:02:16, Warning                      [DJOIN.EXE] Unattended Join: NetJoinDomain attempt failed: 0x2, will retry in 5 seconds...
2011-01-03 21:02:21, Warning                      [DJOIN.EXE] Unattended Join: NetJoinDomain attempt failed: 0x2, will retry in 5 seconds...
2011-01-03 21:02:26, Warning                      [DJOIN.EXE] Unattended Join: NetJoinDomain attempt failed: 0x2, will retry in 5 seconds...
2011-01-03 21:02:32, Warning                      [DJOIN.EXE] Unattended Join: NetJoinDomain attempt failed: 0x2, will retry in 5 seconds...
2011-01-03 21:02:37, Warning                      [DJOIN.EXE] Unattended Join: NetJoinDomain attempt failed: 0x2, will retry in 5 seconds...
2011-01-03 21:02:42, Warning                      [DJOIN.EXE] Unattended Join: NetJoinDomain attempt failed: 0x2, will retry in 5 seconds...
2011-01-03 21:02:48, Warning                      [DJOIN.EXE] Unattended Join: NetJoinDomain attempt failed: 0x2, will retry in 5 seconds...
2011-01-03 21:02:53, Warning                      [DJOIN.EXE] Unattended Join: NetJoinDomain attempt failed: 0x2, will retry in 5 seconds...
2011-01-03 21:02:58, Warning                      [DJOIN.EXE] Unattended Join: NetJoinDomain attempt failed: 0x2, will retry in 5 seconds...
2011-01-03 21:03:04, Warning                      [DJOIN.EXE] Unattended Join: NetJoinDomain attempt failed: 0x2, will retry in 5 seconds...
2011-01-03 21:03:09, Warning                      [DJOIN.EXE] Unattended Join: NetJoinDomain attempt failed: 0x2, will retry in 5 seconds...
2011-01-03 21:03:14, Warning                      [DJOIN.EXE] Unattended Join: NetJoinDomain attempt failed: 0x2, will retry in 5 seconds...
2011-01-03 21:03:20, Warning                      [DJOIN.EXE] Unattended Join: NetJoinDomain attempt failed: 0x2, will retry in 5 seconds...
2011-01-03 21:03:25, Warning                      [DJOIN.EXE] Unattended Join: NetJoinDomain attempt failed: 0x2, will retry in 5 seconds...
2011-01-03 21:03:30, Warning                      [DJOIN.EXE] Unattended Join: NetJoinDomain attempt failed: 0x2, will retry in 5 seconds...
2011-01-03 21:03:35, Warning                      [DJOIN.EXE] Unattended Join: NetJoinDomain attempt failed: 0x2, will retry in 5 seconds...
2011-01-03 21:03:41, Warning                      [DJOIN.EXE] Unattended Join: NetJoinDomain attempt failed: 0x2, will retry in 5 seconds...
2011-01-03 21:03:46, Warning                      [DJOIN.EXE] Unattended Join: NetJoinDomain attempt failed: 0x2, will retry in 5 seconds...
2011-01-03 21:03:51, Warning                      [DJOIN.EXE] Unattended Join: NetJoinDomain attempt failed: 0x2, will retry in 5 seconds...
2011-01-03 21:03:56, Warning                      [DJOIN.EXE] Unattended Join: NetJoinDomain attempt failed: 0x2, will retry in 5 seconds...
2011-01-03 21:04:02, Warning                      [DJOIN.EXE] Unattended Join: NetJoinDomain attempt failed: 0x2, will retry in 5 seconds...
2011-01-03 21:04:07, Warning                      [DJOIN.EXE] Unattended Join: NetJoinDomain attempt failed: 0x2, will retry in 5 seconds...
2011-01-03 21:04:12, Warning                      [DJOIN.EXE] Unattended Join: NetJoinDomain attempt failed: 0x2, will retry in 5 seconds...
2011-01-03 21:04:17, Warning                      [DJOIN.EXE] Unattended Join: NetJoinDomain attempt failed: 0x2, will retry in 5 seconds...
2011-01-03 21:04:23, Warning                      [DJOIN.EXE] Unattended Join: NetJoinDomain attempt failed: 0x2, will retry in 5 seconds...
2011-01-03 21:04:28, Warning                      [DJOIN.EXE] Unattended Join: NetJoinDomain attempt failed: 0x2, will retry in 5 seconds...
2011-01-03 21:04:33, Warning                      [DJOIN.EXE] Unattended Join: NetJoinDomain attempt failed: 0x2, will retry in 5 seconds...
2011-01-03 21:04:39, Warning                      [DJOIN.EXE] Unattended Join: NetJoinDomain attempt failed: 0x2, will retry in 5 seconds...
2011-01-03 21:04:44, Warning                      [DJOIN.EXE] Unattended Join: NetJoinDomain attempt failed: 0x2, will retry in 5 seconds...
2011-01-03 21:04:49, Warning                      [DJOIN.EXE] Unattended Join: NetJoinDomain attempt failed: 0x2, will retry in 5 seconds...
2011-01-03 21:04:55, Warning                      [DJOIN.EXE] Unattended Join: NetJoinDomain attempt failed: 0x2, will retry in 5 seconds...
2011-01-03 21:05:00, Warning                      [DJOIN.EXE] Unattended Join: NetJoinDomain attempt failed: 0x2, will retry in 5 seconds...
2011-01-03 21:05:05, Warning                      [DJOIN.EXE] Unattended Join: NetJoinDomain attempt failed: 0x2, will retry in 5 seconds...
2011-01-03 21:05:10, Warning                      [DJOIN.EXE] Unattended Join: NetJoinDomain attempt failed: 0x2, will retry in 5 seconds...
2011-01-03 21:05:15, Warning                      [DJOIN.EXE] Unattended Join: NetJoinDomain attempt failed: 0x2, will retry in 5 seconds...
2011-01-03 21:05:21, Warning                      [DJOIN.EXE] Unattended Join: NetJoinDomain attempt failed: 0x2, will retry in 5 seconds...
2011-01-03 21:05:26, Warning                      [DJOIN.EXE] Unattended Join: NetJoinDomain attempt failed: 0x2, will retry in 5 seconds...
2011-01-03 21:05:32, Warning                      [DJOIN.EXE] Unattended Join: NetJoinDomain attempt failed: 0x2, will retry in 5 seconds...
2011-01-03 21:05:37, Warning                      [DJOIN.EXE] Unattended Join: NetJoinDomain attempt failed: 0x2, will retry in 5 seconds...
2011-01-03 21:05:42, Warning                      [DJOIN.EXE] Unattended Join: NetJoinDomain attempt failed: 0x2, will retry in 5 seconds...
2011-01-03 21:05:48, Warning                      [DJOIN.EXE] Unattended Join: NetJoinDomain attempt failed: 0x2, will retry in 5 seconds...
2011-01-03 21:05:53, Warning                      [DJOIN.EXE] Unattended Join: NetJoinDomain attempt failed: 0x2, will retry in 5 seconds...
2011-01-03 21:05:58, Warning                      [DJOIN.EXE] Unattended Join: NetJoinDomain attempt failed: 0x2, will retry in 5 seconds...
2011-01-03 21:06:04, Warning                      [DJOIN.EXE] Unattended Join: NetJoinDomain attempt failed: 0x2, will retry in 5 seconds...
2011-01-03 21:06:09, Warning                      [DJOIN.EXE] Unattended Join: NetJoinDomain attempt failed: 0x2, will retry in 5 seconds...
2011-01-03 21:06:14, Warning                      [DJOIN.EXE] Unattended Join: NetJoinDomain attempt failed: 0x2, will retry in 5 seconds...
2011-01-03 21:06:20, Warning                      [DJOIN.EXE] Unattended Join: NetJoinDomain attempt failed: 0x2, will retry in 5 seconds...
2011-01-03 21:06:25, Warning                      [DJOIN.EXE] Unattended Join: NetJoinDomain attempt failed: 0x2, will retry in 5 seconds...
2011-01-03 21:06:30, Warning                      [DJOIN.EXE] Unattended Join: NetJoinDomain attempt failed: 0x2, will retry in 5 seconds...
2011-01-03 21:06:35, Warning                      [DJOIN.EXE] Unattended Join: NetJoinDomain attempt failed: 0x2, will retry in 5 seconds...
2011-01-03 21:06:41, Warning                      [DJOIN.EXE] Unattended Join: NetJoinDomain attempt failed: 0x2, will retry in 5 seconds...
2011-01-03 21:06:46, Warning                      [DJOIN.EXE] Unattended Join: NetJoinDomain attempt failed: 0x2, will retry in 5 seconds...
2011-01-03 21:06:51, Warning                      [DJOIN.EXE] Unattended Join: NetJoinDomain attempt failed: 0x2, will retry in 5 seconds...
2011-01-03 21:06:57, Warning                      [DJOIN.EXE] Unattended Join: NetJoinDomain attempt failed: 0x2, will retry in 5 seconds...
2011-01-03 21:07:02, Warning                      [DJOIN.EXE] Unattended Join: NetJoinDomain attempt failed: 0x2, will retry in 5 seconds...
2011-01-03 21:07:08, Warning                      [DJOIN.EXE] Unattended Join: NetJoinDomain attempt failed: 0x2, will retry in 5 seconds...
2011-01-03 21:07:13, Warning                      [DJOIN.EXE] Unattended Join: NetJoinDomain attempt failed: 0x2, will retry in 5 seconds...
2011-01-03 21:07:18, Warning                      [DJOIN.EXE] Unattended Join: NetJoinDomain attempt failed: 0x2, will retry in 5 seconds...
2011-01-03 21:07:24, Warning                      [DJOIN.EXE] Unattended Join: NetJoinDomain attempt failed: 0x2, will retry in 5 seconds...
2011-01-03 21:07:29, Warning                      [DJOIN.EXE] Unattended Join: NetJoinDomain attempt failed: 0x2, will retry in 5 seconds...
2011-01-03 21:07:34, Error                        [DJOIN.EXE] Unattended Join: NetJoinDomain failed error code is [2]
2011-01-03 21:07:34, Error                        [DJOIN.EXE] Unattended Join: Unable to join; gdwError = 0x2
2011-01-03 21:07:34, Info                         [DJOIN.EXE] Unattended Join: Exit, returning 0x0
Any help is much appreciated. Thanks

It is possible.  You could do this with either a script or Task Sequence steps.  If you go the TS route, use 'Set Task Sequence Variable' and set the MachineObjectOU variable equal to OU=ABC,DC=Contoso,DC=COM or whatever with the condition (on
the Options tab for the Step) Select * from Win32_ComputerSystem WHERE Name LIKE 'ABC%' 
And that should do it for you.
If this post was helpful, please vote up or 'Mark as Answer'! More of this sort of thing at www.foxdeploy.com

Similar Messages

  • Creative Cloud: "Build" MSI Hangs During SCCM OSD Task Sequence Installation

    I wanted to share problem and solution I found when deploying Creative Cloud Packager-created packages/application using SCCM 2012 R2.  I encountered this problem packaging this as both a Package and as an Application in SCCM.
    When installing the software through SCCM Software Center onto a client, Software Center would close right as the installation of the "Build" folder MSI completed.  This is abnormal behavior.
    When installing the application as part of an OSD Task Sequence, the software would get installed (as shown by logs) but SCCM would hang forever at the "Installing Application" step.
    I tried all sorts of different settings in SCCM and with the MSIEXEC command line and eventually traced it to the Reboot Manager functionality in MSIEXEC that will close and attempt to restart processes using files that the installer needs. Reboot Manager clobbered part of SCCM and in the Task Sequence, the connection between SCCM and the installer was broken.
    The solution is to pass the property "MSIRESTARTMANAGERCONTROL=Disable" along the command line when calling MSIEXEC on the Build folder MSI file.  This setting disabled Restart Manager so it didn't mess up SCCM.  Once I did this, my Software Center installs and OSD Task Sequences ran as intended.
    For reference, I used the REBOOT=ReallySuppress property for reboots and let SCCM determine what to do with reboots based on the return code.  My testing was done with Windows 8.1 Enterprise x64.

    Like said, did you configure my proposal: "Configuration Manager client will force a mandatory device
    restart" ? After you've configured that, update your deployment type manually and remove the old revisions of the application and try running the TS again. I'm guessing you're a little bit too fast on your doings so the ConfigMgr doesn't play a long very
    nicely...
    The TS stops because of your Hard Reboot (exit code 1641), I've seen this before and I configured my application so that ConfigMgr client will force device restart and that fixed my problem. Although, also my application is the last one in the TS, but still,
    the TS continues after the reboot.
    Btw. have you tried changing your command line to:
    msiexec.exe /i cd-ord.msi TRANSFORMS=sv-se.mst MVLICENSE_KEY=xxxxxxxxxxxxxxxxx /L*V "%temp%\cdord.log" /qn
    /norestart

  • SCCM OSD Task sequence variables via Powershell.

    Hi,
    I am trying to come up with a genernic function to read
    SCCM 2012 OSD task sequence variables where
    I can pass a varibale name:
    Is this the correct way of doing it below?
    Thanks,
    Ward
    # fnRead_SCCM_Variable
    function fnRead_SCCM_Variable($sccm_variable)
                $tsenv = New-Object -COMObject Microsoft.SMS.TSEnvironment
                $data =  $tsenv.Value($sccm_variable)
                return $data
    $log_path = fnRead_SCCM_Variable "_SMSTSLogPath"

    That should do the trick. For a nice blog post about the usage of task sequence variables in PowerShell, see:
    http://blogs.technet.com/b/mniehaus/archive/2009/09/22/running-powershell-scripts-as-part-of-a-task-sequence.aspx
    My Blog: http://www.petervanderwoude.nl/
    Follow me on twitter: pvanderwoude

  • Need help with a simple Rename/Join Domain/Install SCCM Client Task Sequence

    Good morning everyone,
    I need to create a very simple task sequence that will run an .exe that we have created that renames the computer based on a prefix-serialnumber...then restarts, adds it to our domain, restarts, and then installs the SCCM client.
    1) run rename program 
    2) join to domain
    3) install sccm client
    Can someone help me with the steps that will be required for this?
    Thank you very much!
    **note, these will not be formatted/have an OS installation ran on it with this task sequence.  The situation is that we are receiving 400+ custom configured laptops, and we're going to have to rename/join/install sccm on each...trying to simplify
    this
    any recommendations are greatly appreciated!

    Narcoticoo : Which boot image am i supposed to be using to insure that it boots into Standard Windows, NOT WinPE?  I have a standard x86 package / boot image i've been using.  If it boots up with this, it goes into WinPE (correct me if I'm wrong,
    for this seems to be what happens each time it boots off the boot image...it does not go into windows standard/full)
    When I go into properties of the one i'm using, and take the check off of "Use a boot image", where it will not boot to WinPE, it will not even show up in my list of available task sequences for
    1) when I PXE boot to try the task sequence, or
    2) when I try to make stand-alone media for this task sequence as you have suggested
    When I run the standalone media, the only log files I find are the following with errors:
    PackageID = 'MPS0014E' InstallSoftware
    12/8/2014 12:28:36 PM 2344 (0x0928)
    BaseVar = '', ContinueOnError='' InstallSoftware
    12/8/2014 12:28:36 PM 2344 (0x0928)
    ProgramName = 'MPHS - Rename Computer' InstallSoftware
    12/8/2014 12:28:36 PM 2344 (0x0928)
    SwdAction = '0002' InstallSoftware
    12/8/2014 12:28:36 PM 2344 (0x0928)
    IsSMSV4PlusClient() == true, HRESULT=80004005 (e:\nts_sccm_release\sms\client\osdeployment\installsoftware\main.cpp,332)
    InstallSoftware 12/8/2014 12:28:36 PM
    2344 (0x0928)
    Configuration Manager client is not installed
    InstallSoftware 12/8/2014 12:28:36 PM
    2344 (0x0928)
    Process completed with exit code 2147500037
    TSManager 12/8/2014 12:28:36 PM
    1544 (0x0608)
    TSManager 12/8/2014 12:28:36 PM
    1544 (0x0608)
    Failed to run the action: Install Package. 
    Unspecified error (Error: 80004005; Source: Windows)
    TSManager 12/8/2014 12:28:36 PM
    1544 (0x0608)
    Failed to run the action: Install Package. Execution has been aborted
    TSManager 12/8/2014 12:28:36 PM
    1544 (0x0608)
    Do not send status message in full media case
    TSManager 12/8/2014 12:28:36 PM
    1544 (0x0608)
    Failed to run the last action: Install Package. Execution of task sequence failed.
    Unspecified error (Error: 80004005; Source: Windows)
    TSManager 12/8/2014 12:28:36 PM
    1544 (0x0608)
    Do not send status message in full media case
    TSManager 12/8/2014 12:28:36 PM
    1544 (0x0608)
    Execution::enExecutionFail != m_eExecutionResult, HRESULT=80004005 (e:\nts_sccm_release\sms\client\tasksequence\tsmanager\tsmanager.cpp,866)
    TSManager 12/8/2014 12:43:48 PM
    1544 (0x0608)
    Task Sequence Engine failed! Code: enExecutionFail
    TSManager 12/8/2014 12:43:48 PM
    1544 (0x0608)
    TSManager 12/8/2014 12:43:48 PM
    1544 (0x0608)
    Task sequence execution failed with error code 80004005
    TSManager 12/8/2014 12:43:48 PM
    1544 (0x0608)

  • SCCM OSD Task sequence stuck at formatting C:

    hi everyone,
    Using SCCM 2012 R2 CU3 and trying to build Surface Pro 3.
    I have successfully built 3 units but i have 2 units that are stuck at formatting C. Checked the logs and smsts log goes up to showing that diskpart command has been successful up until creating partitions but nothing to show after formatting drive C as
    NTFS(Quick).
    I have tried going into Winpe and running diskpart manually by launching F8 command prompt. Using diskpart manually, I have tried cleaning the disk altogether as well as manually creating the partition structure that SCCM TS is creating. Even if i try manually,
    i get the same result. Formatting drive C never completes and gets stuck.Commandline i have tried is as below:
    I have also tried creating a brand new task sequence with default UEFI partion/format options that had the same result. 
    If i try to view C drive through cmtrace tool ,the drive format shows up as "RAW".
    Just to confirm that 3 surface pro 3's have already been built with exactly the same TS and firmware/driver pack being used is the latest from MS(JAn 2015).
    Just wondering if anyone has come across something like this before??

    Hi Tarun,
    Any chance the drive is DOA (or on the way out)? Asking as you can't format even when trying manually.
    You might have already seen these.
    Johan has a post on the changes that are needed for a SCCM 2012 R2 TS and UEFI support.
    http://www.deploymentresearch.com/Research/tabid/62/EntryId/139/Deploying-UEFI-machines-with-ConfigMgr-2012-R2.aspx
    Also Niall Brady has a post on deploying the Surface Pro that may be of help to you.
    http://www.niallbrady.com/2013/03/04/how-can-i-deploy-windows-8-x64-to-the-microsoft-surface-pro-using-configuration-manager-2012-sp1/
    Sean

  • OSD Task Sequence: Domain Join by Name

    I currently have a problem with my OSD Task Sequence for Windows Server 2012 R2.
    I have mutliple "Apply Network Settings" Steps, which joins the server into different OUs. For the determination i use a WMI Query: select * from Win32_ComputerSystem where Name like "DC%"
    That works for my Server 2008 R2 Task Sequence like a charms, but when i run it with a 2012 R2 Image, all steps are evaluated as false.
    Is there a better way (option) to check if the current system name begins with a defined string?
    Thanks in advance

    Can you post the relevant snippet of the smsts.log please?
    Where in the TS are you placing these tasks?
    During WinPE, the name of the system will be MININT-xyz and so using the value in WMI is not really ever going to work? Are you sure it's doing what you need in the 2008 R2 TS?
    During PE, you need to check the OSDComputerName task sequence variable name although that really depends upon how you are setting the computer name.
    Jason | http://blog.configmgrftw.com

  • Create a prompt using MDT 2012 in SCCM 2012 OSD task sequence

    Hi Experts,
    I need some help with SCCM 2012 Task sequence using MDT 2012.
    Here is the scenario:I want to build a task sequence  where it will propmt whether the technican want to build a new build or refresh. Based on the technicians choice the task sequence will perform specific actions.
    We can create the prompt using HTA or VBScript or some otherways.
    But the requiremnt for us is to Use ONLY MDT 2012, not any other ways.
    Is it possible to do like the above with UDI?
    Please can someone shed some light how to do will be great.
    Thanks in advance,

    Hi,
    UDI may achieve what you want. Take a look at the blogs below.
    http://blogs.technet.com/b/anilm/archive/2012/06/01/integrating-mdt-2012-rtm-with-configuration-manager-2012-rtm-part-3-creating-and-deploying-a-udi-task-sequence.aspx
    http://heinrichandsccm.blogspot.com/2013/04/how-to-setup-and-configure-sccm-2012.html
    Important Note: Microsoft provides third-party contact information to help you find technical support. This contact information may change without notice. Microsoft does not guarantee the accuracy of this third-party contact information.
    Juke Chou
    TechNet Community Support

  • Does "Distribute content" on the right click menu for a OSD Task sequence also REDISTRIBUTE packages?

    I have a task sequence with quite a few packages that have already been distributed. But that same task sequence has far more that have never been distributed.
    When you Right click a SCCM OSD Task sequence and select "Distribute Content", does it also redistribute content that's already been distributed to existing DP's, or just the packages that have never been distributed?

    Hi,
    You can only select DP's that don't have the Packages required by the Task Seqeunce so no you cannot use it to update the DP's
    Regards,
    Jörgen
    -- My System Center blog ccmexec.com -- Twitter
    @ccmexec

  • Workstations not Joining the Domain after OSD

    I have a sporadic problem happening in my Environment.   OSD Deployments for the most part finish successful , workstation joins the domain with no issues.   At certain locations  occasionally the workstation does not join the
    domain.     Have you seen this happen before?  are there logs on the DC or DP which might explain why this is happening?

    While you are at it grab setupact.log and setuperr.log from two locations, c:\windows\panther and c:\windows\panther\unattendGC. These logs will give more details on why the domain join fails.
    Daniel Ratliff | http://www.PotentEngineer.com
    Also take a look at C:\Windows\debug\NetSetup.log.
    Cheers
    Paul | sccmentor.wordpress.com

  • UDI OSD Task Sequences started failing with 0x80070002 error in SCCM 2012

    This is kind of long, but here goes...
    We built a UDI task sequence in SCCM 2012 (with MDT integration) that we were testing for deployment of a couple of different Win7 images.  We customized the UDI experience thru the UDI wizard and XML file and OS deployment worked as expected
    thru the task sequence (testing on Hyper-V VMs). Recently, this UDI TS started failing with error 0x80070002  during what appears to be the "Use Toolkit Package" step.  This is after the OS image has already been laid down and after the ConfigMgr
    client has been installed/configured.  The SMSTS.log reports "Failed to open the task sequence key HKLM\Software\Microsoft\SMS\Task Sequence.  Error code 0x8007002"  Among other errors...I will post the entire log below...
    After the error during deployment, Win7 will boot normally, however, you have no network connectivity and it appears the proper network driver didn't get loaded in the OS. Combine this with the fact that the TS should have joined the machine to our domain,
    but you can't login because no network.. Im not sure if the network issue is a product of the TS failing early or the actual cause of the TS failure. 
    Anyway, I attempted to build another UDI task sequence using the same boot image and toolkit/settings packages, but am experiencing the same error during deployment.  We have a few OSD task sequences built without UDI and those all still work just fine. 
    So, I am at a loss for where the root problem lies.  Any suggestions or assistance would be greatly appreciated.
    Here is the entire SMSTS.log and BDD.log...
    https://skydrive.live.com/redir?resid=D65B1C4362892A26!110&authkey=!AKu5mOvDsXaEgvc
    Thanks
    Richie Tenhet

    your failure does appear to be network (driver or otherwise) or dns related and it cannot contact the management point FQDN just around the time where it should download and execute the
    Use Toolkit Package step...
    "Starting Task Sequence Engine . . . "
    "Non fatal error 0x80072ee7 in sending task sequence execution status message to MP"
    "Start executing an instruciton. Instruction name: Use Toolkit Package. Instruction pointer: 83"
    "unknown host (gethostbyname failed)"
    "sending with winhttp failed; 80072ee7"
    "Tried all the available http based locations. SMB based locations will be attempted now."
    "Failed to resolve the source for SMS PKGID=P0100015, hr=0x80070002"
    "Failed to run the action: Use Toolkit Package.
    The system cannot find the file specified. (Error: 80070002; Source: Windows)"
    that said, check that the package referenced above actually exists and is the correct source version on your distribution points, also verify (press F8 and check can you ping the FQDN of your management point) that you have network connectivity
    around the time of the failure.
    Step by Step Configuration Manager Guides >
    2012 Guides |
    2007 Guides | I'm on Twitter > ncbrady

  • OSD task sequence computer doesn't join domain - error NetJoinDomain failed error code is [1355]

    I am using sccm 2012R2 and trying to deploy a task sequence to Ultrabook UEFI with usb Ethernet adaptor
    I have inject network drivers in boot image and in sccm.
    Task sequence runs fine till Setup Windows and Configuration. After this step computer reboots and boots in windows with local administrator account. Doesn't join to domain
    I have tried ping domain and domain controller during Apply network Settings, I can ping fine and get an ip address as well.
    setuperr.log file shows following error:
    [Djoin.exe] Unattented Join: NetJoinDomain failed error code is [1355]
    I can image other computer using x86 bootimage fine.
    It is x64 boot image with UEFI Task sequence which is causing issues for me.
    I have tested domain join AD account and able to do domain join same machine manually.
    Need advise, not getting anywhere, already spend few days to figure out.
    RJ
    RJ09

    Ultrabook I am using have SSD if this could be part of problem.
    I also see errors in Panther\UnattendGC\setupact.log 
    [DJOIN.EXE] Unattend Join: DebugJoinOnlyOnThisError =[Null]
    [DJOIN.EXE] Unattend Join:DsGetDcName failed: 0x54b, last error 0x0, will retry in 5 seconds
    [DJOIN.EXE] Unattend Join:DsGetDcName failed: 0x54b, last error 0x0, will retry in 5 seconds
    About 20 times
    Exit, returning 0x0
    RJ09

  • Should I join the domain with my new server 2008 R2 before I run dcpromo ?

    Hi Team,
    Should I join the domain with my new server 2008 R2 before I run dcpromo ?
    Brand new server, 2008 r2. I want it to eventually be my forest root. Should I go ahead and join it to the domain as just a member server and then do all the ? Should I run adprep before I join
    the domain? I'm only asking about member server at this point...before dcpromo.
    Most of the posts I have seen relating to installing Additional Domain Controller (ADC) onto a domain, state that the machine they are starting with is NOT a member of the domain.  In my case,
    the machine I want to make an ADC is already a member of the domain.
    Regards,
    Rajesh Behara

    Hi Rajesh,
    Is your issue related to Project, the Microsoft scheduling and planning application? In case it is not, please post your question to the appropriate forum in order to have help from experts.
    Here is the
    TechNet SQL Server forum.
    Hope this helps,
    Guillaume Rouyre, MBA, MCP, MCTS |

  • Should I join the domain with my new server 2008 R2 before I run dcpromo for ADC ?

    Hi Team,
    Should I join the domain with my new server 2008 R2 before I run dcpromo ?
    Brand new server, 2008 r2. I want it to eventually be my forest root. Should I go ahead and join it to the
    domain as just a member server and then do all the ? Should I run adprep before I join the domain? I'm only asking about member server at this point...before dcpromo.
    Most of the posts I have seen relating to installing Additional Domain Controller (ADC) onto a domain, state
    that the machine they are starting with is NOT a member of the domain.  In my case, the machine I want to make an ADC is already a member of the domain.
    Regards,
    Rajesh Behara

    Hello,
    double post see my answer in
    http://social.technet.microsoft.com/Forums/windowsserver/en-US/d5809e38-164e-427c-86ab-d00be7bcefb3/should-i-join-the-domain-with-my-new-server-2008-r2-before-i-run-dcpromo-for-adc-?forum=winservergen
    Best regards
    Meinolf Weber
    MVP, MCP, MCTS
    Microsoft MVP - Directory Services
    My Blog: http://blogs.msmvps.com/MWeber
    Disclaimer: This posting is provided AS IS with no warranties or guarantees and confers no rights.
    Twitter:  

  • Could not provision the RemoteApp collection. Error: Could not join the domain. Unable to reach the domain.

    Hi
    I am trying to set up an Azure RemoteApp Hybrid solution.
    I have created RemoteApp net and uploaded a custom image and all that is fine.
    When I link my template to my Collection it fails after provisioning for about an hour.
    I recive the following message: Could not provision the RemoteApp collection. Error: Could not join the domain. Unable to reach the domain.
    The join domin works fine and I have tryed with account with different lvl of access to my AD.
    Any suggestion how to solve this?

    Hello Eric,
       I am landing into the same Problem and i read your guidance on this issue. Let me answer it point by point. 
    1. Check the VPN state to ensure it is active or connected state:
    Sundesh:My Azure RemoteApp Virtual Network after successfull S2S configuration shows as Ready. Is that what you mean by Connected State? Earlier to S2S, it was just under connecting state.
    2. Verify your VNET configurations have proper IP address ranges
    Sundesh: The VNET address range, the Local address range and DNS has already been verified twice. In fact the same address ranges(with exception to VNET) are working fine on a VENT config on Azure VM instance. Verified.
    3. Verify your DNS IP configurations are valid, (often this is the problem)
    Sundesh: Yes its done and verified
    4. Verify the credentials entered for domain join are valid.
    Sundesh: Tested these credentials by joining a regular Azure VM to domain and it works there.
    5. Make sure your VPN endpoint that Azure RemoteApp service is connecting to is not blocking traffic.
    Sundesh: Can you please let us know the specific port numbers that we need to consider and i can have it checked with the Network team
    Thanks
    SUndesh

  • OSD Task Sequence fails to install SCCM client

    Hello,
    Our OSD task sequence fails to install the SCCM client with certain images.
    The TS gets to the "Setup Windows and Configuration" step, during which it downloads all the necessary SCCM client files (silverlight, C++ redistributable, client.msi....etc.). At this point computer restarts and in never loads back into the
    task sequence, instead it enters the minisetup (setup is starting services, setup is installing devices, setup is applying system settings...preparing computer for first use), after which the computer restarts and you are back at the CTR+ALT+Del screen.
    The computer has joined the domain and has run all other steps but it has failed to install SCCM client. I can also see the leftovers of an incomplete TS under c:\_SMSTaskSequence
    If we change the image specified under "Apply Operating System" step, everything works ok.
    It appears there is something wrong with this particular image. Any ideas?
    Logs show no errors. Let me know which logs you'd like me to post (and from which location)
    There is no ccm folder under c:\windows

    Hoping you are using ConfigMgr 2012 R2. If a client machine Join to Domain and doesn't proceed with other steps and not installing the CCM client, then problem seems to be with the Image.Do you have any RunOnce registry setting specified in the Image? You
    can mount the Image and check those settings.
    RunOnce Key Reference :
    https://msdn.microsoft.com/en-us/library/windows/desktop/aa376977(v=vs.85).aspx
    If the above key is present in the Image, TS Engine won't resume after the reboot.
    You need to use a new variable "SMSTSPostAction" at the end of the Task Sequence, to add your custom actions.
    The above variable is applicable in CM 2012 SP1 and R2.
    Thanks, Senthil. 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. Click on "vote as Helpful" if you feel this post helpful to you. This
    can be beneficial to other community members reading the thread.

Maybe you are looking for

  • Softphone Jabber client unable connected

    Hi All, i've configure cisco IM and Presence v10 integrated to CUCM v10 some service running well (UDS, CTI Deskphone, VM, Presence) but Jabber client cannot connect to Softphone  (SIP) and i was configure ucsf(Client Service Framework) for jabber cl

  • Photoshop Elements 8 Question

    I am thinking of buying Photoshop Elements 8, and I would like to know if it has some sort of tool like the quick mask tool in Photoshop.......

  • Using collections and experiencing slow response

    I am experiencing slow response when using htmldb_collection. I was hoping someone might point me in another direction or point to where the delay may be occurring. First a synopsis of what I am using these collections for. The main collections are u

  • Signal booster when using the Apple leather casing

    after i purchased my 6 plus, one thing i noticed was the weak cellular signal reception BUT i was surprised that the signal was stabilized and boosted by the Apple leather casing. I thought it was a software issue. Now i hate to think that it could b

  • Mail-separate account-add a Sent folder

    I'm using my new iPad mini. In Mail, I have my .mac (or .me, or icloud) account set up fine and there is the usual array of folders, such as in, junk, trash, sent, etc. but I have a second account using my local ISP, and though I am able to get and s