Below are a suite of PowerShell scripts introduced in MAG*3.0*249.
They are intended to be ran as Administrator in Microsoft PowerShell 5.1.

The order in which to run the scripts are as follows:

Filename:   p249_vix_preinstall_all-in-one.ps1
 Purpose:   This script should be ran prior to the installation of MAG*3.0*249.
            It will make timestamped backups of the following critical config files
            for referential purposes:
            * C:\Program Files\VistA\Imaging\VIX.Config\VIX.Render.config
            * C:\Program Files\VistA\Imaging\VIX.Config\VIX.Viewer.config
            * C:\Program Files\Apache Software Foundation\Tomcat 8.0\conf\server.xml
            * C:\VixConfig\MuseDataSource-1.0.Config
            * C:\VixConfig\cache-config\ImagingExchangeCache-cache.xml

            It will also set "apachetomcat" user group membership and permissions the following folders:
            * C:\DCF_RunTime_x64
            * C:\VixConfig
            * C:\Program Files\Apache Software Foundation\Tomcat 8.0
            * C:\Program Files\Java\jre1.8.0_202


Filename:   p249_postinstall_all-in-one.ps1
 Purpose:   Based on IOC feedback, many post-installation scripts have been integrated
            into this single script:            
            * Config Edits:  Patch 249 fixes two outstanding issues, non-encrypted connections 
            between the CVIX and VIX servers and poor performance in TIFF to PDF conversions.  
            This script archives the config files and makes the necessary modifications. It
            creates a new MUSE Config XML template to help site VIX admins configure it correctly.
            
            * SSL Binding:  This script retrieves the thumbprint of the appropriate SSL certificate 
            being presented by the local VIX server.  It then binds ports 343 and 344 to that 
            certificate in order to facilitate secure data traffic between the CVIX and VIX servers.
            
            * Task Scheduler:  This script (executed as Administrator) will create a Scheduled Task
            for the VIX services restarts (p249_vix_services.ps1).  Currently, the script sets the 
            restart time to 0400 but can be adjusted by the site admins if desired by editing 
            line 2:  -Daily -At 4:00am
            
            * VIX Service Restarts:  This script stops and restarts critical Imaging services for 
            Tomcat8, VIX Viewer Service, VIX Render Service and ListenerTool.  This should provide
            a performance benefit when ran as a daily scheduled task.    

Filename:   p249_vix_services.ps1
 Purpose:   This script stops and restarts critical Imaging services for Tomcat8, VIX Viewer
            Service, VIX Render Service and ListenerTool.  This should provide a performance
            benefit when ran as a daily scheduled task.      

==================================================================================================
Additional PowerShell scripts for Ops troubleshooting and manual installation.

Filename:   p249_vix_preinstall_config_backups.ps1
 Purpose:   This script will make timestamped backups of the following critical config files
            for referential purposes:
            * C:\Program Files\VistA\Imaging\VIX.Config\VIX.Render.config
            * C:\Program Files\VistA\Imaging\VIX.Config\VIX.Viewer.config
            * C:\Program Files\Apache Software Foundation\Tomcat 8.0\conf\server.xml
            * C:\VixConfig\MuseDataSource-1.0.Config
            * C:\VixConfig\cache-config\ImagingExchangeCache-cache.xml

Filename:   p249_permission_fixer.ps1
 Purpose:   This script will set "apachetomcat" user group membership and permissions the following folders:
            * C:\DCF_RunTime_x64
            * C:\VixConfig
            * C:\Program Files\Apache Software Foundation\Tomcat 8.0
            * C:\Program Files\Java\jre1.8.0_202
            
Filename:   p249_vix_config_edits.ps1
 Purpose:   Patch 249 fixes two outstanding issues, non-encrypted connections between the CVIX 
            and VIX servers and poor performance in TIFF to PDF conversions.  This script
            backs up the original config files (VIX.Viewer.config and VIX.Render.config) and
            makes the appropriate edits to enable the fixes.
                        
Filename:   p249_vix_ssl_binder.ps1
 Purpose:   This script retrieves the thumbprint of the appropriate SSL certificate being 
            presented by the local VIX server.  It then binds ports 343 and 344 to that certificate 
            in order to facilitate secure data traffic between the CVIX and VIX servers.  

Filename:   p249_task_scheduler.ps1
 Purpose:   This script (executed as Administrator) will create a Scheduled Task for 
            the VIX services restarts (p249_vix_services.ps1).  Currently, the script
            sets the restart time to 0400 but can be adjusted by the site admins if 
            desired by editing line 2:  -Daily -At 4:00am
                      
Filename:   p249_service_info.ps1
 Purpose:   This script provides status information for critical Imaging services for Tomcat8, 
            VIX Viewer Service, VIX Render Service and ListenerTool.
            