ทำความเข้าใจ Sysprep

0
11646

คำสั่งในการเช็ค SID ของเครื่อง (SID คือ Security Identifier) ที่ต้องไม่ซ้ำกันในแต่ละ Computer Name เปรียบเสมือนเลขที่บัตรประชาชน

เครื่องมือ Sysprep.exe ช่วยให้คนที่ต้อง Deploy เครื่องเยอะ ๆ โดยใช้ Image เดียวกันได้รับการสร้าง SID ใหม่ ทำให้ SID ของ Computer ไม่ชนกัน

ใช้คำสั่ง

wmic

useraccount get name, sid

image

ทำความเข้าใจในเบื้องต้นระหว่าง Audit Mode กับ OOBE

image

ทำความเข้าใจเพิ่มตรงนี้ก่อนนะครับ

Audit Mode = Reboot เข้าสู่ Administrator / Clear Configuration / User Profile /

OOBE = เข้าสู่ Welcome Screen

Generalize = Reset SID

ใช้เครื่อง W7-01 ในการทำความรู้จักกับ Sysprep ใน Mode ต่าง ๆ

ตัวอย่างคำสั่ง

c:\windows\system32\sysprep\sysprep.exe /oobe /generalize /shutdown

การเข้าแก้ไข user profile สำหรับ audit mode

control nusrmgr.cpl

rundll32.exe sysdm.cpl,EditUserProfiles

image

ในการทำงานจริง ถ้าต้องทำ Reference Image

1. เข้า Audit Mode เพื่อ Clear ค่า Settings ต่าง ๆ ให้หมด

2. Sysprep เข้า OOBE Mode / Generalize