Jump to content

Do you use USMT?


Martin Zugec

Do you use USMT?  

18 members have voted

  1. 1. Do you use USMT?

    • Yes
      3
    • No
      6
    • I am using GUI wizard
      0
    • What is it?
      5
    • I dont know USMT, but it sounds interesting...
      3
    • I am using 3rd party product (DNA etc.)
      0


Recommended Posts

USMT is tool for migrating user profiles. It is extremely valuable for administrators, because it is real time-saver. I really like this tool.

You can migrate many things - from favourites, documents to your RAS settings or printers.

It is quite hard for common user to control behavior, however it is extremely useful.

In my company I am automigrating profiles (e.g. PC is "marked" for reinstallation, it will automatically migrate user profiles, reinstall PC and then restore profile).

At home I am using my Xbox as middleware for profiles migration

For more informations:

http://www.microsoft.com/windows2000/techi.../new/usmt-o.asp

P.S.: It is for free

BTW script for corporate admins:

@echo off
cls
SetLocal EnableDelayedExpansion
Set strLaunchDirectory=%~dp0
Set strIni2Include=usmt
Set strServerIniPath=%logonserver%\Netlogon\ServersIni
For /f "usebackq delims== tokens=1,2" %%a IN (`Type %strServerIniPath%\%strIni2Include%.ini`) DO (Set %%a=%%b)

Title Deleting log from previous migration
If exist %strLogStore%\%ComputerName% rmdir /s /q %strLogStore%\%ComputerName%
If exist %strDateStore%\%ComputerName% rmdir /s /q %strDateStore%\%ComputerName%

rem Conversion + saving date
for /f "usebackq tokens=1-4 delims=. " %%a in (`Echo %date:~3,10%`) do (
   set strDay=%%a&set strMonth=%%b&set strYear=%%c
   )
Echo %strDay% - %strMonth% - %strYear%
call:PrevedDatum
set /a strDnesnyDatum=strUniversalDate

rem Loading files
For /f "usebackq tokens=1-11 delims=. " %%i IN (`dir "C:\Documents and settings"`) DO (
If %%m EQU ^<DIR^> If "%%n" NEQ "" (
 Set strDay=%%i&&Set strMonth=%%j&&Set strYear=%%k
 If "%%o" EQU "" (Set strProfile=PRE\%%n) ELSE (Set strProfile=%ComputerName%\%%n)
 call:PrevedDatum
 Set strFileDate=!struniversalDate!
 Echo !strProfile! - !strDay!:!strMonth!:!strYear! - %strDnesnyDatum% - !strFileDate!
   call:Kod
 )
)
     
   

Title Creating user profile
:Save
mkdir %strLogStore%\%ComputerName%

Title Saving user profile
%strBinStore%\scanstate.exe %strDataStore%\%ComputerName% /i:%strBinStore%\MigSys.inf /i:%strBinStore%\MigUser.inf /i:%strBinStore%\MigIsm.inf /i:%strBinStore%\ExcludeDir.inf /i:%strBinStore%\IncludeFiles.inf /i:%strBinStore%\sysfiles.inf /compress+ /l:%strLogStore%\%ComputerName%\SaveDetails.log /progress:%strLogStore%\%ComputerName%\SaveSummary.log  /o /v:1 /c /localonly %UsmtProfile%
For /f "usebackq tokens=1-3 delims= " %%i IN (`type %strLogStore%\%ComputerName%\SaveDetails.log^|find /i "is included by rule"`) DO IF %%k NEQ NT Echo %%k > %strLogStore%\%ComputerName%\IncludedUsers.log
Goto :EOF

:PrevedDatum
Set /a strDay=100%strDay%%%100,strMonth=100%strMonth%%%100
Set /a z=14-strMonth,z/=12,strYear=strYear+4800-z,strMonth=strMonth+12*z-3,strUniversalDate=153*strMonth+2
set /a strUniversalDate=strUniversalDate/5+strDay+strYear*365+strYear/4-strYear/100+strYear/400-2432046
goto:eof

:Kod
set /a strRozdielDatumov=strDnesnyDatum-strFileDate
If %strRozdielDatumov% LSS 30 set UsmtProfile=%UsmtProfile% /user:%strProfile%
Echo %strProfile% - Posledna aktivacia pred %strRozdielDatumov% dnami
goto:eof

EDIT: Translated from slovak language :)

Link to comment
Share on other sites


Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...