Hi folks,
I'm having an issue running W8.1 sequence on Surface Pro 3, this is working properly on BIOS based devices.
Couple of Format & Partition Disk (UEFI) steps after which I've another step for Pre-provision Bitlocker using %OSDISK% variable however on UEFI devices, it fails to detect OSDisk variable and returns the following error as per SMSTS.log--
==============================[ OSDOfflineBitlocker.exe ]==============================OSDOfflineBitLocker11-08-2016 13:02:191292 (0x050C)
Command line: "OSDOfflineBitlocker.exe" /enable /drive:%OSDisk% /ignoretpm:TrueOSDOfflineBitLocker11-08-2016 13:02:191292 (0x050C)
Initialized COMOSDOfflineBitLocker11-08-2016 13:02:191292 (0x050C)
Command line for extension .exe is "%1" %*OSDOfflineBitLocker11-08-2016 13:02:191292 (0x050C)
Set command line: "OSDOfflineBitlocker.exe" /enable /drive:%OSDisk% /ignoretpm:TrueOSDOfflineBitLocker11-08-2016 13:02:191292 (0x050C)
IsValidDriveLetter(argInfo.sDrive.c_str()), HRESULT=80070057 (e:\qfe\nts\sms\client\osdeployment\offlinebitlocker\main.cpp,363)OSDOfflineBitLocker11-08-2016 13:02:191292 (0x050C)
Invalid drive letter %OSDisk%OSDOfflineBitLocker11-08-2016 13:02:191292 (0x050C)
ProcessCommandLine(argInfo), HRESULT=80070057 (e:\qfe\nts\sms\client\osdeployment\offlinebitlocker\main.cpp,418)OSDOfflineBitLocker11-08-2016 13:02:191292 (0x050C)
Process completed with exit code 2147942487
TSManager11-08-2016 13:02:191872 (0x0750)
!--------------------------------------------------------------------------------------------!TSManager11-08-2016 13:02:191872 (0x0750)
Failed to run the action: Pre-provision BitLocker. This is usually caused by a problem with the program. Please check the Microsoft Knowledge Base to determine if this is a known issue or contact Microsoft Support Services for further assistance.
The parameter is incorrect. (Error: 80070057; Source: Windows)TSManager11-08-2016 13:02:191872 (0x0750)
Prior to this, there was this Format & Partition Disk(UEFI) step which was completed successfully, here's a snip--
==============================[ OSDDiskPart.exe ]==============================OSDDiskPart11-08-2016 13:02:091560 (0x0618)
Command line: "osddiskpart.exe"OSDDiskPart11-08-2016 13:02:091560 (0x0618)
Succeeded loading resource DLL 'X:\sms\bin\x64\1033\TSRES.DLL'OSDDiskPart11-08-2016 13:02:091560 (0x0618)
Reading partition size info for partition 0
OSDDiskPart11-08-2016 13:02:091560 (0x0618)
Remaining size before partition: 256052966400
OSDDiskPart11-08-2016 13:02:091560 (0x0618)
size units: SIZE_MBOSDDiskPart11-08-2016 13:02:091560 (0x0618)
Set partition size: 524288000OSDDiskPart11-08-2016 13:02:091560 (0x0618)
Remaining size after partition 0: 255528678400
OSDDiskPart11-08-2016 13:02:091560 (0x0618)
Reading partition size info for partition 1
OSDDiskPart11-08-2016 13:02:091560 (0x0618)
Remaining size before partition: 255528678400
OSDDiskPart11-08-2016 13:02:091560 (0x0618)
size units: SIZE_MBOSDDiskPart11-08-2016 13:02:091560 (0x0618)
Set partition size: 536870912OSDDiskPart11-08-2016 13:02:091560 (0x0618)
Remaining size after partition 1: 254991807488
OSDDiskPart11-08-2016 13:02:091560 (0x0618)
Reading partition size info for partition 2
OSDDiskPart11-08-2016 13:02:091560 (0x0618)
Remaining size before partition: 254991807488
OSDDiskPart11-08-2016 13:02:091560 (0x0618)
size units: SIZE_MBOSDDiskPart11-08-2016 13:02:091560 (0x0618)
Set partition size: 134217728OSDDiskPart11-08-2016 13:02:091560 (0x0618)
Remaining size after partition 2: 254857589760
OSDDiskPart11-08-2016 13:02:091560 (0x0618)
Failed to read filesystem from OSDPartitions2FileSystem, not formattingOSDDiskPart11-08-2016 13:02:091560 (0x0618)
Reading partition size info for partition 3
OSDDiskPart11-08-2016 13:02:091560 (0x0618)
Remaining size before partition: 254857589760
OSDDiskPart11-08-2016 13:02:091560 (0x0618)
size units: SIZE_PERCENTOSDDiskPart11-08-2016 13:02:091560 (0x0618)
100% size specified.OSDDiskPart11-08-2016 13:02:091560 (0x0618)
Remaining size after partition 3: 0OSDDiskPart11-08-2016 13:02:091560 (0x0618)
Checking volume 'C:' for BitLockerOSDDiskPart11-08-2016 13:02:091560 (0x0618)
Volume 'C:' is on disk '0l'OSDDiskPart11-08-2016 13:02:091560 (0x0618)
Volume 'C:' is fully decryptedOSDDiskPart11-08-2016 13:02:091560 (0x0618)
Checking volume 'D:' for BitLockerOSDDiskPart11-08-2016 13:02:091560 (0x0618)
Checking volume 'X:' for BitLockerOSDDiskPart11-08-2016 13:02:091560 (0x0618)
diskpart: list volume
select disk 0
clean
convert gpt
create partition primary size=500
format quick fs=ntfs label="Windows RE Tools"
attributes volume set nodefaultdriveletter noerr
set id="de94bba4-06d1-4d40-a16a-bfd50179d6ac"
gpt attributes=0x8000000000000001
OSDDiskPart
11-08-2016 13:02:091560 (0x0618)
diskpart: list volume
select disk 0
clean
convert gpt
create partition primary size=500
format quick fs=ntfs label="Windows RE Tools"
attributes volume set nodefaultdriveletter noerr
set id="de94bba4-06d1-4d40-a16a-bfd50179d6ac"
gpt attributes=0x8000000000000001
create partition MSR size=128
OSDDiskPart
11-08-2016 13:02:091560 (0x0618)
diskpart: list volume
select disk 0
clean
convert gpt
create partition primary size=500
format quick fs=ntfs label="Windows RE Tools"
attributes volume set nodefaultdriveletter noerr
set id="de94bba4-06d1-4d40-a16a-bfd50179d6ac"
gpt attributes=0x8000000000000001
create partition MSR size=128
create partition PRIMARY
assign
OSDDiskPart
11-08-2016 13:02:091560 (0x0618)
Diskpart: list volume
select disk 0
clean
convert gpt
create partition primary size=500
format quick fs=ntfs label="Windows RE Tools"
attributes volume set nodefaultdriveletter noerr
set id="de94bba4-06d1-4d40-a16a-bfd50179d6ac"
gpt attributes=0x8000000000000001
create partition MSR size=128
create partition PRIMARY
assign
rescan
list volume
OSDDiskPart
11-08-2016 13:02:101560 (0x0618)
Executing diskpart script: list volume
select disk 0
clean
convert gpt
create partition primary size=500
format quick fs=ntfs label="Windows RE Tools"
attributes volume set nodefaultdriveletter noerr
set id="de94bba4-06d1-4d40-a16a-bfd50179d6ac"
gpt attributes=0x8000000000000001
create partition MSR size=128
create partition PRIMARY
assign
rescan
list volume
OSDDiskPart
11-08-2016 13:02:101560 (0x0618)
Command line for extension .exe is "%1" %*OSDDiskPart11-08-2016 13:02:101560 (0x0618)
Set command line: "X:\windows\system32\diskpart.exe" /s "X:\windows\TEMP\DiskPartScript.txt"OSDDiskPart11-08-2016 13:02:101560 (0x0618)
Executing command line: "X:\windows\system32\diskpart.exe" /s "X:\windows\TEMP\DiskPartScript.txt"OSDDiskPart11-08-2016 13:02:101560 (0x0618)
Process completed with exit code 0OSDDiskPart11-08-2016 13:02:141560 (0x0618)
Formatting partitionsOSDDiskPart11-08-2016 13:02:141560 (0x0618)
Partition: 1 RECOVERYOSDDiskPart11-08-2016 13:02:141560 (0x0618)
Partition: 2 MSROSDDiskPart11-08-2016 13:02:141560 (0x0618)
Found MSR partition: 2OSDDiskPart11-08-2016 13:02:141560 (0x0618)
Partition: 3 PRIMARYOSDDiskPart11-08-2016 13:02:141560 (0x0618)
Adding logical drive: C:OSDDiskPart11-08-2016 13:02:141560 (0x0618)
Skipping non-local logical drive: D:OSDDiskPart11-08-2016 13:02:141560 (0x0618)
Skipping non-local logical drive: X:OSDDiskPart11-08-2016 13:02:141560 (0x0618)
Formatting drive C: with NTFS filesystem, method quickOSDDiskPart11-08-2016 13:02:141560 (0x0618)
Creating instance of service loaderOSDDiskPart11-08-2016 13:02:141560 (0x0618)
Loading serviceOSDDiskPart11-08-2016 13:02:141560 (0x0618)
Waiting for service to initializeOSDDiskPart11-08-2016 13:02:141560 (0x0618)
Querying for software providersOSDDiskPart11-08-2016 13:02:141560 (0x0618)
Found a VDS software providerOSDDiskPart11-08-2016 13:02:141560 (0x0618)
Querying for IVdsSwProviderOSDDiskPart11-08-2016 13:02:141560 (0x0618)
Querying for packsOSDDiskPart11-08-2016 13:02:141560 (0x0618)
Found a VDS packOSDDiskPart11-08-2016 13:02:141560 (0x0618)
Querying for IVdsPackOSDDiskPart11-08-2016 13:02:141560 (0x0618)
Querying for volumesOSDDiskPart11-08-2016 13:02:141560 (0x0618)
Found a VDS software providerOSDDiskPart11-08-2016 13:02:141560 (0x0618)
Querying for IVdsSwProviderOSDDiskPart11-08-2016 13:02:141560 (0x0618)
Querying for packsOSDDiskPart11-08-2016 13:02:141560 (0x0618)
Found a VDS packOSDDiskPart11-08-2016 13:02:141560 (0x0618)
Querying for IVdsPackOSDDiskPart11-08-2016 13:02:141560 (0x0618)
Querying for volumesOSDDiskPart11-08-2016 13:02:141560 (0x0618)
Found a VDS volumeOSDDiskPart11-08-2016 13:02:141560 (0x0618)
Querying for IVdsVolumeMFOSDDiskPart11-08-2016 13:02:141560 (0x0618)
Querying for access pathsOSDDiskPart11-08-2016 13:02:141560 (0x0618)
Found a volume with access path 'C:\'OSDDiskPart11-08-2016 13:02:141560 (0x0618)
Querying for IVdsVolumeOSDDiskPart11-08-2016 13:02:141560 (0x0618)
Querying for IVdsVolumeMFOSDDiskPart11-08-2016 13:02:141560 (0x0618)
OSDDiskPart.exe completed successfullyOSDDiskPart11-08-2016 13:02:171560 (0x0618)
Process completed with exit code 0TSManager11-08-2016 13:02:171872 (0x0750)
!--------------------------------------------------------------------------------------------!TSManager11-08-2016 13:02:171872 (0x0750)
Successfully completed the action (Format and Partition Disk (UEFI)) with the exit win32 code 0TSManager11-08-2016 13:02:171872 (0x0750)
Also, when i review diskpart output for Disk 0, it looks alright with OSDisk variable mapped--
X:\Windows\temp\SMSTSLog>diskpart
Microsoft DiskPart version 10.0.10586
Copyright (C) 1999-2013 Microsoft Corporation.
On computer: MININT-D0VBE3G
DISKPART> list disk
Disk ### Status Size Free Dyn Gpt
-------- ------------- ------- ------- --- ---
Disk 0 Online 238 GB 0 B *
Disk 1 Online 7381 MB 0 B
DISKPART> sel disk 0
Disk 0 is now the selected disk.
DISKPART> list vol
Volume ### Ltr Label Fs Type Size Status Info
---------- --- ----------- ----- ---------- ------- --------- --------
Volume 0 C OSDisk NTFS Partition 237 GB Healthy
Volume 1 Windows RE NTFS Partition 500 MB Healthy Hidden
Volume 2 D KINGSTON FAT32 Removable 7380 MB Healthy
DISKPART> sel vol 1
Volume 1 is the selected volume.
DISKPART> list par
Partition ### Type Size Offset
------------- ---------------- ------- -------
* Partition 1 Recovery 500 MB 1024 KB
Partition 2 Reserved 128 MB 501 MB
Partition 3 Primary 237 GB 629 MB
DISKPART>
Appreciate if someone could share ideas around this.
thanks in advance..