Search Documentation by Keyword

Get-ActiveEnvironment

You are here:
← All Topics

Returns the Environment object of the currently active Environment.

An Environment object typically contains database connections and file locations for the relevant environment. Environments are specified in the shared configuration file.

A typical Environment object looks like this:

DEV = @{
    MedmDbServer = "DevServerName"
    MedmDbName = "DevDbName"
    DirInBbgPrc = "\\netshare\Environments\DEV\Inbound\BBG\PRC"
    DirInBbgSec = "\\netshare\Environments\DEV\Inbound\BBG\SEC"
}

Syntax

Get-ActiveEnvironment
×