Hi,
I tried the script on a Windows 11 machine, and it failed to find the temporary disk as the partition type wasn't set to RAW but GPT. It also was already initialized, so I changed the script as shown below to get it to work:
$TempStorage = Get-Disk | Where-Object {
$_.FriendlyName -eq 'Microsoft NVMe Direct Disk v2' -and $_.OperationalStatus -eq 'Online' -and $_.Number -ne $osDiskNumber
I also commented out the lines where the initialization happens.
Other than that, it worked as expected, thanks!
Hi,
I tried the script on a Windows 11 machine, and it failed to find the temporary disk as the partition type wasn't set to RAW but GPT. It also was already initialized, so I changed the script as shown below to get it to work:
I also commented out the lines where the initialization happens.
Other than that, it worked as expected, thanks!