echo 请用系统管理员帐户运行本程序,否则加域操作无法正常进行!
echo.
ECHO ******选择操作系统类型*******
:START
echo.
echo 1: 重置系统SID(NewSID)
echo 2: WindowsXP
echo 3: Windows7 x86
echo 4: Windows7 x64
echo q: Quit
echo.
SET /P OS_type=系统类型[1-4 or q]:
IF \
IF \
IF \
IF \
IF \
echo 选择有误,请重新选择 & GoTo START
:WinXp
echo 你选择了WinXP系统!
call \
exit
:Win7x86
echo 你选择了Win7系统32位!
if not exist \
\
if not exist \
\/y
if not exist \
\/y
REM 调用Windows 7 x86加域迁移脚本
call \
exit
:Win7x64
echo 你选择了Win7系统64位!
if not exist \
\
if not exist \
\/y
if not exist \
\/y
REM 调用Windows 7 x64加域迁移脚本
call \
exit
:Newsid
echo 你选择了重置系统SID并改计算机名
set a=%computername%
echo 当前计算机名为:%a%
set /p newname=将用 NewSID 重置SID并改计算机名,请输入新计算机名:
if \计算机名不能为空,请重新选择。&pause&endlocal&cls&goto Start
echo 即将更新SID,计算机名将从 %computername% 更改为 %Newname% 注:更改SID完成后将重新启动计算机
pause
c:\\Domain_Migration\\newsid /a %Newname%
goto end
:EOF
Exit
**************************************************************************************************************************
REM 脚本结束
2、WinXPAutoAddDomain.bat,更改计算机名,加域,迁移用户配置文件
@echo off

