Initialize-MgmtSvcFeature

Configures a management service feature.

Syntax

Initialize-MgmtSvcFeature [-Name] <String> [[-Settings] <Hashtable>] [-Confirm] [-ConnectionString <String>]
 [-EnableCeip <EnableCeip>] [-Passphrase <String>] [-WhatIf] [<CommonParameters>]
Initialize-MgmtSvcFeature [-Name] <String> [[-Settings] <Hashtable>] [-Confirm] [-EnableCeip <EnableCeip>]
 [-Passphrase <String>] [-Password <String>] [-Server <String>] [-UserName <String>] [-WhatIf]
 [<CommonParameters>]

Description

The Initialize-MgmtSvcFeature cmdlet configures a management service feature.

The feature can be initialized only if it is installed locally.

Examples

Example 1: Configure a management service feature

PS C:\> $Settings = @{dbServer='mysqlservermc';dbAdminUserName='sa';dbAdminPassword='#######';configStorePassphrase='########';}
PS C:\> Initialize-MgmtSvcFeature -Name "AdminSite" -Settings $Settings -EnableCeip Yes
The first command specifies the settings for a management service feature, and stores the settings in the $Settings variable. The second command configures the management service feature named AdminSite by using the settings stored in $Settings for the feature.

Parameters

-Confirm

Prompts you for confirmation before running the cmdlet.

Type:SwitchParameter
Aliases:cf
Required:False
Position:Named
Default value:False
Accept pipeline input:False
Accept wildcard characters:False

-ConnectionString

Specifies an SQL connection string.
This parameter overrides Settings["connectionString"].

Type:String
Required:False
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False

-EnableCeip

Enables, when set to Yes, participation in the Customer Experience Improvement Program (CEIP).
To disable participation in CEIP, set this value to No.
This parameter overrides Settings["enableCeip"].

Type:EnableCeip
Parameter Sets:Yes, No
Required:False
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False

-Name

Specifies the name of a management service feature.

Type:String
Required:True
Position:0
Default value:None
Accept pipeline input:False
Accept wildcard characters:False

-Passphrase

Specifies a passphrase.

The passphrase must have more than eight characters and contain at least one non-alphanumeric character.
Remember to protect the passphrase.
You cannot recover the passphrase.
This parameter overrides Settings["configStorePassphrase"].

Type:String
Required:False
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False

-Password

Specifies a password.
This parameter overrides Settings["dbAdminPassword"].

Type:String
Required:False
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False

-Server

Specifies the name of the computer on which the SQL database resides.
This parameter overrides Settings["dbServer"].

Type:String
Required:False
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False

-Settings

Specifies a collection of key/value pairs for the feature settings.
When possible, you should use the named parameters instead of this parameter.

Type:Hashtable
Required:False
Position:1
Default value:None
Accept pipeline input:False
Accept wildcard characters:False

-UserName

Specifies the name of a user account.
This parameter overrides Settings["dbAdminUserName"].

Type:String
Required:False
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False

-WhatIf

Shows what would happen if the cmdlet runs.
The cmdlet is not run.

Type:SwitchParameter
Aliases:wi
Required:False
Position:Named
Default value:False
Accept pipeline input:False
Accept wildcard characters:False