Jump to content


  • 0
DancingFerret

Using NAS device for USMT

Question

1 answer to this question

Recommended Posts

  • 0

I wrote a very quick batch file to help Desktop Support in writing the MIG file to a NAS server. No changes were made to the network share, and it's not running IIS.

 

echo off

set server=LionKing

set share=statepoint

set drive=t:

set domain=private.domain

set user=sccmnetworkaccount

set password=*password*

net use %drive% \\%server%\%share% %password% /user:%domain%\%user% /persistent:no

if "%errorlevel%"=="0" echo You should now be connected to the State Migration Point.

if "%errorlevel%"=="2" echo You are already connected to the State Migration Point. Please continue.

:Menu

echo.

echo .......................................................................................................

echo Please name the folder for your Profile Capture and press enter.

echo .......................................................................................................

echo.

set /P folder=

if "%folder%"=="exit" goto exit

if "%folder%"=="cmd" cmd

Rem The following line ignores all profile SSIDs that are absent an ntuser.dat file (but still in the registry)

SET MIG_IGNORE_PROFILE_MISSING=1

scanstate t:\%folder% /i:miguser.xml /i:migapp.xml /uel:60

if "%errorlevel%"=="0" goto complete

if "%errorlevel%" NEQ "0" echo Error: %errorlevel%

if "%errorlevel%"=="1" echo Double check that the profile capture completed please..

if "%errorlevel%"=="2" echo Double check that the profile capture completed please..

if "%errorlevel%"=="27" goto dupe

:dupe

echo A folder with the same name already exists. Please choose another.

goto Menu

:complete

echo Profile Migration should be complete. Location: \\%server%\%share%\%folder%

pause

:exit

exit

 

Then you would do something similar to pull the data back, but with the loadstate.exe and applicable switches. Hard Linking is much better though. :rolleyes:

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.