Powershell :- Test-Path and the -IsValid Option

Background In some cases one rushes through code and adds this and that in hopes to quickly get results. And, that is how I found myself using Test-Path and self sabotaging with the -IsValid Option. Script Powershell Code Output ¬† Explanation In our test, we passed along a file that does not exist (c:\sam_was_here.txt) -IsValid … Continue reading Powershell :- Test-Path and the -IsValid Option