CmdID / PowerShell / Cmdlets / Set
Set-Partition
Sets attributes of a partition, such as active, read-only, and offline states. Windows Server PowerShell reference
From the Windows Server PowerShell reference 21 parameters Its page in the reference
Parameters
Show its 21 parameters
-AsJobRuns the cmdlet as a background job.-CimSession, -SessionRuns the cmdlet in a remote session or on a remote computer.-Confirm, -cfPrompts you for confirmation before running the cmdlet.-DiskIdSpecifies the disk ID of the partition to modify.-DiskNumberSpecifies an array of disk numbers.-DriveLetterSpecifies the drive letter of the partition to modify.-GptTypeSets the type of a GPT partition to a specific GUID.-InputObjectSpecifies the input object that is used in a pipeline command.-IsActiveSpecifies that the partition is marked as active and can be used to start the system.-IsDAXFormats a volume as a DirectAccess (DAX) volume.-IsHiddenSpecifies that the partition is hidden.-IsOfflineTakes the partition offline until explicitly brought back online, or until an access path is added to the partition.-IsReadOnlySets the partition to be read-only (IsReadOnly $true) or read-write (IsReadOnly $false).-IsShadowCopy-MbrTypeSets the type of an MBR partition to a specific numeric ID.-NewDriveLetterSpecifies the new drive letter for the partition.-NoDefaultDriveLetterSpecifies that the automatic assignment of a drive letter is disabled.-OffsetSpecifies the partition's offset from the beginning of the disk, measured in bytes.-PartitionNumber, -NumberSpecifies the number of the partition.-ThrottleLimitSpecifies the maximum number of concurrent operations that can be established to run the cmdlet.-WhatIf, -wiShows what would happen if the cmdlet runs.