having a problem with sysprep on a Azure Windows 10 VM

Brass Contributor

 

OS version: 22H2 OS Build 19045.2251

 

When I run "Sysprep.exe /generalize /oobe /shutdown" , it showed a error :

Jack_Chen1780_0-1670081532798.png

 

setupact.log has : 

2022-12-03 10:31:57, Info SYSPRP ActionPlatform::LaunchModule: Executing method 'ValidateBitLockerState' from C:\Windows\System32\BdeSysprep.dll
2022-12-03 10:31:57, Error SYSPRP BitLocker-Sysprep: BitLocker is on for the OS volume. Turn BitLocker off to run Sysprep. (0x80310039)

2022-12-03 10:31:57, Error SYSPRP ActionPlatform::LaunchModule: Failure occurred while executing 'ValidateBitLockerState' from C:\Windows\System32\BdeSysprep.dll; dwRet = 0x80310039
2022-12-03 10:31:57, Error SYSPRP SysprepSession::Validate: Error in validating actions from C:\Windows\System32\Sysprep\ActionFiles\Generalize.xml; dwRet = 0x80310039

 

Seems indicate a bitlocker issue.

 

But "manage-bde -status" shows: 
BitLocker Drive Encryption: Configuration Tool version 10.0.19041
Copyright (C) 2013 Microsoft Corporation. All rights reserved.

Disk volumes that can be protected with
BitLocker Drive Encryption:
Volume C: [Windows]
[OS Volume]

Size: 126.45 GB
BitLocker Version: 2.0
Conversion Status: Fully Decrypted
Percentage Encrypted: 0.0%
Encryption Method: None
Protection Status: Protection Off
Lock Status: Unlocked
Identification Field: Unknown
Key Protectors:
Numerical Password

Volume E: [DATA]
[Data Volume]

Size: 255.98 GB
BitLocker Version: None
Conversion Status: Fully Decrypted
Percentage Encrypted: 0.0%
Encryption Method: None
Protection Status: Protection Off
Lock Status: Unlocked
Identification Field: None
Automatic Unlock: Disabled
Key Protectors: None Found

 

 

Now I have no idea where to troubleshoot. 

 

 

 

1 Reply

@Jack_Chen1780 

 

I have the same problem, did you ever find a solution?