findstr ignore error and print results in file

This commit is contained in:
CravateRouge 2022-11-06 11:58:00 +01:00 committed by GitHub
parent c17ae602fc
commit e5a18a72c2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -449,7 +449,7 @@ Extract `HKLM\Software\Policies\Microsoft Services\AdmPwd` from Windows Registry
```powershell ```powershell
cd C:\ & findstr /SI /M "password" *.xml *.ini *.txt cd C:\ & findstr /SI /M "password" *.xml *.ini *.txt
findstr /si password *.xml *.ini *.txt *.config findstr /si password *.xml *.ini *.txt *.config 2>nul >> results.txt
findstr /spin "password" *.* findstr /spin "password" *.*
``` ```