@samitouri / QOSAMI-WSL / commits / 5cd49a6e

Fixing the powershell to collect netsetup logs - the previous command worked when there were multiple files in the target path, but when there was just a single file it did not work correctly. this is verified to work with both 1 or more files in the netsetup path.

Keith Horton committed Apr 2, 2024 at 13:23 UTC 5cd49a6e32e8c0569d207c665fd4cd4c14a54dfa
1 file changed +1 -1
diagnostics/collect-networking-logs.ps1
+1 -1
@@ -259,7 +259,7 @@ catch {}
259 $netSetupPath = "$env:WINDIR/logs/netsetup"
260 if (Test-Path $netSetupPath)
261 {
262 - Copy-Item $netSetupPath $folder
262 + Copy-Item $netSetupPath/* $folder
263 }
264
265 $setupApiPath = "$env:WINDIR/inf/setupapi.dev.log"