Get-SCOperatingSystem
Gets valid operating system objects from the VMM database.
Syntax
All (Default)
Get-SCOperatingSystem
[-VMMServer <ServerConnection>]
[<CommonParameters>]
ID
Get-SCOperatingSystem
-ID <Guid>
[-VMMServer <ServerConnection>]
[<CommonParameters>]
Profile
Get-SCOperatingSystem
-ApplicationProfile <ApplicationProfile>
[-VMMServer <ServerConnection>]
[<CommonParameters>]
Description
The Get-SCOperatingSystem cmdlet gets one or more operating system objects from the Virtual Machine Manager (VMM) database. An operating system object is used to identify the operating system that is installed on a particular virtual hard disk.
Examples
Example 1: Get all operating system objects in your VMM environment
PS C:\> Get-SCOperatingSystem -VMMServer "VMMServer01.Contoso.com"
This command gets all operating system objects from the VMM database on VMMServer01 and displays information about these operating system objects to the user.
Example 2: Get all operating system objects in your VMM environment with the specified processor architecture
PS C:\> Get-OperatingSystem -VMMServer "VMMServer01.Contoso.com" | where {$_.Architecture -eq "amd64"} | Format-Table -Property Name,Architecture
This command gets all operating system objects from VMMServer01 and then selects only those operating systems that have an amd64 processor architecture. The command uses the Format-Table cmdlet to display only the Name and Architecture properties for each selected operating system.
Parameters
-ApplicationProfile
Specifies an application profile object.
Parameter properties
Type: | ApplicationProfile |
Default value: | None |
Supports wildcards: | False |
DontShow: | False |
Parameter sets
Profile
Position: | Named |
Mandatory: | True |
Value from pipeline: | True |
Value from pipeline by property name: | False |
Value from remaining arguments: | False |
-ID
Specifies the numerical identifier as a globally unique identifier, or GUID, for a specific object.
Parameter properties
Type: | Guid |
Default value: | None |
Supports wildcards: | False |
DontShow: | False |
Parameter sets
ID
Position: | Named |
Mandatory: | True |
Value from pipeline: | False |
Value from pipeline by property name: | False |
Value from remaining arguments: | False |
-VMMServer
Specifies a VMM server object.
Parameter properties
Type: | ServerConnection |
Default value: | None |
Supports wildcards: | False |
DontShow: | False |
Parameter sets
(All)
Position: | Named |
Mandatory: | False |
Value from pipeline: | False |
Value from pipeline by property name: | False |
Value from remaining arguments: | False |
CommonParameters
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -ProgressAction, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.
Outputs
OperatingSystem
This cmdlet returns an OperatingSystem object.