Jump to content


  • 0
boognish

usmtutils.exe - Hardlink

Question

Is anyone using usmtutils.exe during the task sequence to delete the OSDStateStorePath after a Hardlink? I know you have to use a batch file similar to "echo y| usmtutils.exe /rd %OSDStateStorePath%" but I am getting errors about UNC paths.

 

I discovered the need to do this from this site. http://blogs.technet.com/b/configurationmgr/archive/2010/06/30/how-to-use-usmt-4-hardlinking-in-a-configuration-manager-2007-task-sequence.aspx

Share this post


Link to post
Share on other sites

3 answers to this question

Recommended Posts

  • 0

Peter use's it on his blog here

 

http://www.petervanderwoude.nl/post/Capture-User-Files-and-Settings-Offline-(WinPE)-or-Online-(FullOS)-with-ConfigMgr-2007.aspx

 

 

Thanks.

 

I ended up creating steps to copy the usmtutil.exe and a batch file to the %systemdrive% and then run the batch file to delete the statestore.

Share this post


Link to post
Share on other sites

  • 0

If you don't want to copy it locally then the important part of the batchfile that I use is %~dp0, see here:

 

REM ======================================================

REM VARIABLE -1- OSDStateStorePath = %1

REM VARIABLE -2- Architecture = %2

REM ======================================================

 

REM ======================================================

REM RUN USMTUtils

REM ======================================================

 

echo y| "%~dp0%2\usmtutils.exe" /rd "%1"

 

REM ======================================================

REM EXIT Errorlevel

REM ======================================================

 

EXIT /b %errorlevel%

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.