Jump to content


  • 0
zach

Creating a Build and Capture TS with custom background and icons

Question

I want to create a build and capture TS with custom backgrounds copied to the computer in a "C:\windows\web\wallpaper\" location and add the my computer icon, user files icon to the desktop. Along with customizing the start menu a little to minimize what is shown to the user. Is there a way to do this during the task sequence because unlike with MDT we aren't allowed to pause the TS during the process to edit the image before capturing?

I found that I could create 2 TS and make one build the image then make changes and then come back and finish it off by running the capture TS but don't really want to do this every time.

Thanks for the advice.

Share this post


Link to post
Share on other sites

4 answers to this question

Recommended Posts

  • 0

Yeah, this can easily be done if you know any scripting languages. You can write a batch file or a VBScript or something to do everything you just listed. Once you have the script working, just put it in a folder, make an SCCM package out of it, and set up your script to be ran from the Program in the package. Then just run that at the tail end of your OS deployment TS.

 

Since it's just a few posts down from this one, take a peek at the bottom of this post for an example: http://www.windows-noob.com/forums/index.php?/topic/3379-configure-default-user-profile-while-deploying-windows-7/

Share this post


Link to post
Share on other sites

  • 0

Ok, here is the scrip that I have created. But when this is ran in my TS nothing ever gets copied to my Image. I have created a Build and Capture TS with the scripted inserted after the Install Software process. I have created a package with the scripts and added the package to my DS. In the TS I am deploying Windows 7 x64 and have tried running the command line with Disable 64 bit file system redirection on and off.

echo.
echo Copy Default User Picture
echo.
rename "C:\ProgramData\Microsoft\User Account Pictures\user.bmp" user.bmp.bk
xcopy /y user.bmp "C:\ProgramData\Microsoft\User Account Pictures\"

echo.
echo Copy Default Background to location
echo.
xcopy /y CGPS_BG_WS.jpg "C:\windows\web\wallpaper\windows\"

echo.
echo Set Explorer View and Start Menu Options
echo.
regedit /s HKCU_Explorer_Advanced.reg

echo.
echo Set Media Player first Run preference
echo.
regedit /s HKCU_MediaPlayerFirstRun.reg

echo.
echo Set Default Icons on Destop
echo.
regedit /s HKCU_DefaultIcons.reg

 

Here is my error log from smsts.log

<![LOG[Expand a string: smsswd.exe /run:CGS00048 CustomSettings.cmd]LOG]!><time="08:47:53.624+300" date="05-26-2011" component="TSManager" context="" type="0" thread="2376" file="executionenv.cxx:782">
<![LOG[Expand a string: ]LOG]!><time="08:47:53.624+300" date="05-26-2011" component="TSManager" context="" type="0" thread="2376" file="executionenv.cxx:782">
<![LOG[Command line for extension .exe is "%1" %*]LOG]!><time="08:47:53.624+300" date="05-26-2011" component="TSManager" context="" type="0" thread="2376" file="commandline.cpp:229">
<![LOG[set command line: smsswd.exe /run:CGS00048 CustomSettings.cmd]LOG]!><time="08:47:53.624+300" date="05-26-2011" component="TSManager" context="" type="0" thread="2376" file="commandline.cpp:707">
<![LOG[start executing the command line: smsswd.exe /run:CGS00048 CustomSettings.cmd]LOG]!><time="08:47:53.624+300" date="05-26-2011" component="TSManager" context="" type="1" thread="2376" file="instruction.cxx:2928">
<![LOG[!--------------------------------------------------------------------------------------------!]LOG]!><time="08:47:53.624+300" date="05-26-2011" component="TSManager" context="" type="1" thread="2376" file="instruction.cxx:2957">
<![LOG[Expand a string: WinPEandFullOS]LOG]!><time="08:47:53.624+300" date="05-26-2011" component="TSManager" context="" type="0" thread="2376" file="executionenv.cxx:782">
<![LOG[Executing command line: smsswd.exe /run:CGS00048 CustomSettings.cmd]LOG]!><time="08:47:53.624+300" date="05-26-2011" component="TSManager" context="" type="1" thread="2376" file="commandline.cpp:805">
<![LOG[=======================[ smsswd.exe ] =======================]LOG]!><time="08:47:53.671+300" date="05-26-2011" component="InstallSoftware" context="" type="1" thread="744" file="main.cpp:303">
<![LOG[PackageID = 'CGS00048']LOG]!><time="08:47:53.671+300" date="05-26-2011" component="InstallSoftware" context="" type="1" thread="744" file="main.cpp:332">
<![LOG[baseVar   = '', ContinueOnError='']LOG]!><time="08:47:53.671+300" date="05-26-2011" component="InstallSoftware" context="" type="1" thread="744" file="main.cpp:333">
<![LOG[swdAction = '0001']LOG]!><time="08:47:53.671+300" date="05-26-2011" component="InstallSoftware" context="" type="1" thread="744" file="main.cpp:334">
<![LOG[Found the location for the package _SMSTSCGS00048. The location is on \\ServerName\SMSPKGE$\CGS00048\]LOG]!><time="08:47:53.703+300" date="05-26-2011" component="InstallSoftware" context="" type="1" thread="744" file="resolvesource.cpp:3146">
<![LOG[nPos != CCM::Utility::String::npos, HRESULT=80004005 (e:\nts_sms_fre\sms\framework\tscore\resolvesource.cpp,253)]LOG]!><time="08:47:53.703+300" date="05-26-2011" component="InstallSoftware" context="" type="0" thread="744" file="resolvesource.cpp:253">
<![LOG[Creating a connection to \\ServerName\SMSPKGE$\CGS00048\ with default account]LOG]!><time="08:47:53.703+300" date="05-26-2011" component="InstallSoftware" context="" type="1" thread="744" file="resolvesource.cpp:2243">
<![LOG[Connection request for "\\ServerName\SMSPKGE$\CGS00048"]LOG]!><time="08:47:53.703+300" date="05-26-2011" component="InstallSoftware" context="" type="1" thread="744" file="tsconnection.cpp:208">
<![LOG[No credentials available for connecting to "\\ServerName\SMSPKGE$\CGS00048". See whether the share has already been connected.]LOG]!><time="08:47:53.703+300" date="05-26-2011" component="InstallSoftware" context="" type="1" thread="744" file="tsconnection.cpp:233">
<![LOG[Connecting to "\\ServerName\SMSPKGE$\CGS00048"]LOG]!><time="08:47:53.765+300" date="05-26-2011" component="InstallSoftware" context="" type="1" thread="744" file="tsconnection.cpp:268">
<![LOG[uRet != ERROR_LOGON_FAILURE && uRet != ERROR_ACCESS_DENIED, HRESULT=80070005 (e:\nts_sms_fre\sms\framework\tscore\tsconnection.cpp,294)]LOG]!><time="08:48:06.390+300" date="05-26-2011" component="InstallSoftware" context="" type="0" thread="744" file="tsconnection.cpp:294">
<![LOG[Failed to connect to "\\ServerName\SMSPKGE$\CGS00048". Invalid username or password.]LOG]!><time="08:48:06.390+300" date="05-26-2011" component="InstallSoftware" context="" type="2" thread="744" file="tsconnection.cpp:294">
<![LOG[reconnect(), HRESULT=80070005 (e:\nts_sms_fre\sms\framework\tscore\tsconnection.cpp,129)]LOG]!><time="08:48:06.390+300" date="05-26-2011" component="InstallSoftware" context="" type="0" thread="744" file="tsconnection.cpp:129">
<![LOG[connect(pszPath, pszAccount, pszPassword, L"", uFlags), HRESULT=80070005 (e:\nts_sms_fre\sms\framework\tscore\tsconnection.cpp,148)]LOG]!><time="08:48:06.390+300" date="05-26-2011" component="InstallSoftware" context="" type="0" thread="744" file="tsconnection.cpp:148">
<![LOG[Failed to connect to the share \\ServerName\SMSPKGE$\CGS00048\ with default account]LOG]!><time="08:48:06.390+300" date="05-26-2011" component="InstallSoftware" context="" type="2" thread="744" file="resolvesource.cpp:2277">
<![LOG[Creating a connection to the share \\ServerName\SMSPKGE$\CGS00048\ with network access account]LOG]!><time="08:48:06.390+300" date="05-26-2011" component="InstallSoftware" context="" type="1" thread="744" file="resolvesource.cpp:2358">
<![LOG[Connection request for "\\ServerName\SMSPKGE$\CGS00048"]LOG]!><time="08:48:06.390+300" date="05-26-2011" component="InstallSoftware" context="" type="1" thread="744" file="tsconnection.cpp:208">
<![LOG[Connecting to "\\ServerName\SMSPKGE$\CGS00048"]LOG]!><time="08:48:06.390+300" date="05-26-2011" component="InstallSoftware" context="" type="1" thread="744" file="tsconnection.cpp:268">
<![LOG[successfully connected to "\\ServerName\SMSPKGE$\CGS00048"]LOG]!><time="08:48:07.062+300" date="05-26-2011" component="InstallSoftware" context="" type="1" thread="744" file="tsconnection.cpp:287">
<![LOG[Resolved source to '\\ServerName\SMSPKGE$\CGS00048']LOG]!><time="08:48:07.093+300" date="05-26-2011" component="InstallSoftware" context="" type="1" thread="744" file="runcommandline.cpp:449">
<![LOG[Command line for extension .cmd is "%1" %*]LOG]!><time="08:48:07.109+300" date="05-26-2011" component="InstallSoftware" context="" type="0" thread="744" file="commandline.cpp:229">
<![LOG[set command line: Run command line]LOG]!><time="08:48:07.109+300" date="05-26-2011" component="InstallSoftware" context="" type="0" thread="744" file="commandline.cpp:707">
<![LOG[Working dir '\\ServerName\SMSPKGE$\CGS00048']LOG]!><time="08:48:07.109+300" date="05-26-2011" component="InstallSoftware" context="" type="1" thread="744" file="runcommandline.cpp:542">
<![LOG[Executing command line: Run command line]LOG]!><time="08:48:07.109+300" date="05-26-2011" component="InstallSoftware" context="" type="1" thread="744" file="commandline.cpp:805">
<![LOG[Process completed with exit code 0]LOG]!><time="08:48:08.296+300" date="05-26-2011" component="InstallSoftware" context="" type="1" thread="744" file="commandline.cpp:1102">
<![LOG[Command line returned 0]LOG]!><time="08:48:08.296+300" date="05-26-2011" component="InstallSoftware" context="" type="1" thread="744" file="runcommandline.cpp:565">
<![LOG[Entering ReleaseSource() for \\ServerName\SMSPKGE$\CGS00048\]LOG]!><time="08:48:08.296+300" date="05-26-2011" component="InstallSoftware" context="" type="1" thread="744" file="resolvesource.cpp:3431">
<![LOG[reference count 1 for the source \\ServerName\SMSPKGE$\CGS00048\ before releasing]LOG]!><time="08:48:08.296+300" date="05-26-2011" component="InstallSoftware" context="" type="1" thread="744" file="resolvesource.cpp:3438">
<![LOG[Released the resolved source \\ServerName\SMSPKGE$\CGS00048\]LOG]!><time="08:48:08.312+300" date="05-26-2011" component="InstallSoftware" context="" type="1" thread="744" file="resolvesource.cpp:3471">
<![LOG[Process completed with exit code 0]LOG]!><time="08:48:08.312+300" date="05-26-2011" component="TSManager" context="" type="1" thread="2376" file="commandline.cpp:1102">

 

Any help would be appreciated.

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
Answer this question...

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

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.