第 4 章 移行の参考例
シナリオ 6: マルチユーザーの移行
<Description>%SystemDrive%¥Documents and Settings¥All Users¥ /s</Description>
<DateCompare>
<Operand></Operand>
<Date></Date>
</DateCompare>
<SizeCompare>
<Operand></Operand>
<Size></Size>
</SizeCompare>
</ExcDescription>
</Exclusions>
<IncUsers>
<UserName>$(all)</UserName>
</IncUsers>
<ExcUsers>
<UserName>ASPNET</UserName>
<UserName>Administrator</UserName>
<UserName>Guest</UserName>
<UserName>SQLDebugger</UserName>
</ExcUsers>
<MigrationNote>
<Note></Note>
</MigrationNote>
<Printers>
<Printer></Printer>
</Printers>
<MISC>
<bypass_registry>false</bypass_registry>
<overwrite_existing_files>true</overwrite_existing_files>
<resolve_icon_links>false</resolve_icon_links>
<PromptBeforeDelayedApply>true</PromptBeforeDelayedApply>
</MISC>
</controlcard>
.bat ファイルの例
例 1: Capture.bat ファイル
@echo SMA5.2 Installation is in progress...
start /WAIT SMAsetup.exe /s /v"/qn"
copy config.ini "C:¥Program Files¥ThinkVantage¥SMA¥config.ini" /y
copy GUI_default_commands.xml "C:¥Program Files¥ThinkVantage¥SMA¥GUI_default_commands.xml" /y
@echo Start Capture operation...
"C:¥Program Files¥ThinkVantage¥SMA¥sma.exe"
例 2: Apply.bat ファイル
@echo SMA5.2 Installation is in progress...
start /WAIT SMAsetup.exe /s /v"/qn"
copy GUI_default_commands.xml "C:¥Program Files¥ThinkVantage¥SMA¥GUI_default_commands.xml" /y
@echo Start Apply operation...
"C:¥Program Files¥ThinkVantage¥SMA¥sma.exe" "¥¥ServerName¥Folder¥FileName.sma"
ーの共用フォルダーに作成されます。ターゲット PC 上で、管理者は共用 ドライブ上の Apply.bat ファイルをダブルクリックして SMA のインストー ルを開始します。インストールが完了すると、GUI モードによる移行が自 動的に開始し、管理者はターゲット PC 上の GUI 選択ビューで移行中の設 定を選択しなおすことができます。「シナリオ 5: マルチユーザーの移行」
との違いは、ソース PC での移行がバッチ・モードで実行されることで す。
移行の条件
マルチユーザーのバッチ・モードでの移行条件を表15 に要約して示しま す。
表15. マルチユーザーのバッチ・モードでの移行条件
項目 ソース PC ターゲット PC
操作者 Administrator Administrator
Windows OS のバージョン Windows 2000
Professional
Windows XP または Windows Vista ログオン・ユーザー・アカウントのタイプ ローカル管理者 ローカル管理者
ツール (SMABAT または SMA) SMABAT SMA
接続: ファイルまたは PC から PC へ サーバー上のファイル
¥¥Server¥folder¥FileName 移行される設定 デスクトップ設定 デスクトップ・アイコン スクリーン・セーバー 壁紙
ネットワーク設定 マップされたドライブ アプリケーション設定 Microsoft Access
Microsoft Word Microsoft Excel Microsoft Power Point Microsoft Outlook プリンター設定
移行されるファイルと フォルダー
「マイ ドキュメント」フォルダー内の全ユー ザーのファイル
(Documents and Settings¥*¥My Documents) 移行から除外されるフ
ァイルとフォルダー
Documents and Settings¥Administrator Documents and Settings¥All Users 他の各種設定 Resolve_icon_links = YES
移行前に管理者が実施する作業
1. サーバー上に次の 2 つの共用フォルダーを準備します。
v SMA をセットアップするための SMA_Inst v SMA_移行ファイルを置くための SMA_Files
2. SMA_Inst フォルダーに次のファイルを準備します。
v ターゲット PC 上で GUI をカスタマイズするための config.ini v ターゲット PC 上で移行コマンドをカスタマイズするための
GUI_default_commands.xml
v ソース PC 上で移行コマンドをカスタマイズするための Commands.xml
v SMA をインストールするための SMASetup.exe
v ソース PC 上で SMA をセットアップし呼び出すための Capture.bat v ターゲット PC 上で SMA をセットアップし呼び出すための
Apply.bat
3. エンド・ユーザーに対して、移行対象のファイルを「マイ ドキュメン ト」フォルダーに置くように依頼します。
移行前にエンド・ユーザーが実施する作業
移行対象のファイルを「マイ ドキュメント」フォルダーに移動またはコピ ーします。
移行中に 管理者が実施する作業
ソース PC で以下を行います。
1. SMA_Inst 共用フォルダーを Y: ドライブとしてマップします。
2. SMA のインストールを開始するために Capture.bat ファイルをダブルク
リックします。
3. SMABAT オペレーションが完了したら、移行ファイルが
¥¥Server¥Folder
に作成されることを確認します。ここで、¥¥Server¥folder は、UNC 形
式の SMA_Files 共用フォルダーです。
4. ソース PC をシャットダウンし、ターゲット PC の操作に移ります。
ターゲット PC で以下を行います。
1. SMA_Inst 共用フォルダーを Y: ドライブとしてマップします。
2. SMA を開始するために Apply.bat ファイルをダブルクリックします。
3. 「ユーザー・プロファイル」ウィンドウが開いたら、移行しないアカウ ントのチェック・ボックスをクリアします。
4. 画面の指示に従って進みます。
5. 移行済みユーザーに対して、ターゲット PC にログオンし、遅延適用処 理を完了するように依頼します。
移行後にエンド・ユーザーが実施する作業
1. ターゲット PC にログオンし、遅延適用処理が開始することを確認しま す。
2. 遅延適用処理が完了したらコンピューターを再起動します。
commands.xml ファイルの例
<?xml version="1.0" ?>
<?sma version="5.0" ?>
<controlcard>
<!--<PlainPassword></PlainPassword>
</Password>
<TransferMode>
<mode>File</mode>
</TransferMode>
<P2P>
<connection_id></connection_id>
</P2P>
<FilesAndFolders>
<run>true</run>
</FilesAndFolders>
<ArchiveFile>
<filename>¥¥ServerName¥Folder¥FileName.sma</filename>
</ArchiveFile>
<Desktop>
<desktop_settings>false</desktop_settings>
<accessibility>false</accessibility>
<active_desktop>false</active_desktop>
<colors>false</colors>
<desktop_icons>true</desktop_icons>
<display>false</display>
<icon_metrics>false</icon_metrics>
<keyboard>false</keyboard>
<mouse>false</mouse>
<pattern>false</pattern>
<screen_saver>true</screen_saver>
<sendto_menu>false</sendto_menu>
<shell>false</shell>
<sound>false</sound>
<start_menu>false</start_menu>
<taskbar>false</taskbar>
<time_zone>false</time_zone>
<wallpaper>true</wallpaper>
<window_metrics>false</window_metrics>
</Desktop>
<Network>
<ip_subnet_gateway_configuration>false</ip_subnet_gateway_configuration>
<dns_configuration>false</dns_configuration>
<wins_configuration>false</wins_configuration>
<computer_name>false</computer_name>
<computer_description>false</computer_description>
<domain_workgroup>false</domain_workgroup>
<shared_folders_drives>false</shared_folders_drives>
<mapped_drives>true</mapped_drives>
<dialup_networking>false</dialup_networking>
<microsoft_networking>false</microsoft_networking>
<odbc_datasources>false</odbc_datasources>
</Network>
<Applications>
<Application>Microsoft Access</Application>
<Application>Microsoft Office Word</Application>
<Application>Microsoft Office Excel</Application>
<Application>Microsoft Office Power Point</Application>
<Application>Microsoft Outlook</Application>
</Applications>
<Inclusions>
<IncDescription>
<Description>%SystemDrive%¥Documents and Settings¥*¥My Documents¥ /s</Description>
<Operation></Operation>
<DateCompare>
<Operand></Operand>
<Date></Date>
</DateCompare>
<SizeCompare>
<Operand></Operand>
<Size></Size>
</SizeCompare>
</IncDescription>
</Inclusions>
<Exclusions>
<ExcDescription>
<Description>%SystemDrive%¥Documents and Settings¥Administrator¥ /s</Description>
<DateCompare>
<Operand></Operand>
<Date></Date>
</DateCompare>
<SizeCompare>
<Operand></Operand>
<Size></Size>
</SizeCompare>
</ExcDescription>
<ExcDescription>
<Description>%SystemDrive%¥Documents and Settings¥All Users¥ /s</Description>
<DateCompare>
<Operand></Operand>
<Date></Date>
</DateCompare>
<SizeCompare>
<Operand></Operand>
<Size></Size>
</SizeCompare>
</ExcDescription>
</Exclusions>
<IncUsers>
<UserName>$(all)</UserName>
</IncUsers>
<ExcUsers>
<UserName>ASPNET</UserName>
<UserName>Guest</UserName>
<UserName>SQLDebugger</UserName>
</ExcUsers>
<MigrationNote>
<Note></Note>
</MigrationNote>
<Printers>
<Printer></Printer>
</Printers>
<MISC>
<bypass_registry>false</bypass_registry>
<overwrite_existing_files>true</overwrite_existing_files>
<resolve_icon_links>true</resolve_icon_links>
<autoreboot>2</autoreboot>
</MISC>
Capture.bat ファイルの例
@echo SMA5.2 Installation is in progress...
start /WAIT SMAsetup.exe /s /v"/qn"
md C:¥SMAWORK
copy commands.xml "C:¥SMAWORK¥commands.xml" /y
@echo Start Capture operation...
"C:¥Program Files¥ThinkVantage¥SMA¥smabat.exe" /c "C:¥SMAWORK¥commands.xml"
config.ini ファイルの例
;******************************************************************************
; CONFIG.INI
;
; This file is intended for use with SMA version 5.2. It is used to override
; default settings within SMA.
;
; Important: Any text that appears after a semicolon ";" will be treated as a
; comment. The semicolon must appear at the beginning of the text
; and must not be preceded by other characters. Also, the text
; in this file is not case sensitive.
; For example: C:¥COMMANDS.XML is treated exactly the same as
; c:¥commands.xml.
;
;******************************************************************************
;---; GLOBAL OPTIONS
;---Configuration_File_Show_Configuration_Messages = no
Import_Command_File = GUI_default_commands.xml
Import_Command_File_For_Apply = GUI_default_commands_apply.xml Export_Command_File =
Just_Create_Command_File = Verbose_Logging = yes Enable_4GFat32_warning = yes Preprocess_Executable =
; Set YES/NO to display/hide the previous file selection dialog Show_Previous_File_Selection_Dialog = no
; Set YES/NO to display/hide the message for P2P migration Show_P2P_Messagebox = no
; Set YES/NO to display/hide the file dialog to open and save migration file Show_File_Dialog = no
; Set YES/NO to display/hide the start processing message dialog Show_Start_Processing_Dialog = no
; Set YES/NO to display/hide the reboot message dialog Show_Reboot_Dialog = yes
; Set YES/NO to display/hide the progress dialogs Show_All_Progressbar_Dialogs = yes
; Set YES/NO to display/hide the all warning message dialogs Show_All_Warning_Dialogs = yes
; Set YES/NO to enable/disable password protection Enable_Password_Protection = no
;---; SHOW/NOT SHOW PAGE OPTIONS
;---Splash_Page_Show_Page = no
Welcome_Page_Show_Page = no Begin_Page_Show_Page = no TopOptions_Page_Show_Page = no MigOptions_Page_Show_Page = no Profiles_Page_Show_Page = no Desktop_Page_Show_Page = no Applications_Page_Show_Page = no Network_Page_Show_Page = no Printers_Page_Show_Page = no
P2P_Logon_Page_Show_Page = no P2P_Auto_SRC_Page_Show_Page = no P2P_Manual_TGT_Page_Show_Page = no P2P_Manual_SRC_Page_Show_Page = no P2P_SourceIni_Page_Show_Page = no P2P_Keyword_Page_Show_Page = no Receive_Data_Page_Show_Page = no Log_Page_Show_Page = yes
SummaryTypical_Page_Show_Page = yes
;---; WINDOW TITLE OPTIONS
;---Welcome_Page_Title =
Begin_Page_Title = TopOptions_Page_Title = MigOptions_Page_Title = Profiles_Page_Title = Desktop_Page_Title = Applications_Page_Title = Network_Page_Title = Printers_Page_Title = Selection_Page_Title = AutoManual_Page_Title = P2P_Logon_Page_Title = P2P_Auto_SRC_Page_Title = P2P_Manual_TGT_Page_Title = P2P_Manual_SRC_Page_Title = P2P_SourceIni_Page_Title = P2P_Keyword_Page_Title = Receive_Data_Page_Title = Log_Page_Title =
SummaryTypical_Page_Title =
;---; GUIDANCE TEXT OPTIONS
;---Welcome_Page_Guidance_Text =
Begin_Page_Guidance_Text = TopOptions_Page_Guidance_Text = MigOptions_Page_Guidance_Text = Profiles_Page_Guidance_Text = Desktop_Page_Guidance_Text = Applications_Page_Guidance_Text = Network_Page_Guidance_Text = Printers_Page_Guidance_Text = Selection_Page_Guidance_Text = AutoManual_Page_Guidance_Text = P2P_Logon_Page_Guidance_Text = P2P_Auto_SRC_Page_Guidance_Text = P2P_Manual_TGT_Page_Guidance_Text = P2P_Manual_SRC_Page_Guidance_Text = P2P_SourceIni_Page_Guidance_Text = P2P_Keyword_Page_Guidance_Text = Receive_Data_Page_Guidance_Text = Log_Page_Guidance_Text =
SummaryTypical_Page_Guidance_Text =
;---; SPLASH PAGE
;---Splash_Page_Display_Time =
;---; BEGIN PAGE
;---; TopOptions_Page_xxxx options are unavailable.
;---; If this is the PC you want to move to, set Target.
; If this is the PC you want to move from, set Source.
TopOptions_Page_Choice_Mode =
; Choose the type of migration you want to perform below.
; FileTransfer : Copy files and settings using a removable media
; P2P : PCs are directly connected by an ethernet cable TopOptions_Page_Choice_TransferMode =
; Set yes to perform a Target-Initiated migration,
; or set no to perform a standard migration.
TopOptions_Page_Target_Initiated_Migration =
;---; INSTALL METHOD PAGE
;---; Set Network/Media to perform a Auto/Manual migration.
InstallMethod_Page_Choice_Method =
;---; MIGRATION OPTIONS PAGE
;---Options_Page_Choice_Profiles = display,enabled,checked
Options_Page_Choice_Desktop = display,enabled,checked Options_Page_Choice_Applications = display,enabled,checked Options_Page_Choice_Printers = hide,enabled,unchecked Options_Page_Choice_Network = display,enabled,checked Options_Page_Choice_Files = display,enabled,checked
;---; DESKTOP PAGE
;---Desktop_Page_Choice_Desktop_Settings = display,enabled
Desktop_Page_Choice_Accessibility = display,enabled Desktop_Page_Choice_Active_Desktop = display,enabled Desktop_Page_Choice_Colors = display,enabled
Desktop_Page_Choice_Desktop_Icons = display,enabled Desktop_Page_Choice_Display = display,enabled Desktop_Page_Choice_Icon_Font = display,enabled Desktop_Page_Choice_Keyboard = display,enabled Desktop_Page_Choice_Mouse = display,enabled Desktop_Page_Choice_Pattern = display,enabled Desktop_Page_Choice_Screen_Saver = display,enabled Desktop_Page_Choice_Send_To_Menu = display,enabled Desktop_Page_Choice_Shell = display,enabled Desktop_Page_Choice_Sound = display,enabled Desktop_Page_Choice_Start_Menu = display,enabled Desktop_Page_Choice_Task_Bar = display,enabled Desktop_Page_Choice_Time_Zone = display,enabled Desktop_Page_Choice_Wallpaper = display,enabled Desktop_Page_Choice_Window_Metrics = display,enabled
;---; APPLICATIONS PAGE
;---Applications_Page_Show_Registry_Button = no
;---; NETWORK PAGE
;---Network_Page_Choice_TCP_IP_Configuration = display
Network_Page_Choice_IP_Subnet_Gateway = display,enabled Network_Page_Choice_DNS_Configuration = display,enabled Network_Page_Choice_WINS_Configuration = display,enabled Network_Page_Choice_Network_Identification = display Network_Page_Choice_Computer_Name = display,enabled Network_Page_Choice_Computer_Description = display,enabled Network_Page_Choice_Domain_Workgroup = display, enabled Network_Page_Choice_Other = display
Network_Page_Choice_Mapped_Drives = display,enabled Network_Page_Choice_Dial_Up_Networking = display,enabled