Get-SCOperatingSystem

Get-SCOperatingSystem

Gets valid operating system objects from the VMM database.

構文

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>]

詳細説明

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.

パラメーター

-ApplicationProfile<ApplicationProfile>

Specifies an application profile object.

エイリアス

none

必須?

true

位置は?

named

既定値

none

パイプライン入力を許可する

True (ByValue)

ワイルドカード文字を許可する

false

-ID<Guid]>

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

エイリアス

none

必須?

true

位置は?

named

既定値

none

パイプライン入力を許可する

false

ワイルドカード文字を許可する

false

-VMMServer<ServerConnection>

Specifies a VMM server object.

エイリアス

none

必須?

false

位置は?

named

既定値

none

パイプライン入力を許可する

false

ワイルドカード文字を許可する

false

<CommonParameters>

このコマンドレットは次の共通パラメーターをサポートします。-Verbose、-Debug、-ErrorAction、-ErrorVariable、-OutBuffer、-OutVariable.詳細については、以下を参照してください。 about_CommonParameters (https://go.microsoft.com/fwlink/p/?LinkID=113216)。

入力

入力型は、コマンドレットにパイプできるオブジェクトの型です。

出力

出力型は、コマンドレットによって生成されるオブジェクトの型です。

  • OperatingSystem

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