Jack I am quite surprised that you are not getting more hits as these videos are really good. Thanks
@shashikantovhal1769 Жыл бұрын
Thank you so much for creating this series. As a beginner , the series helped me to become fearless about powershell.
@jackedprogrammer Жыл бұрын
Happy to hear that! Thank you!
@aeylia7535 Жыл бұрын
The quality of these videos man! I know for sure you'll make it big here
@kennethpaige7036 Жыл бұрын
This series was very helpful .. thank you so much!
@jadelise9 ай бұрын
Nice Job! bite sized chunks, easy to digest. I will be subscribing
@MrWogle1 Жыл бұрын
One of my favorite things to do with error handling in PowerShell is to structure the catch statement like this: $ErrorMessage = "Error occurred when attempting to do X on Y. This is a terminating error.`n$($Error[0])" Write-ErrorLog -LogMessage = $ErrorMessage return $ErrorMessage This will spit out a custom error message that you write yourself, and then on a new line spit out the text from the last error that happened (which is the one you just caught). It makes debugging waaaaay easier.
@fonsohalbert Жыл бұрын
This is amazing! Thank you for uploading
@Jon-rp4st2 жыл бұрын
Thanks a lot, nice person!
@vitorrejano6702 жыл бұрын
Great video!
@Jan-nu6zc Жыл бұрын
Thank u! Great Video
@netor-3y411 ай бұрын
$ErrorActionPreference = "Stop" try { $filePath = "C:\Scripts\10 - Error Handling" $files = Get-ChildItem -Path $filePath foreach ($file in $files) { Write-Output $file.Name } Write-Output "This is after the loop" } catch { Write-Output "Caught an error" } finally { Write-Output "This always runs no matter what!" }