Update README.md

Finding a newer files with powershell
This commit is contained in:
Mane 2024-02-01 01:42:07 -08:00 committed by GitHub
parent e51a01beb0
commit d90f632846
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -234,6 +234,18 @@ The steps performing API cal hooking of .NET methods are:
Get-Content C:\Users\<USERNAME>\AppData\Roaming\Microsoft\Windows\Powershell\PSReadline\ConsoleHost_history.txt
```
## Find a newer files
Options : `CreationTime`, `CreationTimeUtc`, `LastAccessTime`, `LastAccessTimeUtc`, `LastWriteTime`, `LastWriteTimeUtc`
```powershell
# LastAccessTime:
(gci C:\ -r | sort -Descending LastAccessTime | select -first 100) | Select-Object -Property LastAccessTime,FullName
# LastWriteTime:
(gci C:\ -r | sort -Descending LastWriteTime | select -first 100) | Select-Object -Property LastWriteTime,FullName
```
## Get permissions
```powershell