Relative Content

Tag Archive for powershell

Discard missing log file and send email with available files

I wrote a code to perform data replication from one server to another, post successful replication, logs are generated at two path “\server1Files” and “\server1CAS”. the code is working fine and can send multiple log files as an attachment. The code executes once in a day, there can be a scenario where no new files are available for replication on source server, hence log file for missing files and copied files will not generate but only output log will generate. log file names are in Array.

Discard missing log file and send email with available files

I wrote a code to perform data replication from one server to another, post successful replication, logs are generated at two path “\server1Files” and “\server1CAS”. the code is working fine and can send multiple log files as an attachment. The code executes once in a day, there can be a scenario where no new files are available for replication on source server, hence log file for missing files and copied files will not generate but only output log will generate. log file names are in Array.

PowerShell application stuck sometimes after a popup is displayed

I am using PowerShell to run a script against TFS, and from time to time the application gets stuck (there is no possibility to stop because the button is grayed out) and I need to re-open the application. the question is why it could happen and how to release it and maybe add a protection is required.