Get-OSDProperty

Comment Based Help

PS C:\> Help OSDProperty -Full
NAME
Get-OSDProperty
SYNOPSIS
Returns the value of an OSD Property
SYNTAX
Get-OSDProperty [-Property] <String> [<CommonParameters>]
DESCRIPTION
Returns the value of an OSD Property
PARAMETERS
-Property <String>
Return Boolean ($true or $false)
IsAdmin
IsClientOS
IsDesktop
IsLaptop
IsOnBattery
IsSFF
IsServer
IsServerCoreOS
IsServerOS
IsTablet
IsUEFI
IsVM
IsWinPE
IsInWinSE
Return Value
BootDevice
BuildNumber
Caption
ChassisSKUNumber
Name
InstallDate
Locale
Make
Manufacturer
Model
OSArchitecture
OperatingSystemSKU
ProductType
SystemDevice
SystemDirectory
SystemDrive
SystemFamily
SystemSKUNumber
Version
WindowsBuild
WindowsDirectory
WindowsReleaseId
WindowsUbr
Required? true
Position? 1
Default value
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.1 David Segura @SeguraOSD
19.9.29.1 Ben Whitmore @byteben
19.9.29 David Segura @SeguraOSD
-------------------------- EXAMPLE 1 --------------------------
PS C:\>OSDProperty Model
Returns Computer Model using (Get-CimInstance -ClassName Win32_ComputerSystem).Model
Option 1: OSDProperty Model
Option 2: Get-OSDProperty Model
Option 3: Get-OSDProperty -Property Model
-------------------------- EXAMPLE 2 --------------------------
PS C:\>OSDProperty SystemDrive
Returns Computer System Drive using (Get-CimInstance -ClassName Win32_OperatingSystem).SystemDrive
Option 1: OSDProperty SystemDrive
Option 2: Get-OSDProperty SystemDrive
Option 3: Get-OSDProperty -Property SystemDrive
RELATED LINKS
https://osd.osdeploy.com/module/functions/get-osdproperty

Property

To generate a list of possible Values, use the following PowerShell Command

(Get-Command -Name Get-OSDProperty).Parameters.Property.Attributes.ValidValues