Use this when Windows disks are offline, not initialized or missing.
Windows Disks
Windows disks appear in Disk Management and Get-Disk with a number, size, partition style (MBR or GPT) and status such as Online, Offline or Not initialized. New disks must be initialized before use.
1. Windows enumerates disks with numbers; use serials/UniqueId to identify.
2. Online/offline and read-only states.
3. New disks need initialising (GPT).
4. SAN policy controls auto-online.
5. Reliability counters show errors.
device → disk number → partitions
Context & applicabilityCommon mistakes · platform/version boundaries
- Running
cleanin diskpart on the wrong disk — alwayslist diskand check size and number first. - Offline disks after attaching SAN LUNs because of the SAN policy (
Get-StorageSetting). - Initialising a disk that already has data on another system (e.g. a replica).
- Forgetting that disk numbers can change after reboot or rescan.
Operational reference
Fast context before you go deeper.
Evidence · 1 on this Topic
Expected observations and documentation recipes are reference material. Record actual output, device identity, scope and time before claiming a verified result.
- Disks show number, size, style and status.
- Offline disks may be SAN policy.
- Initialize new disks before use.
Get-Disk— disks with statusGet-PhysicalDisk | ft FriendlyName,MediaType,BusType,HealthStatus— physical mediaGet-StorageReliabilityCounter -PhysicalDisk (Get-PhysicalDisk)[0]— errors/wear
ReferenceImportant terms & boundaries2 sections · depth on demand
In depth
Windows sees physical and virtual disks through the storage stack (Storport miniport → disk class driver → partition manager → volume manager → filesystem). Disks are identified by number, which can change; use the unique ID or serial in scripts.
Get-Disk | ft Number,FriendlyName,SerialNumber,PartitionStyle,OperationalStatus,Size
Get-PhysicalDisk | ft FriendlyName,MediaType,BusType,HealthStatus,Size
Get-Partition -DiskNumber 1
Update-HostStorageCache # rescan after adding a LUN
New SAN disks may appear Offline because of the SAN policy (Get-StorageSetting); bring them online with Set-Disk -Number 2 -IsOffline $false.
Partition types (GPT)
| Partition | GUID type | Purpose |
|---|---|---|
| EFI System | c12a7328-... | Boot loader |
| MSR | e3c9e316-... | Microsoft reserved |
| Basic data | ebd0a0a2-... | NTFS/ReFS volumes |
| Recovery | de94bba4-... | WinRE |
Get-Partition | Select DiskNumber,PartitionNumber,Type,Size shows them.
ReferenceConfiguration & state1 section · depth on demand
Commands
Get-Disk | Format-Table Number,FriendlyName,Size,PartitionStyle,OperationalStatus,IsReadOnly
Set-Disk -Number 2 -IsOffline $false
Set-Disk -Number 2 -IsReadOnly $false
Initialize-Disk -Number 2 -PartitionStyle GPT
Documented example, not captured output. A new SAN disk often appears Offline because of the SAN policy (Get-StorageSetting); bring it online after checking it is the right LUN. Use GPT for disks over 2 TB and UEFI boot.
Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Verification history & basis
When and against what this Topic was checked. Later text edits do not count as a new check.
Authoritative/upstream documentation reviewed for bounded claims in Windows Storage → Windows Disks. Documentation verification only; this is not observed lab or production Evidence.
Basis: https://learn.microsoft.com/en-us/windows-server/storage/storage · confidence 94%