none
Determine Partition Number of partition that windows is installed on and return it RRS feed

  • Question

  • Hi Everyone,

    I'm trying to find a command that will be able to identify the partition number that windows is installed onto.

    I've tried using WMIC Queries but I'm a bit of an amateur and I couldn't find the correct settings to get the information I wanted.

    Basically what I intend to do with this is use it in automated deployment, before deployment begins I need to perform a few tasks on the windows partition but its not always the same partition. So I need a command to look at either the largest partition, the partition labeled "Windows 10" or something similar and then return the partition number of that partition eg: Partition 4

    Ideally the command needs to be able to run in Windows PE

    Does anyone have some clues where I would begin?

    • Moved by Bill_Stewart Wednesday, September 4, 2019 6:23 PM This is not WinPE support forum
    Thursday, March 7, 2019 1:10 PM

All replies