Set-StorageSetting

Set-StorageSetting

Adjusts or configures current storage settings of the StorageSetting object.

構文

Parameter Set: Set1
Set-StorageSetting [-AsJob] [-CimSession <CimSession[]> ] [-NewDiskPolicy <NewDiskPolicy> ] [-ScrubPolicy <ScrubPolicy> ] [-ThrottleLimit <Int32> ] [ <CommonParameters>]

詳細説明

The Set-StorageSettings cmdlet adjusts or configures current storage settings of the StorageSetting object.

パラメーター

-AsJob

エイリアス

なし

必須?

false

位置は?

named

既定値

なし

パイプライン入力を許可する

false

ワイルドカード文字を許可する

false

-CimSession<CimSession[]>

リモート セッションまたはリモート コンピューターでコマンドレットを実行します。New-CimSession コマンドレットや Get-CimSession コマンドレットの出力など、コンピューター名またはセッション オブジェクトを入力します。既定値は、ローカル コンピューターで実行中の現在のセッションです。

エイリアス

Session

必須?

false

位置は?

named

既定値

なし

パイプライン入力を許可する

false

ワイルドカード文字を許可する

false

-NewDiskPolicy<NewDiskPolicy>

Manages the policy that will be applied to newly attached disks. New disk policy accepts the following settings; (only applies to disks that were not previously seen), このパラメーターに対して使用できる値:
OnlineAll: (Same as current diskpartsanpolicy definition) All disks are automatically onlined regardless of bus-type or configuration. Can cause data loss if used on shared bus disks improperly.
OfflineAll: (Same as current diskpartsanpolicy definition) All disks are automatically left offline, regardless of the bus-type. (not recommended for Windows Client as this would result in attached USB disk not being available by default).
OfflineInternal: Leaves all newly attached disks, which are non-shared storage busses (such as ATA, SATA, USB) offline by default. (new for Windows Server® 2012).
OfflineShared: Leaves all newly attached disks which are on a sharable bus (iSCSI, FC, SAS) offline by default.

エイリアス

なし

必須?

false

位置は?

named

既定値

なし

パイプライン入力を許可する

false

ワイルドカード文字を許可する

false

-ScrubPolicy<ScrubPolicy>

Specifies the policy for the files that the automatic data integrity scanner scrubs. このパラメーターに対して使用できる値:

-- 0. Off: No files are scrubbed.
-- 1. Integrity Streams: Only files with integrity streams are scrubbed.
-- 2. All: All files are scrubbed.

エイリアス

なし

必須?

false

位置は?

named

既定値

なし

パイプライン入力を許可する

false

ワイルドカード文字を許可する

false

-ThrottleLimit<Int32>

このコマンドレットを実行するために確立できる最大同時操作数を指定します。このパラメーターを省略するか、値として 0 を入力した場合、Windows PowerShell® では、コンピューターで実行している CIM コマンドレットの数に基づいて、コマンドレットに対する最適なスロットル制限を計算します。スロットル制限は現在のコマンドレットのみに適用され、セッションまたはコンピューターには適用されません。

エイリアス

なし

必須?

false

位置は?

named

既定値

なし

パイプライン入力を許可する

false

ワイルドカード文字を許可する

false

<CommonParameters>

このコマンドレットは次の共通パラメーターをサポートします。-Verbose、-Debug、-ErrorAction、-ErrorVariable、-OutBuffer、-OutVariable.詳細については、以下を参照してください。 about_CommonParameters (https://go.microsoft.com/fwlink/p/?LinkID=113216)。

入力

入力型は、コマンドレットにパイプできるオブジェクトの型です。

  • None

出力

出力型は、コマンドレットによって生成されるオブジェクトの型です。

  • None

  • Microsoft.Management.Infrastructure.CimInstance オブジェクトは、Windows Management Instrumentation (WMI) オブジェクトを表示するラッパー クラスです。シャープ記号 (#) の後のパスは、基になる WMI オブジェクトの名前空間とクラス名です。

EXAMPLE 1

This example changes the new disk policy so that all newly attached disks remain offline.

PS C:\> Set-StorageSettings -NewDiskPolicy OfflineAll

EXAMPLE 2

This example changes the new disk policy so that all newly attached disks on a local bus remain offline.

PS C:\> Set-StorageSettings -NewDiskPolicy OfflineInternal

EXAMPLE 3

This example changes the new disk policy so that all new shared bus disks remain offline and all new local bus disks remain online.

PS C:\> Set-StorageSettings -NewDiskPolicy OfflineShared

EXAMPLE 4

This example changes the new disk policy so that all new disks are brought online, regardless of whether the disk are on a local or shared bus.

PS C:\> Set-StorageSettings -NewDiskPolicy OnlineAll

関連トピック

Get-StorageSetting