วันอังคารที่ 6 พฤษภาคม พ.ศ. 2557

การ Ghost Windows XP ให้ Auto Driver และสามารถ ghost ได้ทุกเครื่อง

สิ่งที่ต้องเตรียม
1. แผ่นติดตั้ง Windows XP

2. ติดตั้งโปรแกรม 7-Zip หรือ winrar เพื่อแตกไฟล์

3.พื้นที่ไดร์อื่น เช่น ไดร์ D: สำหรับเก็บไฟล์ Image ของไดร์ C: ( ไฟล์Image ไม่ใช่ไฟล์รูปภาพนะครับเป็นศัพท์ที่ใช้เรียกชื่อไฟล์ที่ได้จากโปรแกรมโคลน Harddisk ต่าง ๆเช่นไฟล์ที่ได้จากโปรแกรม Norton Ghost )โดยให้มีพื้นที่ขนาดใกล้เคียงกับข้อมูลที่ใช้ในไดร์ C:

เริ่มจากการเตรียมเครื่องที่จะทำเป็นต้นแบบ โดยให้คุณติดตั้ง Windows XP โปรแกรมต่างๆ ที่ต้องการใช้งาน และทำการปรับแต่งค่าของ Windowsและโปรแกรมให้เรียบร้อย แนะนำว่าควรจะกำหนดขนาดของไดร์ C: ให้มีขนาดเล็ก ๆไว้ก่อน เพราะในตอนโคลนจะไม่สามารถโคลนไปยังเครื่องที่มีขนาดไดร์ C:เล็กกว่าเครื่องต้นแบบได้

เมื่อเตรียมเครื่องเสร็จแล้วต่อไปจะเป็นขั้นตอนการทำ sysprep และ รวมชุดโปรแกรมติดตั้งไดรเวอร์อัตโนมัติ

ให้สร้างโฟลเดอร์ชื่อ sysprep ไว้ที่ไดร์ C: ของเครื่องต้นแบบ แล้วคัดลอกไฟล์DEPLOY.CAB จากแผ่นติดตั้ง Windows XP มาไว้ในโฟลเดอร์ C:\sysprepที่เราเพิ่งสร้างขึ้นมา โดยให้คัดลอกจากแผ่นที่เป็น Service Packเดียวกันกับที่ลงไว้ในเครื่องต้นแบบ เช่นเครื่องต้นแบบลง Service Pack 2ไว้ ก็ต้องคัดลอกไฟล์จากแผ่นติดตั้ง Service Pack 2 โดยไฟล์ DEPLOY.CABจะอยู่ในโฟลเดอร์ SUPPORT\TOOLS ของแผ่นติดตั้ง Windows XP ดังรูป
=500) window.open('http://www.thaisolution.net/images/stories/63/content/sysprep/copy-deploy-file.png');" onload="if(this.offsetWidth>'500')this.width='500';if(this.offsetHeight>'500')this.height='500';" border="0" width="500">
แตกไฟล์ DEPLOY.CAB ออก

=500) window.open('http://www.thaisolution.net/images/stories/63/content/sysprep/extract-deploy-file.png');" onload="if(this.offsetWidth>'500')this.width='500';if(this.offsetHeight>'500')this.height='500';" border="0" height="500" width="500">
จะได้ไฟล์ดังรูป
=500) window.open('http://www.thaisolution.net/images/stories/63/content/sysprep/deploy-file-extracted.png');" onload="if(this.offsetWidth>'500')this.width='500';if(this.offsetHeight>'500')this.height='500';" border="0" width="500">
ต่อไปสร้างโฟลเดอร์ใหม่สำหรับเก็บ Driver Packs โดยจะสร้างไว้ที่ไหนก็ได้ในตัวอย่างนี้ผมสร้างโฟลเดอร์ชื่อ driver-packs ไว้ในไดร์ C:
แล้วโหลด Driver Packs BASE จากhttp://downloads.driverpacks.net/applications/driverpacks-base/DPs_BASE_8125.exe
มาไว้ในโฟลเดอร์ C:\dirver-packs ที่ได้สร้างไว้ โดยโหลดไฟล์ DPs_BASE มาไว้ก่อนดังรูป
=500) window.open('http://www.thaisolution.net/images/stories/63/content/sysprep/driver-packs-base-file.png');" onload="if(this.offsetWidth>'500')this.width='500';if(this.offsetHeight>'500')this.height='500';" border="0" width="500">
ดับเบิ้ลคลิกไฟล์ DPs_BASE จะแสดงหน้าต่างดังรูปด้านล่าง ให้กด Extract
=500) window.open('http://www.thaisolution.net/images/stories/63/content/sysprep/extract-driver-packs-base.png');" onload="if(this.offsetWidth>'500')this.width='500';if(this.offsetHeight>'500')this.height='500';" border="0">
จะได้ไฟล์ที่แตกออกมาดังรูป
=500) window.open('http://www.thaisolution.net/images/stories/63/content/sysprep/driver-packs-base-file-extracted.png');" onload="if(this.offsetWidth>'500')this.width='500';if(this.offsetHeight>'500')this.height='500';" border="0" width="500">

จากนั้นจึงโหลด Driver Packs ของชุดไดรเวอร์ต่าง ๆ ในหน้า
http://driverpacks.net/driverpacks/latest
ไปไว้ที่ C:\driver-packs\DriverPacks โดยจะดาวน์โหลดมาทั้งหมดหรือเลือกเอาบางอย่างก็ได้ ดังรูป
=500) window.open('http://www.thaisolution.net/images/stories/63/content/sysprep/driver-packs-file.png');" onload="if(this.offsetWidth>'500')this.width='500';if(this.offsetHeight>'500')this.height='500';" border="0" width="500">

และหากต้องการชุดไดร์เวอร์อื่น ๆ เพิ่มเติมให้ไปดาวน์โหลดที่
http://3rdpartydriverpacks.thesneaky.com/wnt5_x86-32/
ไปไว้ในโฟลเดอร์ C:\driver-packs\3rd party DriverPacks โดยจะดาวน์โหลดมาทั้งหมดหรือเลือกเอาบางอย่างก็ได้ ดังรูป
=500) window.open('http://www.thaisolution.net/images/stories/63/content/sysprep/3rd-driver-packs-file.png');" onload="if(this.offsetWidth>'500')this.width='500';if(this.offsetHeight>'500')this.height='500';" border="0" width="500">
เมื่อดาวน์โหลดชุดไฟล์ไดรเวอร์ที่ต้องการมาไว้หมดแล้ว ให้แตกไฟล์ชุดไดรเวอร์ที่อยู่ในโฟลเดอร์ C:\driver-packs\DriverPacks และ C:\driver-packs\3rdparty DriverPacks ออกทั้งหมด ดังรูป
=500) window.open('http://www.thaisolution.net/images/stories/63/content/sysprep/extract-all-driver-packs-file.png');" onload="if(this.offsetWidth>'500')this.width='500';if(this.offsetHeight>'500')this.height='500';" border="0" height="500" width="500">

=500) window.open('http://www.thaisolution.net/images/stories/63/content/sysprep/extract-all-3rd-driver-packs-file.png');" onload="if(this.offsetWidth>'500')this.width='500';if(this.offsetHeight>'500')this.height='500';" border="0" height="500" width="500">

จะได้ไฟล์ที่แตกออกมาดังรูป
=500) window.open('http://www.thaisolution.net/images/stories/63/content/sysprep/driver-packs-file-extracked.png');" onload="if(this.offsetWidth>'500')this.width='500';if(this.offsetHeight>'500')this.height='500';" border="0" height="500" width="500">

=500) window.open('http://www.thaisolution.net/images/stories/63/content/sysprep/3rd-driver-packs-file-extracked.png');" onload="if(this.offsetWidth>'500')this.width='500';if(this.offsetHeight>'500')this.height='500';" border="0" width="500">

จากนั้นคัดลอก หรือย้ายไฟล์ .ini ทุกไฟล์ และโฟลเดอร์ชื่อ D จากC:\driver-packs\DriverPacks และ C:\driver-packs\3rd party DriverPacksไปไว้ที่ไดร์ C: ให้ตอบ Yes ในในตอนคัดลอกโฟลเดอร์ Dเนื่องจากมีชื่อเดียวกัน

=500) window.open('http://www.thaisolution.net/images/stories/63/content/sysprep/copy-extracted-file-to-c.png');" onload="if(this.offsetWidth>'500')this.width='500';if(this.offsetHeight>'500')this.height='500';" border="0" width="500">

ดาวน์โหลดไฟล์
sys_prep.zip
แตกไฟล์ออกจะได้ไฟล์ sysprep.inf คัดลอกไปไว้ในโฟลเดอร์ C:\sysprep

คัดลอกไฟล์ DPsFnshr.ini จาก C:\driver-packs\bin ไปไว้ที่ไดร์ C:

เสร็จแล้วเปิดไฟล์ DPsFnshr.ini ในไดร์ C: เพื่อแก้ไขในบรรทัด

KTD = ""

เป็น

KTD = "paths:D\C;D\CPU;D\G;D\L;D\M;D\S;D\W;D\3"

โดย D\C D\CPU D\G D\L D\M D\S D\W D\3 เป็นชื่อโฟลเดอร์ย่อยที่อยู่ในโฟลเดอร์ D โฟลเดอร์ไหนไม่มีก็ไม่ต้องใส่



เปิดไฟล์ DPsFnshr.7z ในโฟลเดอร์ C:\driver-packs\bin ด้วยโปรแกรม 7-Zipแล้วคัดลอกไฟล์ devcon.exe, DPsFnshr.exe และ makePNF.exe ไปไว้ที่ไดร์ C:

คัดลอกไฟล์ ROE.exe จากโฟลเดอร์ C:\driver-packs\bin\wnt5_x86-32 ไปยัง C:\sysprep

เปิดไฟล์ M2.7z จากโฟลเดอร์ C:\driver-packs\bin\wnt5_x86-32 แล้วคัดลอกไฟล์ DevPath.exe ไปยังไดร์ C:

=500) window.open('http://www.thaisolution.net/images/stories/63/content/sysprep/neccessary-file.png');" onload="if(this.offsetWidth>'500')this.width='500';if(this.offsetHeight>'500')this.height='500';" border="0">

เปิด Command Promp โดยไปที่ปุ่ม Start > Run พิมพ์ cmd กด OK แล้วใช้คำสั่ง
C:\DevPath.exe C:\D

=500) window.open('http://www.thaisolution.net/images/stories/63/content/sysprep/devpath-command.png');" onload="if(this.offsetWidth>'500')this.width='500';if(this.offsetHeight>'500')this.height='500';" border="0" width="500">

จากนั้นใช้คำสั่ง
C:\makePNF.exe C:\D

หลังจากใช้คำสั่งนี้จะแสดงหน้าจอดังรูปด้านล่าง ให้รอจนเสร็จแล้วพิมพ์คำสั่งต่อไป
=500) window.open('http://www.thaisolution.net/images/stories/63/content/sysprep/make-pnf.png');" onload="if(this.offsetWidth>'500')this.width='500';if(this.offsetHeight>'500')this.height='500';" border="0" width="500">

เมื่อเสร็จแล้วใช้คำสั่ง

C:\sysprep\sysprep.exe -bmsd

หลังจากใช้คำสั่งนี้จะแสดงหน้าจอดังรูปด้านล่าง ให้รอจนเสร็จหน้าจอจะหายไป
=500) window.open('http://www.thaisolution.net/images/stories/63/content/sysprep/sysprep-working.png');" onload="if(this.offsetWidth>'500')this.width='500';if(this.offsetHeight>'500')this.height='500';" border="0">

เมื่อเสร็จแล้วอย่าเพิ่งปิดหน้าต่าง Command Prompt ให้เปิดไฟล์ sysprep.inf ในC:\sysprep ด้วย Notepad หรือโปรแกรม Text Editor อะไรก็ได้แล้วใส่เครื่องหมาย ; (semicolon) หน้าบรรทัด

BuildMassStorageSection=Yes

เป็นดังนี้

; BuildMassStorageSection=Yes

เพื่อไม่ให้คำสั่งนี้ทำงาน เสร็จแล้วบันทึกไฟล์จากนั้นพิมพ์คำสั่งต่อไปนี้ในหน้า Command Promptเพื่อกำหนดให้รันคำสั่งตอนเริ่มเปิดให้ Windows ทำงาน

C:\sysprep\ROE.exe 937

ขั้นตอนสุดท้ายของการทำ sysprep ให้ปิดโปรแกรมอื่นทั้งหมด ให้เหลือแต่ CommandPromp ลบโฟลเดอร์ driver-packs และไฟล์ DevPath.exe ที่อยู่ในไดร์ C: ออกแล้วพิมพ์คำสั่ง

C:\sysprep\sysprep.exe

จะแสดงหน้าต่างดังรูป
=500) window.open('http://www.thaisolution.net/images/stories/63/content/sysprep/sysprep-warning.png');" onload="if(this.offsetWidth>'500')this.width='500';if(this.offsetHeight>'500')this.height='500';" border="0" width="500">

ให้กด OK จะแสดงหน้าต่างดังรูป
=500) window.open('http://www.thaisolution.net/images/stories/63/content/sysprep/sysprep-parameter.png');" onload="if(this.offsetWidth>'500')this.width='500';if(this.offsetHeight>'500')this.height='500';" border="0">

ให้เลือกดังรูป แล้วกด Reseal รอจนโปรแกรมสั่งปิดเครื่องไปก็เป็นการเสร็จขั้นตอนการทำ sysprep

ต่อไปก็เปิดเครื่องใหม่ใส่แผ่นซีดีของโปรแกรมโคลน Harddisk แล้วกำหนดใน Biosให้บูตจากซีดีด้วย ตรงนี้ระวังอย่าให้มันบูตเข้า Windows XP อีกนะครับไม่งั้นเราต้องเริ่มทำใหม่ครับเพราะมันจะเข้าสู่การกำหนดสภาพแวดล้อมและติดตั้งไดรเวอร์ของ Windows ใหม่



ถึงตอนนี้เราก็สามารถทำ Image file ของไดร C:เก็บไว้เพื่อเอาไปโคลนให้กับเครื่องอื่น ๆ ได้แล้วครับ การทำ Image fileจะใช้โปรแกรมอะไรก็ได้ เช่น Norton Ghost, Clone Zilla, Acronis TrueImage, Drive Image XML เป็นต้น

เมื่อ เราเอา Image fileที่สร้างไว้โคลนไปยังเครื่องอื่น พอเปิดเครื่องขึ้นมา Windowsก็จะทำการปรับสภาพแวดล้อมใหม่ให้เข้ากับเครื่องนั้นพร้อมกับติดตั้งไดรเวอร์ให้โดยอัตโนมัติโดยที่โปรแกรมและการปรับแต่งค่าต่าง ๆ จะเหมือนกับเครื่องต้นแบบ

ด้วยวิธีนี้หากใครที่ต้องดูแลเครื่องเป็นจำนวนมาก ๆที่ต้องใช้งานโปรแกรมเหมือน หรือแตกต่างกันไม่มากสามารถทำเครื่องต้นแบบแล้วเอาไปลงเครื่องอื่น ๆให้เหมือนกับเครื่องต้นแบบแล้วปรับแต่ง หรือเพิ่มโปรแกรมอีกเล็กน้อยก็สามารถใช้งานได้ตามที่ต้องการ ไม่ต้องไปลงโปรแกรมใหม่ทั้งหมดทีละโปรแกรมช่วยประหยัดเวลาของเราได้มากครับ

ไม่มีความคิดเห็น:

แสดงความคิดเห็น