Configures a management service feature.
Syntax
Parameter Set: ConnectionParameters
Initialize-MgmtSvcFeature [-Name] <String> [[-Settings]
<Hashtable> ] [-EnableCeip {No | None | Yes} ] [-Passphrase
<String> ] [-Password <String> ] [-Server
<String> ] [-UserName <String> ] [-Confirm] [-WhatIf] [
<CommonParameters>]
Parameter Set: ConnectionString
Initialize-MgmtSvcFeature [-Name] <String> [[-Settings]
<Hashtable> ] [-ConnectionString <String> ]
[-EnableCeip {No | None | Yes} ] [-Passphrase <String> ]
[-Confirm] [-WhatIf] [ <CommonParameters>]
The Initialize-MgmtSvcFeature cmdlet configures a management service feature.
The feature can be initialized only if it is installed locally.
Specifies an SQL connection string. This parameter overrides Settings["connectionString"].
Aliases |
none |
Required? |
false |
Position? |
named |
Default Value |
none |
Accept Pipeline Input? |
false |
Accept Wildcard Characters? |
false |
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"].
The acceptable values for this parameter are:
No |
|
None |
|
Yes |
|
Aliases |
none |
Required? |
false |
Position? |
named |
Default Value |
none |
Accept Pipeline Input? |
false |
Accept Wildcard Characters? |
false |
Specifies the name of a management service feature.
Aliases |
none |
Required? |
true |
Position? |
1 |
Default Value |
none |
Accept Pipeline Input? |
false |
Accept Wildcard Characters? |
false |
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"].
Aliases |
none |
Required? |
false |
Position? |
named |
Default Value |
none |
Accept Pipeline Input? |
false |
Accept Wildcard Characters? |
false |
Specifies a password. This parameter overrides Settings["dbAdminPassword"].
Aliases |
none |
Required? |
false |
Position? |
named |
Default Value |
none |
Accept Pipeline Input? |
false |
Accept Wildcard Characters? |
false |
Specifies the name of the computer on which the SQL database resides. This parameter overrides Settings["dbServer"].
Aliases |
none |
Required? |
false |
Position? |
named |
Default Value |
none |
Accept Pipeline Input? |
false |
Accept Wildcard Characters? |
false |
Specifies a collection of key/value pairs for the feature settings. When possible, you should use the named parameters instead of this parameter.
Aliases |
none |
Required? |
false |
Position? |
2 |
Default Value |
none |
Accept Pipeline Input? |
false |
Accept Wildcard Characters? |
false |
Specifies the name of a user account. This parameter overrides Settings["dbAdminUserName"].
Aliases |
none |
Required? |
false |
Position? |
named |
Default Value |
none |
Accept Pipeline Input? |
false |
Accept Wildcard Characters? |
false |
Prompts you for confirmation before executing the command.
Required? |
false |
Position? |
named |
Default Value |
none |
Accept Pipeline Input? |
false |
Accept Wildcard Characters? |
false |
Describes what would happen if you executed the command without actually executing the command.
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, -OutBuffer, and -OutVariable. For more information, see about_CommonParameters.
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.
PS C:\> $Settings =
@{dbServer='mysqlservermc';dbAdminUserName='sa';dbAdminPassword='#######';configStorePassphrase='########';}
PS C:\> Initialize-MgmtSvcFeature -Name "AdminSite"
-Settings $Settings -EnableCeip Yes