Share via


WindowsUpdateRestartRequestOptions.OptOutOfAutoReboot Property

Definition

Gets or sets a value that indicates whether or not the update should opt out of the auto reboot flow.

public:
 property bool OptOutOfAutoReboot { bool get(); void set(bool value); };
bool OptOutOfAutoReboot();

void OptOutOfAutoReboot(bool value);
public bool OptOutOfAutoReboot { get; set; }
var boolean = windowsUpdateRestartRequestOptions.optOutOfAutoReboot;
windowsUpdateRestartRequestOptions.optOutOfAutoReboot = boolean;
Public Property OptOutOfAutoReboot As Boolean

Property Value

Boolean

bool

A value that indicates whether or not the update should opt out of the auto reboot flow.

Remarks

If this property value is true, then the device will attempt to automatically restart overnight when the end user is away.

If a Boolean value of false is specified, then the device won't automatically restart when the end user is away. The end user will see a variety of notifications asking them to "schedule the restart", "restart now", or "restart tonight", and they will become progressively more demanding in terms of notification language and frequency as they near the forced restart.

Applies to