Get-SCServicingWindow
取得指派給虛擬機器、主機或服務的服務時段清單。
Syntax
Get-SCServicingWindow
[-VMMServer <ServerConnection>]
[<CommonParameters>]
Get-SCServicingWindow
[-VMMServer <ServerConnection>]
[-Name] <String>
[<CommonParameters>]
Get-SCServicingWindow
[-VMMServer <ServerConnection>]
-ID <Guid>
[<CommonParameters>]
Get-SCServicingWindow
[-VMMServer <ServerConnection>]
[-ServicingWindowFilter <ServicingWindowFilterType>]
-VMHost <Host>
[<CommonParameters>]
Get-SCServicingWindow
[-VMMServer <ServerConnection>]
[-ServicingWindowFilter <ServicingWindowFilterType>]
-Service <Service>
[<CommonParameters>]
Get-SCServicingWindow
[-VMMServer <ServerConnection>]
[-ServicingWindowFilter <ServicingWindowFilterType>]
-VM <VM>
[<CommonParameters>]
Description
Get-SCServicingWindow Cmdlet 會取得指派給虛擬機器、主機或服務的服務視窗清單。
範例
範例 1:依名稱取得特定的服務視窗
PS C:\> $SvcWindow = Get-SCServicingWindow -Name "Backup Staging A"
PS C:\> $SvcWindow
第一個命令會取得名為 Backup Staging A 的服務視窗物件,並將物件儲存在$SvcWindow變數中。
第二個命令會顯示$SvcWindow (備份暫存 A) 中儲存之服務視窗的相關資訊。
參數
-ID
將數值識別碼指定為特定物件的全域唯一識別碼或 GUID。
Type: | Guid |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-Name
指定 Virtual Machine Manager (VMM) 物件的名稱。
Type: | String |
Position: | 0 |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-Service
指定 VMM 服務物件。
Type: | Service |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-ServicingWindowFilter
指定擷取服務視窗的篩選準則。 有效值為:
- Now
- 下一個
- All
Type: | ServicingWindowFilterType |
Accepted values: | Now, Next, All |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-VM
指定虛擬機器物件。
Type: | VM |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-VMHost
指定虛擬機器主機物件。 VMM 支援 Hyper-V 主機、VMware ESX 主機和 Citrix XenServer 主機。
如需每種主機類型的詳細資訊,請參閱 Add-SCVMHost Cmdlet。
Type: | Host |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-VMMServer
指定 VMM 伺服器物件。
Type: | ServerConnection |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | True |
Accept wildcard characters: | False |
輸出
ServicingWindow
此 Cmdlet 會傳回 ServicingWindow 物件。