Citrix XenDesktop虚拟化桌面定期重启命令
admin
2023-03-15 03:21:14
0

New-BrokerRebootSchedule

https://docs.citrix.com/en-us/xenapp-and-xendesktop/7-5/cds-sdk-wrapper-rho/cds-sdk-cmdlet-help/citrix-broker-admin-v2-wrapper-xd75/new-brokerrebootschedule-xd75.html


Apr 15, 2014

Creates a new reboot schedule for a desktop group.

Syntax

New-BrokerRebootSchedule [-DesktopGroupName] -RebootDuration [-Day ] [-Enabled ] [-Frequency ] [-StartTime ] [-WarningDuration ] [-WarningMessage ] [-WarningTitle ] [-LoggingId ] [-AdminAddress ] []

New-BrokerRebootSchedule -DesktopGroupUid -RebootDuration [-Day ] [-Enabled ] [-Frequency ] [-StartTime ] [-WarningDuration ] [-WarningMessage ] [-WarningTitle ] [-LoggingId ] [-AdminAddress ] []

Detailed Description

The New-BrokerRebootSchedule cmdlet is used to define a reboot schedule for a desktop group.

Related topics

Get-BrokerRebootSchedule

Set-BrokerRebootSchedule

Remove-BrokerRebootSchedule

Start-BrokerRebootCycle

Parameters

-DesktopGroupName

The name of the desktop group that this reboot schedule is applied to.

Required?true
Default Value
Accept Pipeline Input?true (ByPropertyName)

-RebootDuration

Approximate maximum number of minutes over which the scheduled reboot cycle runs.

Required?true
Default Value
Accept Pipeline Input?true (ByPropertyName)

-DesktopGroupUid

The Uid of the desktop group that this reboot schedule is applied to.

Required?true
Default Value
Accept Pipeline Input?true (ByPropertyName)

-Day

For weekly schedules, the day of the week on which the scheduled reboot-cycle starts (one of Monday, Tuesday, Wednesday, Thursday, Friday, Saturday, Sunday).

Required?false
Default Value
Accept Pipeline Input?true (ByPropertyName)

-Enabled

Boolean that indicates if the new reboot schedule is enabled.

Required?false
Default Value
Accept Pipeline Input?true (ByPropertyName)

-Frequency

Frequency with which this schedule runs (either Weekly or Daily).

Required?false
Default Value
Accept Pipeline Input?true (ByPropertyName)

-StartTime

Time of day at which the scheduled reboot cycle starts (HH:MM).

Required?false
Default Value
Accept Pipeline Input?true (ByPropertyName)

-WarningDuration

Time prior to the initiation of a machine reboot at which warning message is displayed in all user sessions on that machine. If the warning duration is zero then no message is displayed.

Required?false
Default Value
Accept Pipeline Input?true (ByPropertyName)

-WarningMessage

Warning message displayed in user sessions on a machine scheduled for reboot. If the message is blank then no message is displayed.

Required?false
Default Value
Accept Pipeline Input?true (ByPropertyName)

-WarningTitle

The window title used when showing the warning message in user sessions on a machine scheduled for reboot.

Required?false
Default Value
Accept Pipeline Input?true (ByPropertyName)

-LoggingId

Specifies the identifier of the high level operation that this cmdlet call forms a part of. Desktop Studio and Desktop Director typically create High Level Operations. PowerShell scripts can also wrap a series of cmdlet calls in a High Level Operation by way of the Start-LogHighLevelOperation and Stop-LogHighLevelOperation cmdlets.

Required?false
Default Value
Accept Pipeline Input?false

-AdminAddress

Specifies the address of a XenDesktop controller that the PowerShell snapin will connect to. This can be provided as a host name or an IP address.

Required?false
Default ValueLocalhost. Once a value is provided by any cmdlet, this value will become the default.
Accept Pipeline Input?false

Input Type

None Input cannot be piped to this cmdlet.

Return Values

Citrix.Broker.Admin.SDK.RebootSchedule

Examples

-------------------------- EXAMPLE 1 --------------------------

C:\PS> New-BrokerRebootSchedule -DesktopGroupName BankTellers -Frequency Daily -StartTime "02:00" -Enabled $true -Duration 120

Schedules the machines in the desktop group named 'BankTellers' to be rebooted every night between 2 AM and 4 AM.

-------------------------- EXAMPLE 2 --------------------------

C:\PS> New-BrokerRebootSchedule -DesktopGroupUid 17 -Frequency Weekly -Day Saturday -StartTime "01:00" -Enabled $true -Duration 240 -WarningTitle "WARNING: Reboot pending" -WarningMessage "Save your work" -WarningDuration 10

Schedules the machines in the desktop group having Uid 17 to be rebooted every Saturday night between 1 AM and 5 AM. Ten minutes prior to rebooting, each machine will display a message box with the title "WARNING: Reboot pending" and message "Save your work" in every user session.


上一篇:nginx做tcp代理

下一篇:mac下安装npm环境

相关内容

热门资讯

中国发布禁令,禁止美国制裁中国... 2026年4月24日美国发布公告,把中国5家石化企业列入制裁名单,理由是参与或协助伊朗的石油交易,引...
电力系统母线安全保护领域取得关... (来源:中国电力新闻网) 转自:中国电力新闻网 近日,山西铝业自主研发的《弧光保护系统安装优化方法、...
第三届“探索雅安·阅见美好”阅... 近日,由雅安市图书馆主办的第三届“探索雅安·阅见美好”阅读打卡活动在市区三雅园及雅安市图书馆开展。 ...
实验型真空冷冻干燥机选型指南:... 导语:实验型真空冷冻干燥机作为科研、高校及企业研发环节的关键设备,其性能稳定性直接影响物料干燥效率与...
丁薛祥调研华为芯片基础技术研究... 5月8日晚,中央电视台《新闻联播》播出了一则重量级画面:中共中央政治局常委、国务院副总理丁薛祥到访华...
王自如公布智能指环项目 售价或... 【CNMO科技消息】5月9日,据CNMO科技了解,王自如近日通过视频展示其研发的智能指环产品,该产品...
“190元榴莲遭仅退款”商家直... 近日,河南濮阳一销售冷冻榴莲果肉商家在网络平台发视频称,自家生意遭遇买家恶意“仅退款”。虽然售卖榴莲...
一名中国公民被印度边防部队拘捕... 近日,一名在尼泊尔的中国公民在尼泊尔、印度边境地区因误入印境内被印边防部队拘捕。驻加尔各答总领馆再次...
凤凰直击东盟峰会:菲方推海事中... 5月8日,第48届东盟峰会落幕。菲律宾提出设立“东盟海事中心”的倡议,成为本届峰会焦点之一。菲律宾总...
快30岁,还不像个大人,我们怎... 2025年,邓鹭下定决心裸辞。此后长达一年的gap时间里,她频繁觉得自己像漂在海上,且不知靠岸何处。...