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.
How do I get unique values in my system.array?
How do I get unique values in my array below?
Unable to access error body through Invoke-Webrequest
I am writing a Powershell client to invoke a REST API as follows:
Fast and simple binary concatenate files in Powershell
What’s the best way of concatenating binary files using Powershell?
I’d prefer a one-liner that simple to remember and fast to execute.
How to set PowerShell OutputType for a list of named properties
Consider this function which returns a table of string values, each row having two string properties with names DisplayName and DisplayVersion:
Pruning log data with powershell throws null object exception using Where-Object
I’m trying to modify a powershell script to prune its log file at then end of its execution.
Pruning log data with powershell throws null object exception using Where-Object
I’m trying to modify a powershell script to prune its log file at then end of its execution.
Pruning log data with powershell throws null object exception using Where-Object
I’m trying to modify a powershell script to prune its log file at then end of its execution.