Partager via


Get-SCOperatingSystem

Get-SCOperatingSystem

Gets valid operating system objects from the VMM database.

Syntax

Parameter Set: All
Get-SCOperatingSystem [-VMMServer <ServerConnection> ] [ <CommonParameters>]

Parameter Set: ID
Get-SCOperatingSystem -ID <Guid]> [-VMMServer <ServerConnection> ] [ <CommonParameters>]

Parameter Set: Profile
Get-SCOperatingSystem -ApplicationProfile <ApplicationProfile> [-VMMServer <ServerConnection> ] [ <CommonParameters>]

Detailed 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.

Parameters

-ApplicationProfile<ApplicationProfile>

Specifies an application profile object.

Aliases

none

Required?

true

Position?

named

Default Value

none

Accept Pipeline Input?

True (ByValue)

Accept Wildcard Characters?

false

-ID<Guid]>

Specifies the numerical identifier as a globally unique identifier (GUID) for a specific object.

Aliases

none

Required?

true

Position?

named

Default Value

none

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

-VMMServer<ServerConnection>

Specifies a VMM server object.

Aliases

none

Required?

false

Position?

named

Default Value

none

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

<CommonParameters>

This cmdlet supports the common parameters: -Verbose, -Debug, -ErrorAction, -ErrorVariable, -OutBuffer, and -OutVariable. For more information, see    about_CommonParameters (https://go.microsoft.com/fwlink/p/?LinkID=113216).

Inputs

The input type is the type of the objects that you can pipe to the cmdlet.

Outputs

The output type is the type of the objects that the cmdlet emits.

  • OperatingSystem

Examples

Example 1: Get all operating system objects in your VMM environment

This command gets all operating system objects from the VMM database on VMMServer01 and displays information about these operating system objects.

PS C:\> Get-SCOperatingSystem -VMMServer "VMMServer01.Contoso.com"

Example 2: Get all operating system objects in your VMM environment with the specified processor 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.

PS C:\> Get-OperatingSystem -VMMServer "VMMServer01.Contoso.com" | where {$_.Architecture -eq "amd64"} | Format-Table -property Name,Architecture

Set-SCVirtualHardDisk