# You can write debug, error, verbose, info etc messages. # They will appear in EFT.log # # Make sure that PowerShell doesn't skip messages # $DebugPreference = "Continue" # $VerbosePreference = "Continue" # # You can access all EFT context variables via $EFT_CONTEXT # # Get context variable and output it to debug log: # write-debug $EFT_CONTEXT.GetVariable("SITE.NAME") # # Create a new context variable # $EFT_CONTEXT.SetVariable("custom_variable", "this a custom variable") # # Modify a context variable # $EFT_CONTEXT.SetVariable("custom_variable", "this is a modified value"); <# .SYNOPSIS Use EFT's COM interface to configure ARM settings for auditing and reporting. .DESCRIPTION Use EFT's COM interface to check status of ARM and reconnect if needed .PARAMETER serverName .PARAMETER eftAdminPort .PARAMETER authMethod .PARAMETER eftAdminName .PARAMETER eftAdminPassword #> param( [Parameter(Mandatory=$False)][string]$serverName = "localhost", [Parameter(Mandatory=$False)][int]$eftAdminPort = 1100, [Parameter(Mandatory=$False)][int]$authMethod = 1, [Parameter(Mandatory=$False)][string]$eftAdminName = "", [Parameter(Mandatory=$False)][string]$eftAdminPassword = "" ) #------------------------------------------------------------ # Setup logging to a file #------------------------------------------------------------ #Output