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.

This commit is contained in:
Keith Horton 2024-04-02 13:23:35 -07:00
parent 496c2d1b6c
commit 5cd49a6e32

View File

@ -259,7 +259,7 @@ catch {}
$netSetupPath = "$env:WINDIR/logs/netsetup"
if (Test-Path $netSetupPath)
{
Copy-Item $netSetupPath $folder
Copy-Item $netSetupPath/* $folder
}
$setupApiPath = "$env:WINDIR/inf/setupapi.dev.log"