Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sasqwatch/a90749f992f8f15c11db9c941ca9f8b1 to your computer and use it in GitHub Desktop.
Save sasqwatch/a90749f992f8f15c11db9c941ca9f8b1 to your computer and use it in GitHub Desktop.
SELECT System.ItemPathDisplay,System.FileOwner,System.Size,System.DateCreated,System.DateAccessed,System.Search.Autosummary FROM SystemIndex WHERE Contains(*, '""*{0}*""') AND SCOPE = '{1}' AND (System.FileExtension = '.txt' OR System.FileExtension = '.doc' OR System.FileExtension = '.docx' OR System.FileExtension = '.ppt' OR System.FileExtension = '.pptx' OR System.FileExtension = '.xls' OR System.FileExtension = '.xlsx' OR System.FileExtension = '.ps1' OR System.FileExtension = '.vbs' OR System.FileExtension = '.config' OR System.FileExtension = '.ini')"
SELECT * FROM win32_networkconnection"
Select * from Win32_ComputerSystem"
SELECT * FROM Win32_DeviceGuard"
SELECT * FROM win32_service"
SELECT * FROM AntiVirusProduct"
SELECT * FROM MSFT_DNSClientCache"
SELECT ProcessId, ExecutablePath, CommandLine FROM Win32_Process"
SELECT * FROM Win32_Process"
SELECT * FROM Win32_Process WHERE SessionID != 0"
SELECT * FROM MSFT_ScheduledTask"
SELECT * from Win32_Printer"
SELECT Name, State FROM win32_service WHERE Name = 'AppIDSvc'"
SELECT * FROM Win32_Process"
SELECT * FROM Win32_Share"
SELECT * FROM Win32_LoggedOnUser"
SELECT * FROM Win32_LogonSession"
SELECT * FROM Win32_Process"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment