Windows Victim
Installed Software
List (32-bit)
Get-ItemProperty "HKLM:\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall\*" | select displayname,commentsList (64-bit)
Get-ItemProperty "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\*" | select displayname,commentsServices and Tasks
List “Non-Microsoft” Scheduled Tasks
Get-ScheduledTask | where {$_.TaskPath -notlike "\Microsoft*"} | ft TaskName,TaskPath,Stateschtasks /query /fo LIST /vList Services
Get-Service | Where-Object {$_.StartType -eq 'Auto' -or $_.StartType -eq 'Manual'} | Select-Object Name, DisplayName,StartType, StatusFile System
Search for files
Get-ChildItem -Path C:\Users -Include *.txt,*.ini -File -Recurse -ErrorAction SilentlyContinueWrite to file
Add-Content -Value 'First line`r`nSecond line' -Path C:\temp\file.txtWrite multiple lines to file
Add-Content -Value @'First lineSecond lineAnd another one!'@ -Path C:\temp\file.txt