Initialize-MgmtSvcFeature

Configures a management service feature.

Syntax

Initialize-MgmtSvcFeature
          [-Name] <String>
          [[-Settings] <Hashtable>]
          [-Passphrase <String>]
          [-EnableCeip <EnableCeip>]
          [-Server <String>]
          [-UserName <String>]
          [-Password <String>]
          [-WhatIf]
          [-Confirm]
          [<CommonParameters>]
Initialize-MgmtSvcFeature
          [-Name] <String>
          [[-Settings] <Hashtable>]
          [-Passphrase <String>]
          [-EnableCeip <EnableCeip>]
          [-ConnectionString <String>]
          [-WhatIf]
          [-Confirm]
          [<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.

Required Parameters

-Name

Specifies the name of a management service feature.

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

Optional Parameters

-Confirm

Prompts you for confirmation before running the cmdlet.

Type:SwitchParameter
Aliases:cf
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
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
Position:Named
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
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-Password

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

Type:String
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
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
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
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
Position:Named
Default value:False
Accept pipeline input:False
Accept wildcard characters:False