external help file | Module Name | online version | schema |
---|---|---|---|
OutSystems.SetupTools-help.xml |
OutSystems.SetupTools |
2.0.0 |
Configure or apply the current configuration to the OutSystems server
Set-OSServerConfig -SettingSection <String> -Setting <String> -Value <String> [<CommonParameters>]
Set-OSServerConfig [-PlatformDBCredential <PSCredential>] [-SessionDBCredential <PSCredential>] [-Apply]
[-SkipSessionRebuild] [<CommonParameters>]
This cmdLet has two modes. Configure or Apply:
In configure mode you can change configuration tool settings using the -SettingSection, -Setting, -Value and -Encrypted parameter The cmdLet will not check if SettingSection and Setting are valid OutSystems parameters. You need to know what you are doing here
The Apply mode will run the OutSystems configuration tool with the configured settings For that you need to specify the -Apply parameter You can also specify the admin credentials for the platform, session and logging (only in OS11) databases You may also add the -InstallServiceCenter to install Service Center In OS11 you may also add the -ConfigureCacheInvalidationService to configure RabbitMQ
Set-OSServerConfig -SettingSection 'CacheInvalidationConfiguration' -Setting 'ServiceUsername' -Value 'admin'
Set-OSServerConfig -SettingSection 'CacheInvalidationConfiguration' -Setting 'ServicePassword' -Value 'mysecretpass'
Set-OSServerConfig -Apply -PlatformDBCredential sa
Set-OSServerConfig -Apply -PlatformDBCredential sa -SessionDBCredential sa -LogDBCredential sa -ConfigureCacheInvalidationService -InstallServiceCenter
The setting section. When this is specified, the cmdLet will run in configure mode
Type: String
Parameter Sets: ChangeSettings
Aliases:
Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
The setting
Type: String
Parameter Sets: ChangeSettings
Aliases:
Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
The value
Type: String
Parameter Sets: ChangeSettings
Aliases:
Required: True
Position: Named
Default value: None
Accept pipeline input: True (ByValue)
Accept wildcard characters: False
PSCredential object with the admin credentials to the platform database
Type: PSCredential
Parameter Sets: ApplyConfig
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
PSCredential object with the admin credentials to the session database
Type: PSCredential
Parameter Sets: ApplyConfig
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
This will switch the cmdLet to apply mode
Type: SwitchParameter
Parameter Sets: ApplyConfig
Aliases:
Required: False
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False
If specified, the configuration tool will not rebuild the session database. Usefull on frontends.
Type: SwitchParameter
Parameter Sets: ApplyConfig
Aliases:
Required: False
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.
Check the server.hsconf file on the platform server installation folder to know which section settings and settings are available
If you dont specify database credentials, the configuration tool will try the current user credentials and then admin user specified on the configuration