==================================================================================================== HOW TO RUN A POWERSHELL SCRIPT OR .EXE USING THE FTP WATCHER/CLIENT ==================================================================================================== - If you're using WinSCP, drag the file you want to run onto a local directory on your machine. - Drag the file from your local directory into the "myhealth_remote" directory. - If the file name contains the keyword "runme" anywhere, it will be run on all servers running the FTP Client. - If you want the file to be run on *all* servers running the FTP Client, make sure that the keyword "runme" is included in its name. - If you want the file to only be run one particular server (which I *strongly* recommend you do before you deploy any shiny new scripts you've written to every server at once), replace "runme" with the hostname of the target server exactly as it appears on the server's command line. These might be case-sensitive. I can't remember. - Check back on the "myhealth_logs" directory to see how the deployment is going. Servers will upload a log file to this directory once execution of the downloaded file has completed. ==================================================================================================== TROUBLESHOOTING AND TIPS ==================================================================================================== - Before you run your intended script, run the "clear_inbox_outbox_runme.ps1" script to clear out old files from the last deployment. Allow 10 minutes for this to finish, then check "myhealth_logs" to see if it hit every server. - You should see that all of the standard log files have timestamps from within the last 10 minutes. If any *haven't* updated, the FTP Client on the server(s) may not be running. In this case, try finding the server in question on Teamviewer using its hostname and investigate: - Check that the Windows Server administrator account is signed in. - Check Task Manager to see if FTP Watcher is running. - If it isn't running, try launching it at "C:/Myhealth FTP/Processes/FTP Watcher.exe" - If it *is* running, force close it with Task Manager and clear out the directories "C:/Myhealth FTP/FTP Inbox" and "C:/Myhealth FTP/FTP Outbox" manually. ---------------------------------------------------------------------------------------------------- - "UAC pop-ups are keeping BP Drug Updates or other files from running!" - Try entering "shell:startup" into Run and right-click the shortcut to FTP Watcher. Select properties. Ensure that under the "Compatibility" tab that "Run as an administrator" is ticked.