You are here:   Research
  |  Login

Welcome to my blog, quickest way to find articles is usually to search for them.

Minimize
Search in All Title Contents
 
     

Understanding logging in ConfigMgr OS Deployment

Jun 15 2016

Anyone using ConfigMgr for OS Deployment for more than four seconds knows that it’s the log files you turn to when things go wrong. However even in ConfigMgr Current Branch (currently v1511 as base version, with v1602 as most recent upgrade), since debug logging is enabled by default, a log file can easily grow to 5 – 6 MB with just the default task sequence. That wouldn’t be much problem if the log file didn’t truncate a 2 MB, and then created an archive (one archive only). 2 + 2 MB is still less than 5 – 6 MB.

So you still need to do the trick of placing an SMSTS.INI file in the Windows folder of your boot image, as well as configure the Setup Windows and ConfigMgr action with the same info.

The SMSTS.INI file

Here is an SMSTS.INI configured to set the log file size to 16 MB and don’t use an extra archive copy.

[Logging]
LOGLEVEL=0
LOGMAXSIZE=16000000
LOGMAXHISTORY=1
DEBUGLOGGING=1

Note: The LOGLEVEL setting per the documentation can be from 0 – 3, with 0 being the most verbose logging (default value is 0), but it really does not matter what you set it to, it will log the same info, at least in OSD, and I have tried all combinations :)

Disable Debugging

I’m pretty sure there is a good reason why debug logging is enabled by default, I just don’t know why :)

Anyway, if you want to reduce the size of the log, you can disable debugging by setting DEBUGLOGGING=0. That will generate a log file that is only 1 –2 MB in size for a complete deployment instead of the 5 – 6 MB one. Here is a sample of the difference from two deployments with logging enabled vs. disabled.

Logs
First log is the default settings, e.g. debug logging enabled. The second log is with debug logging disabled.

Task Sequence configuration

Here is a task sequence configured to the same for the ConfigMgr client once that is installed by the task sequence.

TS0002
The log info configured for the ConfigMgr client.









Deployment News


Happy deployment, and thanks for reading!


What our lawyers makes us say:

This information is provided "AS IS" with no warranties, confers no rights and is not supported by the authors or Deployment Artist.

Copyright © 2017 by Deployment Artist (the company behind deployment research). All rights reserved. No part of the information on this web site may be reproduced or posted in any form or by any means without the prior written permission of the publisher.

Shorthand: Don't pass off our work as yours, it's not nice.

Blog Archive

Minimize




Where you can meet us!

Live Stream Recordings
ConfigMgr 1806 and W10 OSD

5 Days - Mega Geek Week 
(multiple classes, ConfigMgr, OSD etc.)
- Johan Arwidmark, Mikael Nystrom...
Jun 10, 2019, Chicago, IL, US

4 Days - Windows 10 OSD Classes
- Johan Arwidmark
May 20, 2019, San Diego, CA, US
Jun 17, 2019, Culemborg, NL
Jul 8, 2019, Phoenix, AZ, US

5 days - ConfigMgr Classes
- Johan Arwidmark and Kent Agerlund
Apr 8, 2019, Chicago, IL, US
Apr 22, 2019, Houston, TX, US

Video-based trainings
https://online.truesec.com
https://deploymentartist.com/Training/Videos

MDT, Windows 10 and ConfigMgr Books
http://deploymentartist.com/Books

Contact Info
http://deploymentresearch.com/theteam