檢舉 Win2k Server 帳號轉移的問題

如果要把server A的使用者帳號資料,批次移轉或複製到server B去,需要兩個DOS command-line工具:copypwd.exe與addusers.exe(來自MSDN Resource CD)。

首先,把以上兩個工具都複製到server A與B。先在server A上,執行:

C:\copypwd>addusers /d: accounts.txt

把server A的帳號(含群組)寫到檔案accounts.txt去。

C:\copypwd>copypwd DUMP > copypwd.txt

把server A帳號的密碼傾印到檔案copypwd.txt。

然後把accounts.txt、copypwd.txt兩個檔案複製到server B去。在server B上,用文字編輯器打開accounts.txt,把裡面有些會跟server B原有的系統帳號重覆的,如administrator、Guest、TsInternetUser等行加以刪除。然後在server B上執行:

C:\copypwd>addusers /c accounts.txt /p:e

參數/p:e的用意是讓使用者的密碼不會過期。這樣帳號與群組就建好了。接著再執行:

C:\copypwd>copypwd SET

因為copypwd.exe只認識copypwd.txt的檔名,所以必須確認檔名是否完全一致。這樣就把密碼也複製過來了。