Windows PowerShell command on Get-command Set-StorageProvider
MyWebUniversity

Windows PowerShell command on Get-command Set-StorageProvider

NAME

Set-StorageProvider

SYNOPSIS

Modifies whether to enable the SMP provider cache.

SYNTAX

Set-StorageProvider [-ProviderName] [-CimSession ] [-PassThru] [-RemoteSubsystemCacheMode

{Disabled | ManualDiscovery}] [-ThrottleLimit ] []

Set-StorageProvider [-CimSession ] [-PassThru] [-RemoteSubsystemCacheMode {Disabled |

ManualDiscovery}] [-ThrottleLimit ] []

Set-StorageProvider [-CimSession ] [-PassThru] [-RemoteSubsystemCacheMode {Disabled |

ManualDiscovery}] [-ThrottleLimit ] -ProviderUniqueId []

DESCRIPTION

The Set-StorageProvider cmdlet modifies whether to enable the symmetric multiprocessing (SMP) provider cache.

Specify a value of Manual for the RemoteSubsystemCacheMode parameter to enable caching. If you enable the cache on the management node that manages storage on remote computers or clusters, the management node caches remote

objects. This caching can improve enumeration operations, such as the Get-StoragePool cmdlet or the

New-VirtualDisk cmdlet.

PARAMETERS

-CimSession []

Runs the cmdlet in a remote session or on a remote computer. Enter a computer name or a session object, such

as the output of a New-CimSession or Get-CimSession cmdlet. The default is the current session on the local

computer. Required? false Position? named Default value none Accept pipeline input? false Accept wildcard characters? false

-PassThru []

Returns an object representing the item with which you are working. By default, this cmdlet does not generate any output. Required? false Position? named Default value none Accept pipeline input? false Accept wildcard characters? false

-ProviderName

Specifies an array of names of providers. The cmdlet modifies the providers that you specify. Required? true Position? 1 Default value none

Accept pipeline input? True (ByPropertyName)

Accept wildcard characters? false

-ProviderUniqueId

Specifies an array of unique IDs of providers. The cmdlet modifies the providers that you specify. Required? true Position? named Default value none

Accept pipeline input? True (ByPropertyName)

Accept wildcard characters? false

-RemoteSubsystemCacheMode []

Specifies the cache mode for a remote subsystem. The acceptable values for this parameter are:

-- Disable

-- Manual

Required? false Position? named Default value none Accept pipeline input? false Accept wildcard characters? false

-ThrottleLimit []

Specifies the maximum number of concurrent operations that can be established to run the cmdlet. If this parameter is omitted or a value of 0 is entered, then Windows PowerShellr calculates an optimum throttle limit for the cmdlet based on the number of CIM cmdlets that are running on the computer. The throttle limit applies only to the current cmdlet, not to the session or to the computer. Required? false Position? named Default value none Accept pipeline input? false Accept wildcard characters? false This cmdlet supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, WarningVariable, OutBuffer, PipelineVariable, and OutVariable. For more information, see about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).

INPUTS

Microsoft.Management.Infrastructure.CimInstance#ROOT/Microsoft/Windows/Storage/MSFT_StorageProvider http://msdn.microsoft.com/library/windows/desktop/hh830562.aspx You can use the pipeline operator to pass one or more MSFT_StorageProvider objects to the InputObject parameter.

OUTPUTS

Microsoft.Management.Infrastructure.CimInstance#ROOT/Microsoft/Windows/Storage/MSFT_StorageProvider http://msdn.microsoft.com/library/windows/desktop/hh830562.aspx If you use the PassThru parameter, this cmdlet outputs an object that represents the storage provider for which you changed settings

Example 1: Enable caching for a provider

PS C:\>Set-StorageProvider -ProviderName "Provider87" -RemoteSubSystemCacheMode Manual

This command enables caching for a provider.

RELATED LINKS

Online Version: http://go.microsoft.com/fwlink/?LinkId=816488

Get-StoragePool

Get-StorageProvider

New-VirtualDisk



Contact us      |      About us      |      Term of use      |       Copyright © 2000-2019 OurUNIX.com ™