LogoLogo
OSDeploy.comTwitterGitHubPowerShell Gallery
  • OSD PowerShell Module
  • Functions
  • Docs
    • OSDCloud
    • OSDPad
    • OSDHelp
      • Autopilot
    • Guides
      • UEFI System Firmware Update
      • In Your Code
      • New-OSDBoot.usb
      • Partitions
        • New-OSDDisk (Information)
        • New-OSDDiskWinPE (GPT)
        • New-OSDDiskWinPE (2 Disks)
        • AutoUnattend.xml
    • OSDWindowsImage
    • Windows Setup Environment
      • Execution Policy
      • WinSE Settings
      • Import Modules
      • Automation
    • Release Notes
    • Trash
      • Adk
        • Edit-ADKwinpe.wim
        • Get-ADKpaths
        • New-ADK.iso
        • New-ADKcopype
      • Appx
      • Block
      • CloudDriver
      • Dell
        • Get-DellCatalogPC
        • Get-MyDellBIOS
        • Update-MyDellBios
      • Disk
        • Backup-Disk.ffu
        • Clear-LocalDisk
        • Clear-USBDisk
        • Get-LocalDisk
        • Get-OSDDisk
        • Get-USBDisk
        • New-OSDisk
          • Old Version
            • Sandbox
            • Partition Layout
            • Partition Sizes
            • Volume Labels
            • AutoUnattend.xml
        • Get-USBVolume
      • Dism
        • Get-MyWindowsCapability
        • Get-MyWindowsPackage
        • Set-WimExecutionPolicy
        • Set-WindowsImageExecutionPolicy
      • Display
        • Get-VidConRes
      • Driver
        • Get-OSDDriverWmiQ
        • Get-OSDDriver
      • General
        • Get-OSD
        • Get-OSDClass
        • Get-OSDGather
        • Get-OSDPower
        • Get-RegCurrentVersion
        • Get-SessionsXml
        • Save-OSDDownload
      • MyBitLocker
        • Get-MyBitLockerKeyProtectors
        • Backup-MyBitLocker
        • Save-MyBitLockerExternalKey
        • Save-MyBitLockerKeyPackage
        • Save-MyBitLockerRecoveryPassword
        • Unlock-MyBitLockerExternalKey
      • OOBE
      • PSModule
        • Copy-PSModuleToFolder
        • Copy-PSModuleToWim
        • Copy-PSModuleToWindowsImage
      • WebConnection
      • WebPSScript
      • WinPEWim
      • WinPE
        • Enable-PEWimPSGallery
        • Get-OSDWinPE
Powered by GitBook
On this page
  • Get-Help -Full

Was this helpful?

  1. Docs
  2. Trash
  3. Disk
  4. New-OSDisk

Old Version

Get-Help -Full

PS C:\> Get-Help -Full New-OSDDisk

NAME
    New-OSDDisk
    
SYNOPSIS
    Creates System | OS | Recovery Partitions for MBR or UEFI Drives in WinPE
    
    
SYNTAX
    New-OSDDisk [[-Title] <String>] [[-DiskNumber] <Int32>] [[-LabelSystem] <String>] [[-LabelWindows] <String>] [[-LabelRecovery] <String>] [[-SizeSystemMbr] <UInt64>] [[-SizeSystemGpt] <UInt64>] [[-SizeMSR] 
    <UInt64>] [[-SizeRecovery] <UInt64>] [-SkipRecoveryPartition] [-Force] [<CommonParameters>]
    
    
DESCRIPTION
    Creates System | OS | Recovery Partitions for MBR or UEFI Drives in WinPE
    

PARAMETERS
    -Title <String>
        Title displayed during script execution
        Default = New-OSDDisk
        Alias = T
        
        Required?                    false
        Position?                    1
        Default value                New-OSDDisk
        Accept pipeline input?       false
        Accept wildcard characters?  false
        
    -DiskNumber <Int32>
        Fixed Disk Number
        Alias = Disk, Number
        
        Required?                    false
        Position?                    2
        Default value                0
        Accept pipeline input?       false
        Accept wildcard characters?  false
        
    -LabelSystem <String>
        Drive Label of the System Partition
        Default = System
        Alias = LS, LabelS
        
        Required?                    false
        Position?                    3
        Default value                System
        Accept pipeline input?       false
        Accept wildcard characters?  false
        
    -LabelWindows <String>
        Drive Label of the Windows Partition
        Default = OS
        Alias = LW, LabelW
        
        Required?                    false
        Position?                    4
        Default value                OS
        Accept pipeline input?       false
        Accept wildcard characters?  false
        
    -LabelRecovery <String>
        Drive Label of the Recovery Partition
        Default = Recovery
        Alias = LR, LabelR
        
        Required?                    false
        Position?                    5
        Default value                Recovery
        Accept pipeline input?       false
        Accept wildcard characters?  false
        
    -SizeSystemMbr <UInt64>
        System Partition size for BIOS MBR based Computers
        Default = 260MB
        Range = 100MB - 3000MB (3GB)
        Alias = SSM, Mbr, SystemM
        
        Required?                    false
        Position?                    6
        Default value                272629760
        Accept pipeline input?       false
        Accept wildcard characters?  false
        
    -SizeSystemGpt <UInt64>
        System Partition size for UEFI GPT based Computers
        Default = 260MB
        Range = 100MB - 3000MB (3GB)
        Alias = SSG, Efi, SystemG
        
        Required?                    false
        Position?                    7
        Default value                272629760
        Accept pipeline input?       false
        Accept wildcard characters?  false
        
    -SizeMSR <UInt64>
        MSR Partition size
        Default = 16MB
        Range = 16MB - 128MB
        Alias = MSR
        
        Required?                    false
        Position?                    8
        Default value                16777216
        Accept pipeline input?       false
        Accept wildcard characters?  false
        
    -SizeRecovery <UInt64>
        Size of the Recovery Partition
        Default = 990MB
        Range = 350MB - 80000MB (80GB)
        Alias = SR, Recovery
        
        Required?                    false
        Position?                    9
        Default value                1038090240
        Accept pipeline input?       false
        Accept wildcard characters?  false
        
    -SkipRecoveryPartition [<SwitchParameter>]
        Skips the creation of the Recovery Partition
        
        Required?                    false
        Position?                    named
        Default value                False
        Accept pipeline input?       false
        Accept wildcard characters?  false
        
    -Force [<SwitchParameter>]
        Required for execution as a safety precaution
        
        Required?                    false
        Position?                    named
        Default value                False
        Accept pipeline input?       false
        Accept wildcard characters?  false
        
    <CommonParameters>
        This cmdlet supports the common parameters: Verbose, Debug,
        ErrorAction, ErrorVariable, WarningAction, WarningVariable,
        OutBuffer, PipelineVariable, and OutVariable. For more information, see 
        about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216). 
    
INPUTS
    
OUTPUTS
    
NOTES
    
    
        19.10.10     Created by David Segura @SeguraOSD
    
    
RELATED LINKS
    https://osd.osdeploy.com/module/functions/new-osddisk

PreviousNew-OSDiskNextSandbox

Last updated 5 years ago

Was this helpful?