Closed ChadSimmons closed 5 years ago
The @TheZNerd found the bug. Thank's Nathan!
Fixes issue #17
Thanks gentlemen. I've lost my dev/lab environment and won't have one for a few weeks until I pick up some SSDs in the upcoming sales and build something.
Loosing a lab really stinks... I've been there. The timing from a financial perspective isn't too bad... The 2TB Samsung 860 EVO 2.5" SATA III is under $300 right now. I'm so tempted...
The regex to test for "is numeric" is actually testing for the existence of any number. In the case of LogFile=\server01\share\path\file.ext, the \d evaluates to true. Then the value -as [int] doesn't throw an error (by design?) but leave the variable LogFile as null/empty.