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