Using Server Configuration Portal Cmdlets

Version 1

    Verified Product Versions

    AppSense Environment Manager 10.0AppSense Management Center 10.0


    In version 10.x (Management Center & Environment Manager) you can use the Server Configuration Portal (SCP) or PowerShell cmdlets to configure and manage AppSense servers and databases. A typical command would be removing a database connection from a server.



    Before using the SCP cmdlets, you must specify the instance you want to manage using the Import-ApsInstanceModule cmdlets.


    For example:

    Import-ApsInstanceModule -ProductName "Management Server" -IsDefault


    You can then run commands for that specific product such as retrieving instance and database information, installing and initializing server and database, repairing variances and exporting scripts (to name a few).


    Please note, there a few cmdlets (listed below) that require an additional module to be imported, as well as the above:

    Import-Module AppSense.ServerConfigurationPortal.PowerShell


    • Get-ApsDatabaseConnection

    • Get-ApsServerInstance

    • Get-ApsServerInstanceDetail

    • Remove-ApsDatabaseConnection


    If you do not import the ApsInstanceModule first you will get the following error when you try the import (AppSense.ServerConfigurationPortal.PowerShell)


    Import-Module : Could not load file or assembly 'ErrorHandling, Version=, Culture=neutral, PublicKeyToken=null' or one of its dependencies. The system cannot find the file specified.

    At line:1 char:1

    + Import-Module AppSense.ServerConfigurationPortal.PowerShell

    + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

    + CategoryInfo : NotSpecified: (:) [Import-Module], FileNotFoundException

    + FullyQualifiedErrorId : System.IO.FileNotFoundException,Microsoft.PowerShell.Commands.ImportModuleCommand