上一主题: Discard-AllPendingRuntimeChangeableScenarioProperties下一主题: Get-AllPendingRuntimeChangeableScenarioProperties


Discard-RuntimeChangeableScenarioProperties

Discard-RuntimeChangeableScenarioProperties 命令允许您取消在指定的运行方案上做出的任何更改。

语法
Discard-RuntimeChangeableScenarioProperties [名称]
参数

名称 - 这是要丢弃更改的运行方案的名称。

示例

如果您已经对名为“FileServer”的运行方案做了很多更改并且发现了问题,请使用以下命令将方案设置回到所有原始值:

Discard-RuntimeChangeableScenarioProperties FileServer
结果

对名为“FileServer”的方案所做的所有更改都被重置回到原始值。

如果您希望仅将特定属性设置回到原始值,请使用 Set-RuntimeChangeableScenarioProperties 命令以仅更改运行方案的指定属性。 请注意,在您已经丢弃更改后,Get-AllPendingRuntimeChangeableScenarioProperties 列表中的所有记录将被删除。 运行 Apply-PendingRuntimeChangeableScenarioProperties 会导致指定方案在运行时未被更改的警告消息出现。