第 4 章 移行の参考例
シナリオ 2: シングル・ドメイン・ユーザーの移行 55
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
"C:¥Program Files¥ThinkVantage¥SMA¥sma.exe" "¥¥ServerName¥Folder¥FileName.sma"
取り込み CD
以下のファイルを取り込み CD のルート・ディレクトリーに準備します。
v 移行コマンドをカスタマイズするための Commands.xml ユーザー特権が「制限ユーザー」(管理者は除く) の場合は、
Commands.xml ファイルの <IncUsers> 選択にユーザー名を追加しないで ください。
v SMA 取り込み処理を開始するための Capture.bat v Capture.bat を自動的に実行するための autorun.inf 適用 CD
以下のファイルを適用 CD のルート・ディレクトリーに準備します。
v SMA 適用処理を開始するための Apply.bat v Apply.bat を自動的に実行するための autorun.inf 移行前にエンド・ユーザーが実施する作業
何もありません
移行中に管理者が実施する作業 何もありません
移行中にエンド・ユーザーが実施する作業 ソース PC で以下を行います。
1. ドメイン・ユーザーとしてログオンします。
2. SMA がインストールされていることを確認します。
3. ソース PC に取り込み CD を挿入します。Capture.bat ファイルが自動 的に立ち上がり、取り込み処理が開始します。
ターゲット PC で以下を行います。
1. ドメイン・ユーザーとしてログオンします。ログオン・ユーザー名はソ ース PC のものと同じ必要があります。
2. SMA がインストールされていることを確認します。
3. ターゲット PC に適用 CD を挿入します。Apply.bat ファイルが自動的 に立ち上がり、適用処理が開始します。
4. コンピューターの再起動を促すプロンプトが表示されたら、移行は完了 です。
5. ターゲット PC を再起動します。
取り込み CD 内容の例
Capture.bat ファイルの例
@echo off md C:¥SMAWORK
echo Start Capture operation...
"C:¥Program Files¥ThinkVantage¥SMA¥smabat.exe" /c "C:¥SMAWORK¥commands.xml" /p2p %connectionID%
:end
set connectionID=
commands.xml ファイルの例
<?xml version="1.0" ?>
<?sma version="5.0" ?>
<controlcard>
<!--<comment>SMA5.2 Deployment Guide Sample Senario#2</comment>
<comment>Migration single domain user from Win2000 to Win XP by PC to PC Migration</comment>
-->
<Password>
<PlainPassword></PlainPassword>
</Password>
<TransferMode>
<mode>P2P</mode>
</TransferMode>
<P2P>
<connection_id>unique_password</connection_id>
</P2P>
<FilesAndFolders>
<run>true</run>
</FilesAndFolders>
<ArchiveFile>
<filename></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>true</display>
<icon_metrics>false</icon_metrics>
<keyboard>false</keyboard>
<mouse>false</mouse>
<pattern>false</pattern>
<screen_saver>false</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>false</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>
<odbc_datasources>false</odbc_datasources>
</Network>
<Applications>
<Application>Lotus Notes</Application>
<Application>Lotus Sametime</Application>
</Applications>
<Inclusions>
<IncDescription>
<Description>%USERPROFILE%¥My Documents¥ /s</Description>
<Dest></Dest>
<Operation></Operation>
<DateCompare>
<Operand></Operand>
<Date></Date>
</DateCompare>
<SizeCompare>
<Operand></Operand>
<Size></Size>
</SizeCompare>
</IncDescription>
</Inclusions>
<Exclusions>
<ExcDescription>
<Description>*:¥*.mp3 /s</Description>
<DateCompare>
<Operand></Operand>
<Date></Date>
</DateCompare>
<SizeCompare>
<Operand></Operand>
<Size></Size>
</SizeCompare>
</ExcDescription>
</Exclusions>
<IncUsers>
<UserName></UserName>
</IncUsers>
<ExcUsers>
<UserName>ASPNET</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>
<autoreboot>2</autoreboot>
</MISC>
</controlcard>
適用 CD 内容の例
Apply.bat ファイルの例
@echo off md C:¥SMAWORK
copy /y commands.xml C:¥SMAWORK¥
:start
set connectionID=
set /p connectionID="type connection id >"
if /i "%connectionID%"=="" goto start if /i "%connectionID%"=="exit" goto end echo Start Apply operation...
"C:¥Program Files¥ThinkVantage¥SMA¥smabat.exe" /a "C:¥SMAWORK¥commands.xml" /p2p %connectionID%
:end
set connectionID=
commands.xml ファイルの例
<?xml version="1.0" ?>
<?sma version="5.0" ?>
<controlcard>
<!--<comment>SMA5.2 Deployment Guide Sample Senario#2</comment>
<comment>Migration single domain user from Win2000 to Win XP by PC to PC Migration</comment>
-->
<Password>
<PlainPassword></PlainPassword>
</Password>
<TransferMode>
<mode>P2P</mode>
</TransferMode>
<P2P>
<connection_id>unique_password</connection_id>
</P2P>
<FilesAndFolders>
<run>true</run>
</FilesAndFolders>
<ArchiveFile>
<filename></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>true</display>
<icon_metrics>false</icon_metrics>
<keyboard>false</keyboard>
<mouse>false</mouse>
<pattern>false</pattern>
<screen_saver>false</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>
</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>Lotus Notes</Application>
<Application>Lotus Sametime</Application>
</Applications>
<Inclusions>
<IncDescription>
<Description>%USERPROFILE%¥My Documents¥ /s</Description>
<Dest></Dest>
<Operation></Operation>
<DateCompare>
<Operand></Operand>
<Date></Date>
</DateCompare>
<SizeCompare>
<Operand></Operand>
<Size></Size>
</SizeCompare>
</IncDescription>
</Inclusions>
<Exclusions>
<ExcDescription>
<Description>*:¥*.mp3 /s</Description>
<DateCompare>
<Operand></Operand>
<Date></Date>
</DateCompare>
<SizeCompare>
<Operand></Operand>
<Size></Size>
</SizeCompare>
</ExcDescription>
</Exclusions>
<IncUsers>
<UserName></UserName>
</IncUsers>
<ExcUsers>
<UserName>ASPNET</UserName>
</ExcUsers>
<MigrationNote>
<Note></Note>
</MigrationNote>
<MISC>
<bypass_registry>false</bypass_registry>
<overwrite_existing_files>true</overwrite_existing_files>
<resolve_icon_links>false</resolve_icon_links>
<autoreboot>2</autoreboot>
</MISC>
</controlcard>