stop certain folders from being deleted when LTICleanup.wsf takes effect (MDT)

AW479 1 Reputation point
2023-01-07T19:07:38.823+00:00

Hey Everyone,

I am currently trying to figure out how to stop LTICleanup.wsf from deleting folders I create. for example at the begining of the task sequence I have a script that changes bios settings and outputs a log. it will save the log X:\MININT\SMSOSD\OSDLOGS\BIOSLOGS.txt then I have another script that moves that log to D:\Temp "xcopy X:\MININT\SMSOSD\OSDLOGS\BIOSLOGS.txt D:\Temp\ /I /F /Y /E" since C: is not existant yet.

when I launch cmd during task sequence and check the directories i see all that happening good. but seems after image is completed Temp folder is non existant. I am assuming LTICleanup.wsf cleans it up. how can I make an exemption for this folder and file in it.

Thanks in advance

Microsoft Deployment Toolkit
Microsoft Deployment Toolkit
A collection of Microsoft tools and documentation for automating desktop and server deployment. Previously known as Microsoft Solution Accelerator for Business Desktop Deployment (BDD).
919 questions
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. CherryZhang-MSFT 6,491 Reputation points
    2023-01-12T07:27:10.1+00:00

    Hi @ Alexander Williams ,

    when I launch cmd during task sequence and check the directories i see all that happening good.

    1, You have seen the file created under path X:\MININT\SMSOSD\OSDLOGS\BIOSLOGS.txt and copied to path D:\Temp, right?

    2, Why you say C: is not existent, but D: is existent? Was the operating system already installed in the compute before that?

    3, Could you please upload a full task sequence screenshot and show the section about your changes for our reference?

    We can refer to the smsts.log to check the create and copy process of BIOSLOGS.txt.

    We can refer to the LiteTouch.log to see if BIOSLOGS.txt has been cleaned by LTICleanup.wsf. (If possible, please upload these full logs for our reference.)

    Looking forward to your reply.

    Best regards,
    Cherry

     


  2. AW479 1 Reputation point
    2023-01-14T20:51:04.19+00:00

    @CherryZhang-MSFT

    Screenshot of the file being in C:\Temp

    User's image

    Screenshot of my Task Sequence

    User's image

    LiteTouch.log

    smsts.log


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.