ปัญหา Sysprep was not able to validate your Windows installation บน Windows 10 Enterprise

0

วันนี้ผมมีวิธีการแก้ปัญหาการรัน Sysprep บนเครื่องพีซี Windows 10 Enterprise Version 1703 หรือที่รู้จักในชื่อ Creators Update มาฝากครับ

ข้อมูลระบบ
ข้อมูลเครื่องพีซีที่ใช้อ้างอิงมีดังนี้

  • Windows 10 Enterprise Version 1703 (64-บิต)
  • ติดตั้งแบบ Clean Installation
  • System Preparation Tool 3.14
  • ล็อกอินด้วยบัญชีที่เป็นสมาชิก Local Administrators

ปัญหาการรัน Sysprep บน Windows 10 Enterprise

สำหรับผู้ใช้ที่ทำการติดตั้ง Windows 10 Enterprise (ในที่นี้อ้างอิง Version 1703) บนเครื่องพีซีเพื่อทำเป็นเครื่องพีซีต้นฉบับ (Master PC หรือ Reference PC) โดยหลังจากทำการติดตั้งโปรแกรมต่าง ๆ เสร็จเรียบร้อยแล้ว จากนั้นเมื่อพยายามทำการรันคำสั่ง Sysprep (โปรแกรมเก็บอยู่ในโฟลเดอร์ %WINDIR%\System32\Sysprep) เพื่อใช้สำหรับสร้างไฟล์อิมเมจสำหรับใช้โคลนลงพีซีเครื่องอื่น ๆ โดยเลือกดังค่าต่าง ๆ ดังนี้

  • System Cleanup Action เลือกเป็น Enter System Out-of-Box Experience (OOBE)
  • เลือก Generalize
  • Shutdown Options เลือกเป็น Shutdown

ทิป: คำสั่งแบบคอมมานด์ไลน์ใช้ sysprep /oobe /generalize /shutdown

อย่างไรก็ตาม เมื่อคลิก OK จะไดรับข้อความแสดงความผิดพลาด ดังนี้

Sysprep was not able to validate your Windows installation. Review the log file at %WINDIR%\System32\Sysprep\Panther\setupact.log for details. After resolving the issue, use Sysprep to validate your installation again.

หมายเหตุ: สามารถอ่านรายละเอียดปัญหาได้จากไฟล์ setupact.log (เก็บอยู่ในโฟลเดอร์ %WINDIR%\System32\Sysprep\Panther\)

สาเหตุและวิธีแก้ปัญหาการ Sysprep ระบบ Windows 10 Enterprise

สาเหตุที่ทำให้เกิดปัญหาการทำ Sysprep บนเครื่องพีซี Windows 10 Enterprise แล้วขึ้นข้อความ Sysprep was not able to validate your Windows installation ตามรายละเอียดด้านบนนั้น คาดว่าเกิดจากแอปในตัว Windows 10 ซึ่งวิธีการแก้ปัญหาทำได้โดยการลบแอปในตัว Windows 10 ออก ตามขั้นตอนดังนี้

1. [เฉพาะ Windows 10 Enterprise Version 1703] เปิด Windows PowerShell ด้วยระดับสิทธิ์ โดย คลิกขวาบนปุ่ม Start หรือกดปุ่ม Windows + X จากนั้นคลิก Windows Power (Admin) แล้วคลิก Yes บนหน้า User Account Control (UAC) ถ้ามี

[Windows 10 Enterprise ทุกเวอร์ชัน] ทำการค้นหา powershell (ใช้ตัวใหญ่หรือตัวเล็กก็ได้ครับ) ด้วย Cortana จากนั้นคลิกขวาบน Windows PowerShell desktop app บนหน้าผลการค้นหาแล้วเลือก Run as administrators แล้วคลิก Yes บนหน้า UAC ถ้ามี

2. ที่พร้อม Windows PowerShell ให้ทำการรันคำสั่งด้านล่าง แล้วรอจนการทำงานแล้วเสร็จ

Get-AppxPackage -AllUsers | Remove-AppxPackage

3. ทำการรัน Sysprep ใหม่อีกครั้ง หากไม่มีอะไรผิดพลาด Sysprep จะทำงานได้สำเร็จ

แหล่งอ้างอิง
OLVED: How To Build A Windows 10 Image Using SysPrep and Customize the Default Profile

ประวัติการปรับปรุง
19 กุมภาพันธ์ 2561: ปรับปรุงเนื้อหา
19 กรกฎาคม 2560: เผยแพร่ครั้งแรก

Share This
Facebooktwitterredditpinterestlinkedinmailby feather
Share.

Comments are closed.