Non-Deployed Applications in OSD Task Sequence Are Deployed To Collection Members where OSD TS is deployed

Hello,
I have a situation where an application (which is not deployed) that is part of an OSD Task Sequence is being deployed to computers that are in the same collection my TS for OSD is deployed.
For OSD I have created an application to check the BIOS version and upgrade the BIOS if there is a newer one available. The application has numerous deployment types (13) due to various hardware models and the requirement to go to several intermediary BIOS
versions to reach the current newest version. There are dependencies configured to handle these incremental bumps.
The OSD TS is deployed to a collection that contains all windows desktop class operating systems. What I have seen happen once is that one users workstation somehow discovered and installed the BIOS Upgrade package and their BIOS was upgraded on their workstation.
I've checked the logs on several other machines and this same application has been run as well.
The application is configured "Allow this application to be installed from the Install Applications
task sequence action without being deployed" which allows it to be ran from a TS even though it is not deployed.
I have verified the application is not deployed. I have verified there are no superceedence rules configured. As I stated, there are dependencies, but all dependencies are within this one application.
What I do not understand is, how can an application that is not
deployed and is only referenced in an Operating System Deployment Task Sequence able to be ran outside the task sequence?
This is/has occurred with computers imaged with cm2012 and with computers imaged with cm2007 who have now been migrated to cm2012.
I'm fairly sure that it is due to the task sequence and where it is advertised. Computers that are not in this collection do not show the application being applied in the AppEnforce.log. If it is the TS that is causing this, how can something that is designed
to be a "sequence of tasks", allow something to occur out of that sequence?
Current environment is CM2012R2.
Any thoughts to what might be happening?
Thanks

Hello,
After working with Microsoft Support, we were able to resolve the issue.
Turns out there was something (old policies) "stuck" in the SCCM database that was causing this to be advertised outside the task sequence and not visible on the console. While they didn't call this "a bug" since it has happens with CM2007 as well, it definitely
was not normal behavior. Still not sure how that could happen as I'm 99.99% sure I never deployed this to any collection, but that's what they said.
It took several hours of support rooting through the database to figure out what was going on but after some SQL magic it was fixed. Sorry I don't have more specifics regarding the fix. MS basically said "If it happens again you can do this this and this
in the db and voila its fixed". Since I'm likely to cause more damage (messing with the database) then good if it were to happen again I'd contact them.
Anyway, this odd behavior has spooked me and I've reverted back to deploying the TS to the unknown computer collection. As much as it disappoints me to take a step back and cause more work for the guys doing the imaging, the extra safety this grants (if
something like this or worse were to happen) I think is better than an OSD task sequence gone wild.
Thanks,
Mark

Similar Messages

  • Application support for OSD Task sequence

    Hi
    An Application with Priority 2 deployment type as “Only when a used is logged in” and Priority 1 deployment type as “whether or not a  user logged in”.In this case ,We are not able to include the applications in task sequence.
    These circumstance makes OSD related applications needs to be duplicated for Task sequence support.
    Please guide to make an  application to support Task sequence and as well user interacion(software center) with diffrent deployment type..
    Thanks

    Hi 
    I am not able to include application in Task Sequence on below condition.
    Priority 2 deployment type as “Only when a used is logged in” and Priority 1 deployment type as “whether or not a  user
    logged in.
    Thanks for support
    Regards
    Karthick V

  • Applications Installed through task sequence not showing up in Software Center

    In the task sequence we use for our OSD Windows 7 machine build, we have Custom-Install Application steps which install a number of of our Applications.  Each of these Applications has the "Allow this application to be installed from the Install
    Application task sequence action without being deployed" checkbox checked.  All of the Applications have the following properties set:
    Installation behavior: Install for system
    Logon requirement: Whether or not a user is logged in
    Installation program visibility: Hidden
    When a machine is built using this task sequence, all of the Applications install successfully - they show up in Control Panel\Programs and Features, and they run correctly. However, none of them show up in the Software Center. I'm not seeing anything in
    any of the logs that indicates a problem, and the Software Center remains empty even after running all the client evaluation cycle actions  
    Interestingly, if I add a couple of the newly build machines to a collection, then target deployments for the already installed Applications to that collection, after running the Machine Policy Retrieval and Evaluation Cycle the Applications immediately
    show up in Software Center as installed.
    Does anyone know if Applications installed through a task sequence do not show up in the Software Center by default, or could you give me some troubleshooting tips if this is not normal?
    Thanks for any suggestions!
    SCCM 2012 SP1, Single site, W7 clients

    Why you deploy applications through task sequences? Task sequences are built and meant to be used with OSD, not application deployment.
    To my knowledge, if you have application install step in a task sequence and you deploy that task sequence to a collection of machines, the software center on those machines only sees the task sequence itself, not the applications inside the task sequence.
    If you want your applications to be shown in the software center, change the method of deploying stuff and deploy applications as they're are meant to.

  • Dell Driver Packages breaks OSD Task Sequences?

    I'm completely stumped here... I had an OSD Task Sequence that was working perfectly. Then I imported some Dell Driver Packages with the Dell Client Integration Pack and suddenly, OSD doesn't work anymore.. I made no changes to the Task Sequence itself (steps
    are listed below).
    The weird thing is, when the OSD is actually running, the progress bar goes through all of the steps and the Monitoring space on the deployment shows each step completing successfully, but every step after "Apply Operating System" doesn't actually
    take effect.  When rebooted, I find the computer has not joined the domain, has not applied any drivers, has not installed the SCCM client, didn't install any of the applications, and didn't install the updates.  It's like the task sequence just
    stopped actually writing to the hard drive and just pretended to go through the motions.
    Does anyone have any idea what could have happened?  This same task sequence used to work just fine.  Could just having driver packages available on the DPs break the OSD even though they're not even referenced in the task sequence?
    -Install Operating System
      -Restart in Windows PE
      -Partition Disk 0
      -Apply Data image 1
      -Apply Operating System
      -Apply Windows Settings
      -Apply Network Drivers
      -Apply Device Drivers
    -Setup Operating System
      -Setup Windows and Configuration Manager
      -Install Java
      -Install Adobe Acrobat Reader XI
      -... install a few more applications
      -Install Updates

    As Torsten said, yes, you will need to examine the logs. Post the contents of smsts.log here if you don't know what to look for 
    Here's a reference to help you find the location of the logs:
    http://richardbalsley.com/location-of-smsts-log-when-using-configuration-manager-operating-system-deployment
    Also:
    What OS are you trying to apply?
    What version of WinPE are you using?
    Are you using Auto Apply Drivers or Apply Driver Package steps to install drivers? If Auto Apply Drivers, do you have them limited by category?

  • USMT Capture Doesn't Run on "Required" OSD Task Sequences?

    Hello,
    I have a strange issue with USMT and my OSD Task Sequence. I'm upgrading Windows XP to Windows 7 Enterprise via in-place upgrade with SCCM 2012 SP1 integrated with MDT. My TS runs 100% perfectly if I deploy the TS to my collection, make it "Available,"
    and run it from the Software Center. All configured profiles get copied and restored using hardlinks as expected.
    When I create a "Required" deployment, however, and let it run on it's own, the USMT never runs and I lose all profile information as a result of the drive format. The rest of the TS runs as expected, but as I said, the USMT (scanstate.exe) won't
    run. There are no discernible errors in the SMSTS.log file. I see where it processes my TS variable (OSDMigrateAdditionalCaptureOptions) and where it processes the "Capture User State" step, but scanstate.exe never kicks off or creates a log file. 
    Am I missing something here? Is this expected behavior? I can't find documentation on this, at least not yet. I have reproduced this exact behavior three times now, and I'm out of ideas.
    Snippet of log from working, "Available" deployment:
    Parsing step node: Capture User State
    Tue 02/04/2014 9:09:06 AM 260 (0x0104)
    Description: Tue 02/04/2014 9:09:06 AM
    260 (0x0104)
    ContinueOnError: Tue 02/04/2014 9:09:06 AM
    260 (0x0104)
    SuccessCodeList: 0 Tue 02/04/2014 9:09:06 AM
    260 (0x0104)
    (__hrMethodRetVal == ((HRESULT)0L)) || (bFailIfMissing == false), HRESULT=80070002 (e:\NTS_SCCM_RELEASE\sms\common\inc\ccmxml.h,582)
    Tue 02/04/2014 9:09:06 AM 260 (0x0104)
    No condition is associated with the step.
    Tue 02/04/2014 9:09:06 AM 260 (0x0104)
    Disable: Tue 02/04/2014 9:09:06 AM
    260 (0x0104)
    Run in attribute: FullOS Tue 02/04/2014 9:09:06 AM
    260 (0x0104)
    Timeout: Tue 02/04/2014 9:09:06 AM
    260 (0x0104)
    DefaultVarlist found Tue 02/04/2014 9:09:06 AM
    260 (0x0104)
    Variable name: OSDMigrateContinueOnLockedFiles
    Tue 02/04/2014 9:09:06 AM 260 (0x0104)
    Variable name: OSDMigrateEnableVerboseLogging
    Tue 02/04/2014 9:09:06 AM 260 (0x0104)
    Variable name: OSDMigrateFileAccess
    Tue 02/04/2014 9:09:06 AM 260 (0x0104)
    Variable name: OSDMigrateMode Tue 02/04/2014 9:09:06 AM
    260 (0x0104)
    Variable name: _OSDMigrateOfflineUserState
    Tue 02/04/2014 9:09:06 AM 260 (0x0104)
    Variable name: OSDMigrateSkipEncryptedFiles
    Tue 02/04/2014 9:09:06 AM 260 (0x0104)
    Variable name: _OSDMigrateUseHardlinks
    Tue 02/04/2014 9:09:06 AM 260 (0x0104)
    Variable name: _OSDMigrateUsmtPackageID
    Tue 02/04/2014 9:09:06 AM 260 (0x0104)
    Action command line: osdmigrateuserstate.exe /collect /continueOnError:%OSDMigrateContinueOnLockedFiles% /skipefs:%OSDMigrateSkipEncryptedFiles%
    Tue 02/04/2014 9:09:06 AM 260 (0x0104)
    Adding instruction at 23 Tue 02/04/2014 9:09:06 AM
    260 (0x0104)
    ***Shortly after the above step runs, the Scanstate.exe runs and creates a log file
    Snippet from non-working, "Required" deployment:
    Parsing step node: Set OSDMigrateAdditionalCaptureOptions
    Tue 02/04/2014 9:25:41 AM 2024 (0x07E8)
    Description: Tue 02/04/2014 9:25:41 AM
    2024 (0x07E8)
    ContinueOnError: Tue 02/04/2014 9:25:41 AM
    2024 (0x07E8)
    SuccessCodeList: 0 Tue 02/04/2014 9:25:41 AM
    2024 (0x07E8)
    (__hrMethodRetVal == ((HRESULT)0L)) || (bFailIfMissing == false), HRESULT=80070002 (e:\NTS_SCCM_RELEASE\sms\common\inc\ccmxml.h,582)
    Tue 02/04/2014 9:25:41 AM 2024 (0x07E8)
    No condition is associated with the step.
    Tue 02/04/2014 9:25:41 AM 2024 (0x07E8)
    Disable: Tue 02/04/2014 9:25:41 AM
    2024 (0x07E8)
    Run in attribute: WinPEandFullOS Tue 02/04/2014 9:25:41 AM
    2024 (0x07E8)
    Timeout: Tue 02/04/2014 9:25:41 AM
    2024 (0x07E8)
    DefaultVarlist found Tue 02/04/2014 9:25:41 AM
    2024 (0x07E8)
    No variables found in default variable list
    Tue 02/04/2014 9:25:41 AM 2024 (0x07E8)
    Action command line: tsenv.exe "OSDMigrateAdditionalCaptureOptions=/uel:30 /ue:*"
    Tue 02/04/2014 9:25:41 AM 2024 (0x07E8)
    Adding instruction at 23 Tue 02/04/2014 9:25:41 AM
    2024 (0x07E8)
    Parsing step node: Capture User State
    Tue 02/04/2014 9:25:41 AM 2024 (0x07E8)
    Description: Tue 02/04/2014 9:25:41 AM
    2024 (0x07E8)
    ContinueOnError: Tue 02/04/2014 9:25:41 AM
    2024 (0x07E8)
    SuccessCodeList: 0 Tue 02/04/2014 9:25:41 AM
    2024 (0x07E8)
    (__hrMethodRetVal == ((HRESULT)0L)) || (bFailIfMissing == false), HRESULT=80070002 (e:\NTS_SCCM_RELEASE\sms\common\inc\ccmxml.h,582)
    Tue 02/04/2014 9:25:41 AM 2024 (0x07E8)
    No condition is associated with the step.
    Tue 02/04/2014 9:25:41 AM 2024 (0x07E8)
    Disable: Tue 02/04/2014 9:25:41 AM
    2024 (0x07E8)
    Run in attribute: FullOS Tue 02/04/2014 9:25:41 AM
    2024 (0x07E8)
    Timeout: Tue 02/04/2014 9:25:41 AM
    2024 (0x07E8)
    DefaultVarlist found Tue 02/04/2014 9:25:41 AM
    2024 (0x07E8)
    Variable name: OSDMigrateContinueOnLockedFiles
    Tue 02/04/2014 9:25:41 AM 2024 (0x07E8)
    Variable name: OSDMigrateEnableVerboseLogging
    Tue 02/04/2014 9:25:41 AM 2024 (0x07E8)
    Variable name: OSDMigrateFileAccess
    Tue 02/04/2014 9:25:41 AM 2024 (0x07E8)
    Variable name: OSDMigrateMode Tue 02/04/2014 9:25:41 AM
    2024 (0x07E8)
    Variable name: _OSDMigrateOfflineUserState
    Tue 02/04/2014 9:25:41 AM 2024 (0x07E8)
    Variable name: OSDMigrateSkipEncryptedFiles
    Tue 02/04/2014 9:25:41 AM 2024 (0x07E8)
    Variable name: _OSDMigrateUseHardlinks
    Tue 02/04/2014 9:25:41 AM 2024 (0x07E8)
    Variable name: _OSDMigrateUsmtPackageID
    Tue 02/04/2014 9:25:41 AM 2024 (0x07E8)
    Action command line: osdmigrateuserstate.exe /collect /continueOnError:%OSDMigrateContinueOnLockedFiles% /skipefs:%OSDMigrateSkipEncryptedFiles%
    Tue 02/04/2014 9:25:41 AM 2024 (0x07E8)
    Adding instruction at 24 Tue 02/04/2014 9:25:41 AM
    2024 (0x07E8)
    Any thoughts or advice would be appreciated. This can be done using "Available," but having to log in to each machine in order to kick-off the TS via Software Center seems inefficient.

    My deployments have the same settings (except the ones that change when going from Available to Required, of course), so that doesn't appear to be the culprit. I re-examined my Capture User State step, and it looks fine, but I'll post my settings just in
    case I'm missing something. I can't post the screen capture here for some reason, so below is an outline of my settings:
    Package for User State Migration Tool: (My USMT package is listed here)
    Capture all user profiles by using standard options is selected
    Verbose Logging is OFF
    Skip files using EFS is OFF
    Copy by using file system access is selected
    Continue if some files cannot be captured is ON
    Capture locally by using links instead of by copying files is OFF
    Capture off-line mode (Windows PE Only) is OFF
    Capture by using VSS is not selected
    Image is hosted at: imgur (dot) com / RnGyF8d - I can't post links until verified...

  • 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

  • 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

  • Installing "Applications" during the task sequence and installation enforcement

    Hello,
    Kind of a weird question here, so it seems like I'm seeing that if you install an application on a system during its OSD task sequence, then you later manually uninstall that application, that SCCM considers that system now out of compliance? 
    And then reinstalls the application as indicated in AppEnforce.log?  Is this true?  If so, how do you get around this behavior?  I guess I thought that this application compliance only took effect when you actually deploy an application to a
    system, through an actual deployment.  I didn't realize that it would enforce compliance even if an application was installed during a task sequence.  So if you have hundreds of systems that were imaged with the same task sequence and you have
    a small handful of machines that can't have application X on it (so you want to uninstall it), which was installed via the task sequence, how do you disable this compliance enforcement and disable its automatic reinstall?
    Thanks for any help you can provide.

    Sorry for the delayed response, thank you both for your input.  To answer both your questions, no these workstations do not have any required deployments for this application directed at them.  I have confirmed that, however, they do have
    the OSD task sequence deployment (that contains this application) constantly "available" to them (via only "media and PXE") as this makes it very easy for our technicians to reimage any machine whenever they need to (love that feature
    by the way).
    I can only assume that because they still have this task sequence deployment pointed at them is why they continue to attempt to reinstall this application when ConfigMgr finds that it's not installed anymore.  In fact it does it at the same day/time
    each week, which I believe is the same day/time of the week that the machines were imaged.  I must have the compliance part of the clients configuration to check every 7 days for stuff like this?  Anyway, that's my conclusion for now. 
    Since even Wally Mead felt that this must be an actual required deployment outside of the task sequence I'm really curious to see if anyone else sees this behavior.  It would be fairly simple to attempt to recreate, image a machine with a task sequence
    that has "application" installs included, where the deployment for it is just "available" and keep the deployment "available" after the machine is reimaged.  Then after that, uninstall one of the apps that was installed
    during the task sequence via an "application" and then see if it reinstalls automatically, it may wait a while (may 7 days by default?).  You can see the evidence of our application reinstalling itself in the "AppEnforce.log".
    Is it even remotely possible that this is a new "feature" or behavior of ConfigMgr 2012 and "Applications"?

  • Prompt for AD Description OSD Task Sequence

    Hello,
    I want to be prompted for AD Description while OSD Task Sequence, tried couple of scripts from different blogs but couldn't got any result. Need help from your side.
    Thanks
    REGARDS DANISH DANIE

    The setting which are described in this blog i have deployed on Test Task Sequence but that didnt work for me in that sense that its doesnt Prompt for Description while installation.
    "http://ccmexec.com/2012/01/set-computer-description-during-osd/"
    While in the second blog writer already said that "description does not filter back to AD it only remains local to the machine" So i want that description in AD.
    What i want... a script that prompt for description are changes made on AD in computer account description.
    Hope you have got my point? 
    REGARDS DANISH DANIE

  • Win 7 x64 OSD Task Sequence BSOD with SSD

    Hello,
    I have recently rebuilt my OSD Task Sequences into ConfigMgr 2012 R2 and consistently experiencing BSODs on machines with SSDs after the machine boots after the "Setup and Windows ConfigMgr" step.  When the machine reboots and starts Windows
    Setup, it Blue Screens immediatley after attempting to Update System Registry with the Stop Code 0x000000f4
    To validate the health of the SSDs, I am able to successfully build the same machines using bootable media from the (still standing) 2007 environment.  Also, replacing the SSD with a standard HDD builds the machine successfully which makes me question
    my driver packages less than when I first saw this.  I am unable to see any steps in the Task Sequence that appear different between the 2 environments.
    I have captured the logs from WinPE as well as the system drive before the crashes have occured - can anyone suggest where I should be looking to help flush out why this is occuring?  For what it's worth, the drives are Crucial m4 SSD 2.5 128GB SATA
    6Gb/s with the most current firmware.
    Thanks
    Scott

    Here is a quick update as I continue to struggle with the same issue on a few different models in our environment.
    I have made attempts with multiple different combinations of drivers in packages and continue to see BSODs when the TS reboots after configuring the ConfigMgr client.  I have deployed the captured Win 7 image using a basic Task Sequence and have also
    brought the Win 7 image from the 2007 environment into 2012 and replaced it in the MDT Task Sequence and the results are all the same. 
    Given that I can build machines using a Task Sequence with SCCM 2007 but not with ConfigMgr 2012 R2 points at this being a Task Sequence and\or Driver issue.  I am appreciative of any suggestions or ideas.
    Thanks
    Scott

  • Auto Login as part of OSD Task Sequence

    Hi,
    I am wondering if there is a way to force a Login with a specified account to Windows as part of an OSD.  I have an command in the registry in HKEY Local Machine...../RunOnce that needs to run before the end user uses their computer. 
     Unfortunatly, it just will not run as part of a "Run Command Line" Task. 
    I can accomlish this by using the GUIUNATTEND AutoLogon in Sysprep, but that also presents some challenges.  If there was a way in the OSD Task Sequence that I could force a login with a specified account and then logout, that would be great.
    Thanks
    Rosy_55

    The code (vb) below would be created into a step as an application installation or package installation as the second to last step, the last step would be to reboot into the default OS.  
    This will, during OSD set a autologin account to login until rebooted, once done the last step will reboot and log into windows, the runonce section will then run gpupdate, and then restart the machine.
     It will only login once.  Modify as needed.
    Note that you need to modify the sUsername = "domain\user", and sPassword = "domainuserpassword"
    variables.
    CODE:
    'after autologin this sets the computer to run gpupdate one time and then reboot
    Set objShell = WScript.CreateObject("WScript.Shell")
    strRunOnce = "HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\RunOnce\joinDomain"
    objShell.RegWrite strRunOnce, "cmd /k gpupdate "&chr(38)&chr(38)&"shutdown -r -f -t 10", "REG_SZ"
    'this configures the autologin
    Const HKEY_CLASSES_ROOT = &h80000000
    Const HKEY_CURRENT_USER = &h80000001
    Const HKEY_LOCAL_MACHINE = &h80000002
    Const HKEY_USERS = &h80000003
    Const HKEY_CURRENT_CONFIG= &h80000005
    Const HKEY_DYN_DATA = &h80000006
    sUsername = "domain\user"
    sPassword = "domainuserpassword"
    Set objNetwork = CreateObject("Wscript.Network")
    sComputer = objNetwork.ComputerName
    strRegKey = "Software\Microsoft\Windows NT\CurrentVersion\Winlogon\"
    Write64BitRegistry "REG_SZ", HKEY_LOCAL_MACHINE, strRegKey, "AutoAdminLogon", "1"
    Write64BitRegistry "REG_SZ", HKEY_LOCAL_MACHINE, strRegKey, "DefaultUserName", sUsername
    Write64BitRegistry "REG_SZ", HKEY_LOCAL_MACHINE, strRegKey, "DefaultDomainName", strComputer
    Write64BitRegistry "REG_SZ", HKEY_LOCAL_MACHINE, strRegKey, "DefaultPassword", sPassword
    Write64BitRegistry "REG_SZ", HKEY_LOCAL_MACHINE, strRegKey, "ForceAutoLogon", 1
    Write64BitRegistry "REG_DWORD", HKEY_LOCAL_MACHINE, strRegKey, "AutoLogonCount", 1
    Sub Write64BitRegistry (strRegType, strRootKey, strKey, strValueName, strValue)
    Dim objCtx, objLocator, objReg, intReturnCode
    Set objCtx = CreateObject("WbemScripting.SWbemNamedValueSet")
    objCtx.Add "__ProviderArchitecture", 64
    Set objLocator = CreateObject("Wbemscripting.SWbemLocator")
    Set objReg = objLocator.ConnectServer("", "root\default", "", "", , , , objCtx).Get("StdRegProv")
    If Ucase(strRegType) = "KEY" Then
    intReturnCode = objReg.CreateKey(strRootKey,strKey)
    End If
    If Ucase(strRegType) = "REG_DWORD" Then
    intReturnCode = objReg.SetDWORDValue(strRootKey,strKey,strValueName,strValue)
    End If
    If Ucase(strRegType) = "REG_SZ" Then
    intReturnCode = objReg.SetStringValue(strRootKey,strKey,strValueName,strValue)
    End If
    If Ucase(strRegType) = "REG_EXPAND_SZ" Then
    intReturnCode = objReg.SetExpandedStringValue(strRootKey,strKey,strValueName,strValue)
    End If
    If Not intReturnCode = 0 Then
    End If
    End Sub
    William Lee

  • PXE OSD Task Sequence fails to run on new laptop

    We are trying to run a working PXE OSD task sequence on a new HP laptop.  It's a Elitebook 840 G2.  We've downloaded the provided driver package & created a new driver package in SCCM.  We inserted the driver into the boot image &
    updated the DPs.  When we PXE boot the laptop it flashes the splash screen & reboots.  Other laptops & desktops boot properly.  This looks like a driver issue but we wanted to run it past the forum to see if anyone had any other suggestions.
     The SMSTS log file is copied below.
    LOGGING: Finalize process ID set to 728
    TSBootShell
    4/23/2015 4:20:40 PM
    732 (0x02DC)
    ==============================[ TSBootShell.exe ]==============================
    TSBootShell 4/23/2015 4:20:40 PM
    732 (0x02DC)
    Succeeded loading resource DLL 'X:\sms\bin\i386\1033\TSRES.DLL'
    TSBootShell 4/23/2015 4:20:40 PM
    732 (0x02DC)
    Debug shell is enabled TSBootShell
    4/23/2015 4:20:40 PM 732 (0x02DC)
    Waiting for PNP initialization... TSBootShell
    4/23/2015 4:20:40 PM 736 (0x02E0)
    RAM Disk Boot Path: NET(0)\SMSIMAGES\ALN00001\BOOT.ALN00001.WIM
    TSBootShell 4/23/2015 4:20:40 PM
    736 (0x02E0)
    Booted from network (PXE) TSBootShell
    4/23/2015 4:20:40 PM 736 (0x02E0)
    Network(PXE) path: X:\sms\data\ TSBootShell
    4/23/2015 4:20:40 PM 736 (0x02E0)
    Found config path X:\sms\data\ TSBootShell
    4/23/2015 4:20:40 PM 736 (0x02E0)
    Booting from removable media, not restoring bootloaders on hard drive
    TSBootShell 4/23/2015 4:20:40 PM
    736 (0x02E0)
    X:\sms\data\WinPE does not exist. TSBootShell
    4/23/2015 4:20:40 PM 736 (0x02E0)
    X:\_SmsTsWinPE\WinPE does not exist. TSBootShell
    4/23/2015 4:20:40 PM 736 (0x02E0)
    Executing command line: wpeinit.exe -winpe TSBootShell
    4/23/2015 4:20:40 PM 736 (0x02E0)
    Executing command line: X:\WINDOWS\system32\cmd.exe /k
    TSBootShell 4/23/2015 4:20:40 PM
    732 (0x02DC)
    The command completed successfully. TSBootShell
    4/23/2015 4:20:40 PM 732 (0x02DC)
    Successfully launched command shell. TSBootShell
    4/23/2015 4:20:40 PM 732 (0x02DC)
    Executing command line: X:\WINDOWS\system32\cmd.exe /k
    TSBootShell 4/23/2015 4:20:41 PM
    732 (0x02DC)
    The command completed successfully. TSBootShell
    4/23/2015 4:20:41 PM 732 (0x02DC)
    Successfully launched command shell. TSBootShell
    4/23/2015 4:20:41 PM 732 (0x02DC)
    Executing command line: X:\WINDOWS\system32\cmd.exe /k
    TSBootShell 4/23/2015 4:20:41 PM
    732 (0x02DC)
    The command completed successfully. TSBootShell
    4/23/2015 4:20:41 PM 732 (0x02DC)
    Successfully launched command shell. TSBootShell
    4/23/2015 4:20:41 PM 732 (0x02DC)
    The command completed successfully. TSBootShell
    4/23/2015 4:20:43 PM 736 (0x02E0)
    Starting DNS client service. TSBootShell
    4/23/2015 4:20:43 PM 736 (0x02E0)
    Executing command line: X:\sms\bin\i386\TsmBootstrap.exe /env:WinPE /configpath:X:\sms\data\
    TSBootShell 4/23/2015 4:20:44 PM
    736 (0x02E0)
    The command completed successfully. TSBootShell
    4/23/2015 4:20:44 PM 736 (0x02E0)
    ==============================[ TSMBootStrap.exe ]==============================
    TSMBootstrap 4/23/2015 4:20:44 PM
    1124 (0x0464)
    Command line: X:\sms\bin\i386\TsmBootstrap.exe /env:WinPE /configpath:X:\sms\data\
    TSMBootstrap 4/23/2015 4:20:44 PM
    1124 (0x0464)
    Succeeded loading resource DLL 'X:\sms\bin\i386\1033\TSRES.DLL'
    TSMBootstrap 4/23/2015 4:20:44 PM
    1124 (0x0464)
    Succeeded loading resource DLL 'X:\sms\bin\i386\TSRESNLC.DLL'
    TSMBootstrap 4/23/2015 4:20:44 PM
    1124 (0x0464)
    Current OS version is 6.2.9200.0 TSMBootstrap
    4/23/2015 4:20:44 PM 1124 (0x0464)
    Adding SMS bin folder "X:\sms\bin\i386" to the system environment PATH
    TSMBootstrap 4/23/2015 4:20:44 PM
    1124 (0x0464)
    PXE Boot with Root = X:\ TSMBootstrap
    4/23/2015 4:20:44 PM 1124 (0x0464)
    Executing from PXE in WinPE TSMBootstrap
    4/23/2015 4:20:44 PM 1124 (0x0464)
    Loading TsPxe.dll from X:\sms\bin\i386\TsPxe.dll
    TSMBootstrap 4/23/2015 4:20:44 PM
    1124 (0x0464)
    TsPxe.dll loaded TSPxe
    4/23/2015 4:20:44 PM 1124 (0x0464)
    Device has PXE booted TSPxe
    4/23/2015 4:20:44 PM 1124 (0x0464)
    Variable Path: \SMSTemp\2015.04.22.16.21.10.0001.{8EBA05A2-1AB7-4CBB-9DDD-497DFE8E5E07}.boot.var
    TSPxe 4/23/2015 4:20:44 PM
    1124 (0x0464)
    Succesfully added firewall rule for Tftp TSPxe
    4/23/2015 4:20:44 PM 1124 (0x0464)
    Executing: X:\sms\bin\i386\smstftp.exe -i 172.20.100.51 get \SMSTemp\2015.04.22.16.21.10.0001.{8EBA05A2-1AB7-4CBB-9DDD-497DFE8E5E07}.boot.var X:\sms\data\variables.dat
    TSPxe 4/23/2015 4:20:44 PM
    1124 (0x0464)
    Command line for extension .exe is "%1" %*
    TSPxe 4/23/2015 4:20:44 PM
    1124 (0x0464)
    Set command line: "X:\sms\bin\i386\smstftp.exe" -i 172.20.100.51 get \SMSTemp\2015.04.22.16.21.10.0001.{8EBA05A2-1AB7-4CBB-9DDD-497DFE8E5E07}.boot.var X:\sms\data\variables.dat
    TSPxe 4/23/2015 4:20:44 PM
    1124 (0x0464)
    Executing command line: "X:\sms\bin\i386\smstftp.exe" -i 172.20.100.51 get \SMSTemp\2015.04.22.16.21.10.0001.{8EBA05A2-1AB7-4CBB-9DDD-497DFE8E5E07}.boot.var X:\sms\data\variables.dat
    TSPxe 4/23/2015 4:20:44 PM
    1124 (0x0464)
    Process completed with exit code 1 TSPxe
    4/23/2015 4:21:31 PM 1124 (0x0464)
    Succesfully removed firewall rule for Tftp TSPxe
    4/23/2015 4:21:31 PM 1124 (0x0464)
    uExitCode == 0, HRESULT=80004005 (e:\nts_sccm_release\sms\server\pxe\tspxe\tspxe.cpp,185)
    TSPxe 4/23/2015 4:21:31 PM
    1124 (0x0464)
    Failed to download pxe variable file. Code(0x00000001)
    TSPxe 4/23/2015 4:21:31 PM
    1124 (0x0464)
    PxeGetPxeData failed with 0x80004005
    TSPxe 4/23/2015 4:21:31 PM
    1124 (0x0464)
    HRESULT_FROM_WIN32(dwError), HRESULT=80004005 (e:\nts_sccm_release\sms\client\tasksequence\tsmbootstrap\tsmbootstraputil.cpp,1459)
    TSPxe 4/23/2015 4:21:31 PM
    1124 (0x0464)
    TSMBootstrapUtil::PxeGetPxeData(&bPxeBooted, sVariablesFile, sPxePasswd), HRESULT=80004005 (e:\nts_sccm_release\sms\client\tasksequence\tsmbootstrap\tsmediawizardcontrol.cpp,2667)
    TSPxe 4/23/2015 4:21:31 PM
    1124 (0x0464)
    oTSMediaWizardControl.Run( sMediaRoot, true, sTSLaunchMode ), HRESULT=80004005 (e:\nts_sccm_release\sms\client\tasksequence\tsmbootstrap\tsmbootstrap.cpp,1078)
    TSPxe 4/23/2015 4:21:31 PM
    1124 (0x0464)
    Execute( eExecutionEnv, sConfigPath, sTSXMLFile, uBootCount, &uExitCode ), HRESULT=80004005 (e:\nts_sccm_release\sms\client\tasksequence\tsmbootstrap\tsmbootstrap.cpp,1226)
    TSPxe 4/23/2015 4:21:31 PM
    1124 (0x0464)
    Exiting with return code 0x80004005 TSPxe
    4/23/2015 4:21:31 PM 1124 (0x0464)
    hMap != 0, HRESULT=80070002 (e:\nts_sccm_release\sms\framework\tscore\environmentscope.cpp,493)
    TSPxe 4/23/2015 4:21:31 PM
    1124 (0x0464)
    m_pGlobalScope->open(), HRESULT=80070002 (e:\nts_sccm_release\sms\framework\tscore\environmentlib.cpp,335)
    TSPxe 4/23/2015 4:21:31 PM
    1124 (0x0464)
    this->open(), HRESULT=80070002 (e:\nts_sccm_release\sms\framework\tscore\environmentlib.cpp,553)
    TSPxe 4/23/2015 4:21:31 PM
    1124 (0x0464)
    Execution complete. TSBootShell
    4/23/2015 4:21:31 PM 736 (0x02E0)
    hMap != 0, HRESULT=80070002 (e:\nts_sccm_release\sms\framework\tscore\environmentscope.cpp,493)
    TSBootShell 4/23/2015 4:21:31 PM
    736 (0x02E0)
    m_pGlobalScope->open(), HRESULT=80070002 (e:\nts_sccm_release\sms\framework\tscore\environmentlib.cpp,335)
    TSBootShell 4/23/2015 4:21:31 PM
    736 (0x02E0)
    this->open(), HRESULT=80070002 (e:\nts_sccm_release\sms\framework\tscore\environmentlib.cpp,553)
    TSBootShell 4/23/2015 4:21:31 PM
    736 (0x02E0)
    ::RegOpenKeyExW (HKEY_LOCAL_MACHINE, sKey.c_str(), 0, KEY_READ, &hSubKey), HRESULT=80070002 (e:\nts_sccm_release\sms\framework\tscore\utils.cpp,809)
    TSBootShell 4/23/2015 4:21:31 PM
    736 (0x02E0)
    RegOpenKeyExW is unsuccessful for Software\Microsoft\SMS\Task Sequence
    TSBootShell 4/23/2015 4:21:31 PM
    736 (0x02E0)
    GetTsRegValue() is unsuccessful. 0x80070002.
    TSBootShell 4/23/2015 4:21:31 PM
    736 (0x02E0)
    End program: TSBootShell
    4/23/2015 4:21:31 PM 736 (0x02E0)
    Finalizing logging from process 728 TSBootShell
    4/23/2015 4:21:31 PM 736 (0x02E0)
    Finalizing logs to root of first available drive
    TSBootShell 4/23/2015 4:21:31 PM
    736 (0x02E0)
    LOGGING: Setting log directory to "D:\SMSTSLog".
    TSBootShell 4/23/2015 4:21:31 PM
    736 (0x02E0)

    Press F8 in order to get a cmd window and see if the client got an IP address.
    Torsten Meringer | 
    There's no IP Address when trying to the command prompt. It doesn't even show a MAC Address.

  • Cant get 2013 data base AdminPassword= to work in OSD task sequence

    I'm using the MDT database to consolidate five windows 7 task sequences on five SCCM2007 site servers to one task sequence on one 2012 R2 site server. I got my locations by ip subnet working and most of the settings applied successfully, Join Domain, add 
    a group to the local  admin group, but I can't seem to get the AdminPassword=MyPassword to work.
    I've got an "apply windows settings" step in my task sequence. But the machine keeps getting what ever its password is set to.
    If I leave it bland then I get a blank password etc.. If I run without the "apply windows settings" step then then the task sequence fails and finishes with a mini setup prompting for a computer name. I can see the other values that are collected
    in the Bdd.log:
    Remapping variables.
    Property OSDDomainName is now = My.Domain
    <Message containing password has been suppressed>
    I even tried adding the default setting directly to the customsettings.ini file: AdminPassword=MyPassword. But the workstation still takes its password from the "apply windows step". I'm going to try and enable debug logging and see if the log
    has anything about the local admin password. Anyone have any ideas? What am I doing wrong here?
    [Settings]
    Priority=LSettings, LAdmins,
    [Default]
    OSInstall=Y
    SkipCapture=YES
    SkipAdminPassword=NO
    SkipProductKey=NO
    SkipComputerBackup=YES
     SkipBitLocker=YES

    I wrote\borrowed\modified a powershell script that gets the value of the base 64 encoded AdminPassword variable from the MDTDB, decodes it and applys it to the OSDLocalAdminPassword.
    This runs after the gather step in my OSD task sequence and before the Apply Windows Settings step.
    I never figured out why this was necessary but it works. Here is the power shell script if anyone has a similar problem:
     http://blogs.technet.com/b/mniehaus/archive/2009/09/22/running-powershell-scripts-as-part-of-a-task-sequence.aspx
     http://mylifeismymessage.net/base64-encodeddecode-functions-powershell/
    Function Base64Decode($textBase64In)
        $b  = [System.Convert]::FromBase64String($textBase64In)
        $decoded = [System.Text.Encoding]::UTF8.GetString($b)
        return $decoded
    $tsenv = New-Object -COMObject Microsoft.SMS.TSEnvironment
    $password = $tsenv.Value("AdminPassword")
    $base64out = Base64Decode($password)
    $tsenv.Value("OSDLocalAdminPassword") = $base64out

  • 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.

  • SCCM 2012 OSD Task Sequence - force Policy and SCEP update?

    Hi,
    How can I force a policy update to update machine policy and scep definitions at the end of
    SCCM 2012 OSD Task Sequence,
    Thanks,
    Ward.

    Hi,
    I normally use this solution from Chris Nackers to deploy the latest EP definitions during OSD and deploy a custom EP policy, it works great. The policy will be downloaded when the client is registered.
    Regards,
    Jörgen
    -- My System Center blog ccmexec.com -- Twitter
    @ccmexec

Maybe you are looking for

  • Finding fields in R/3 for data extraction VS Business content

    Hi all, I am doing my first BW project after my training and I am finding it difficult to locate some fields that should be part of my report. The Consultant says Sales Group, Inco terms, Open orders, Account assignment group, Sold to party, ship to

  • Mass extention of service entry sheet condition record validity date

    Hi all,       I have immediate requirement. i need to extend the validity date for condition record related to the Service entry sheet. This has to done mass sheet changes.      I am looking for Any bapi or Standard function module or any config chan

  • Why does Acrobat 9 Pro asks for Acrobat 9 Pro or Reader for best results

    I have linked a page in Acrobat 9 Pro to a video which has been converted to a PDF and is one of the pages in the portfolio. When I activate the link the cover sheet comes up For the best experience, open this PDF portfolio in Acrobat 9 or Adobe Read

  • IPhone 5s not showing in iTunes 12

    I finished updating my macbook pro over the weekend to Yosemite and iTunes to 12.0.1.  I checked for more updates and it says that none are available.  I have an iPhone 5s and an iPad mini both with iOS 8.0.2.  They bother worked before the update. 

  • Memory doesn't get cleared when i delete the playlist

    Hi, I am using iPOD nano. I have turned "manually manage music" option ON. now I create an play list by right clicking on iPod icon in I-Tune browser and i drag and drom songs from my folder on computer to this play list. If i want to delete this pla