Get-SCOperatingSystem

Gets valid operating system objects from the VMM database.

Syntax

Get-SCOperatingSystem
   [-VMMServer <ServerConnection>]
   [<CommonParameters>]
Get-SCOperatingSystem
   [-VMMServer <ServerConnection>]
   -ID <Guid>
   [<CommonParameters>]
Get-SCOperatingSystem
   [-VMMServer <ServerConnection>]
   -ApplicationProfile <ApplicationProfile>
   [<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.

Type:ApplicationProfile
Position:Named
Default value:None
Required:True
Accept pipeline input:True
Accept wildcard characters:False

-ID

Specifies the numerical identifier as a globally unique identifier, or GUID, for a specific object.

Type:Guid
Position:Named
Default value:None
Required:True
Accept pipeline input:False
Accept wildcard characters:False

-VMMServer

Specifies a VMM server object.

Type:ServerConnection
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

Outputs

OperatingSystem

This cmdlet returns an OperatingSystem object.