Reset-HcsFactoryDefault

Reset-HcsFactoryDefault

Resets one or both controllers to a factory default state.

语法

Parameter Set: Default
Reset-HcsFactoryDefault [[-Format] <String> ] [[-Scope] <ClusterScope> ] [-Force] [ <CommonParameters>]

详细说明

The Reset-HcsFactoryDefault cmdlet resets one or both controllers to a factory default state. If you reset both controllers, you lose all data, metadata, and controller settings. The controllers revert to the operating system that the factory installed.

If you use Reset-HcsFactoryDefault to reset only one controller, that controller gets the current operating system image from its peer controller. You should reset only one controller if the peer controller is running and is in a healthy state. You do not lose any data if you reset only one controller.

The default behavior of this cmdlet is to reset both controllers.

参数

-Force

在不请求用户确认的情况下,强制该命令运行。

别名

是否为必需?

false

位置?

named

默认值

是否接受管道输入?

false

是否接受通配符?

false

-Format<String>

Specifies the format for how the shared serial-attached SCSI (SAS) disks where customer data is stored are formatted.

别名

是否为必需?

false

位置?

1

默认值

Quick

是否接受管道输入?

false

是否接受通配符?

false

-Scope<ClusterScope>

Specifies the scope. 此参数可接受的值如下:

-- Cluster. Disable support access for both nodes. This option resets both controllers. This option loses all data. You must run setup again. This is the default.
-- Controller. Disable support access for the local node only. This option resets only the current controller. This option resets the current controller. That controller forms a cluster with the peer controller once the reset is complete. No data loss occurs in this process.

别名

是否为必需?

false

位置?

2

默认值

Cluster

是否接受管道输入?

false

是否接受通配符?

false

<CommonParameters>

此 cmdlet 支持通用参数:-Verbose、-Debug、-ErrorAction、-ErrorVariable、-OutBuffer 和 -OutVariable。有关详细信息,请参阅 about_CommonParameters (https://go.microsoft.com/fwlink/p/?LinkID=113216).

输入

输入类型是指可通过管道传送给 cmdlet 的对象的类型。

输出

输出类型是 cmdlet 所发出对象的类型。

示例

Example 1: Reset both controllers to the default factory state

This command resets both controllers to the default factory state.

PS C:\> Reset-HCSFactoryDefault

Example 2: Reset both controllers to the factory default state without confirmation

This command resets both controllers to the factory default state. The user is not prompted for confirmation.

PS C:\> Reset-HCSFactoryDefault -Force

Example 3: Reset the current controller to the factory default state

This command resets the current controller to the factory default state.

PS C:\> Reset-HCSFactoryDefault -Scope Controller