diff --git a/powershell/REST API/REST-Basic-Connection-Template.ps1 b/powershell/REST API/REST-Basic-Connection-Template.ps1 old mode 100644 new mode 100755 diff --git a/powershell/REST API/REST-Get-Server-Information.ps1 b/powershell/REST API/REST-Get-Server-Information.ps1 old mode 100644 new mode 100755 diff --git a/powershell/REST API/REST-testing.ps1 b/powershell/REST API/REST-testing.ps1 old mode 100644 new mode 100755 diff --git a/powershell/reconnect_arm.ps1 b/powershell/reconnect_arm.ps1 new file mode 100644 index 0000000..781c1cd --- /dev/null +++ b/powershell/reconnect_arm.ps1 @@ -0,0 +1,132 @@ +# 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