Set-RubrikModuleOption
SYNOPSIS
Sets an option value within the users option file
SYNTAX
NameValue (Default)
Defaults
Sync
DESCRIPTION
The Set-RubrikModuleOption will set an option value within the users option value and immediately apply the change.
EXAMPLES
EXAMPLE 1
This will disable the application of custom view definitions to returned objects, instead displaying a complete list of properties.
EXAMPLE 2
Set-RubrikModuleOption -OptionName CredentialPath -OptionValue "c:\creds\creds.xml"
This will create a default credential file to be used with Connect-Rubrik only. Encrypted credentials will be stored on the local filesystem and automatically sent to Connect-Rubrik by applying them to the global $PSDefaultParameterValues variable
EXAMPLE 3
This will remove the application of sending default credentials to Connect-Rubrik. Note: It will not remove any generated credential files.
EXAMPLE 4
This will reset all Rubrik module options to their default values
EXAMPLE 5
This will sync any changes made to the user option file manually to the current PowerShell session.
EXAMPLE 6
Changes the default timeout for request to the Rubrik cluster to 30 seconds
PARAMETERS
-OptionName
Option name to change
-OptionValue
Desired value for option
-Default
Reset all Module Options to default values
-Sync
Apply manual changes from JSON file to session
CommonParameters
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.
INPUTS
OUTPUTS
NOTES
Written by Mike Preston for community usage Twitter: @mwpreston GitHub: mwpreston
RELATED LINKS
Last updated