Set-AmsHostConfig
SYNOPSIS
Sets one or more AMS host configuration parameters
SYNTAX
DESCRIPTION
This cmdlet allows you to specify settings that apply to the specific host where the cmdlet is run. These settings are not shared between hosts in a farm, and must be set on each individual AMS server where appropriate.
Note, you must restart the service after making changes with this cmdlet for those changes to take effect.
EXAMPLES
Example 1 - Enable the Access Manager API
This example enables the AMS API, specifying a hostname of "ams.lithnet.local". This is the hostname that agents use to connect to the service, and must match exactly what is configured on the client side.
Example 2 - Turn off the Web app
This example disables the web app, preventing user access.
Example 3 - Modify the log location
This example changes the log location to "C:\Logs\AMS"
PARAMETERS
-ApiEnabled
Enables or disables the API service
-ApiHostname
Sets the hostname for the API service. This is the hostname that agents use to connect to the service, and must match exactly what is configured on the client side.
-ConfigPath
The path where the applications config files are stored
-ConnectionString
The connection string used to connect to the database
-LogPath
The path where the applications log files are stored
-SkipConnectionStringValidation
Skips the process of validating the connection string. Used when the user performing the action does not have access to the database itself
-WebAppEnabled
Enables or disables the web app
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
None
OUTPUTS
Lithnet.AccessManager.PowerShell.HostConfigurationOptionsPSObject
NOTES
RELATED LINKS
Last updated