Skip to content

Script failing in Windows 11 #10

@jonashilmersson

Description

@jonashilmersson

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions