Jump to content


acpowell

Windows 10 ENT setupcomplete.cmd never launches

Recommended Posts

I am using SCCM 2012 R2 to do ploy Windows 10 Enterprise. That last step in the task sequence puts a SetupComplete.cmd script in C:\Windows\Setup\Scripts\. This has worked flawlessly on my windows 7 and windows 8.1 installs but when I try to get it to work with windows 10 it is a no go.

 

I can run the file manually and it works fine but I need it to run before the user logs in as it adds things to the profile. I am not sure where to even start with troubleshooting this as it just worked from the get go with the other builds.

 

Any help would be greatly appreciated.

Share this post


Link to post
Share on other sites


hi

what does your smsts.log file reveal when it runs the step ?

Share this post


Link to post
Share on other sites

hi

what does your smsts.log file reveal when it runs the step ?

 

From what I am reading it completes the copy, which I can verify on the machine once I log into it. I even went so far as to have it create an ErrorHandler.cmd also.

Share this post


Link to post
Share on other sites

I am also seeing in the unattendGC\setupact.log that the file supposedly runs:

 

2016-02-16 11:11:00, Info [windeploy.exe] RunUserProvidedScript: Found script at [C:\WINDOWS\Setup\Scripts\SetupComplete.cmd]; executing with UI hidden...
2016-02-16 11:18:25, Info [windeploy.exe] RunUserProvidedScript: Successfully executed script; (returned with exit code 0x0)
2016-02-16 11:18:25, Info [windeploy.exe] WinDeploy.exe exiting with code [0x0]
Although I am not seeing any evidence of it running other than this log.
Here is the script it is running and confirmed to work on windows 8.1 and it works if I run it manually:
@echo Off
Echo ###################################################
Echo ###################################################
Echo ## ##
Echo ## Apply customizations to Default User profile ##
Echo ## ##
Echo ###################################################
Echo ###################################################
Echo ##################
Echo # Registry Edits #
Echo ##################
Echo **********************************
Echo Load Default User registry hive
Echo **********************************
reg load HKU\DefaultUser "C:\Users\Default\ntuser.dat"
Echo ******************************
Echo Force Classic Control Panel
Echo ******************************
reg add "HKU\DefaultUser\Software\Microsoft\Windows\CurrentVersion\Explorer\ControlPanel" /v StartupPage /d 1 /t REG_DWORD /f
reg add "HKU\DefaultUser\Software\Microsoft\Windows\CurrentVersion\Explorer\ControlPanel" /v AllItemsIconView /d 1 /t REG_DWORD /f
Echo *************************************************************************
Echo Show the desktop icons for Computer, User's Files, and Internet Explorer
Echo *************************************************************************
Echo *************************************
Echo **Show Computer icon on the desktop**
Echo *************************************
REG ADD "HKU\DefaultUser\Software\Microsoft\Windows\CurrentVersion\Explorer\HideDesktopIcons\NewStartPanel" /v "{20D04FE0-3AEA-1069-A2D8-08002B30309D}" /t REG_DWORD /d 0 /f
Echo *****************************************
Echo **Show User's Files icon on the desktop**
Echo *****************************************
REG ADD "HKU\DefaultUser\Software\Microsoft\Windows\CurrentVersion\Explorer\HideDesktopIcons\NewStartPanel" /v "{59031a47-3f72-44a7-89c5-5595fe6b30ee}" /t REG_DWORD /d 0 /f
Echo **********************************************
Echo **Show Internet Explorer icon on the desktop**
Echo **********************************************
REG ADD "HKU\DefaultUser\Software\Microsoft\Windows\CurrentVersion\Explorer\HideDesktopIcons\NewStartPanel" /v "{871C5380-42A0-1069-A2EA-08002B30309D}" /t REG_DWORD /d 0 /f
Echo *****************************************************
Echo Disable Microsoft Office first run message
Echo *****************************************************
reg add "HKU\DefaultUser\Software\Microsoft\Office\14.0\Common\General" /v ShownOptIn /d 1 /t REG_DWORD /f
Echo *****************************************************
Echo Disable Microsoft Communicator First Run Tour
Echo *****************************************************
reg add "HKU\DefaultUser\Software\Microsoft\Communicator" /v FirstRunPlayed /d "1" /t REG_DWORD /f
Echo *****************************************************
Echo Set default theme
Echo *****************************************************
reg add "HKU\DefaultUser\Software\Policies\Microsoft\Windows\Personalization" /v Themefile /d "%systemroot%\Resources\Themes\**REDACTED**.theme" /t REG_SZ /f
Echo ==============================================================================
Echo Make Windows use OEM Background image
Echo ==============================================================================
REG ADD HKLM\SOFTWARE\Policies\Microsoft\Windows\Personalization /V LockScreenImage /T REG_SZ /D C:\Windows\Web\Wallpaper\**REDACTED**\**REDACTED**LockScreenImage_Lenovo.png /F
Echo ***********************************
Echo Unload Default User registry hive
Echo ***********************************
reg unload HKU\DefaultUser

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...

×
×
  • Create New...