vinissh

SelectString.ps1

Jan 21st, 2021 (edited)
723
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #Get-Content .\processos.txt | Select-String teams
  2.  
  3. #Get-ChildItem .\WINDOWS  | Select-String -Pattern Users
  4.  
  5. Select-String -Path .\processos.txt -Pattern teams -CaseSensitive
  6.  
  7. Select-String -Path "processos.txt" -Pattern guest -Context 1,1
  8.  
  9. Select-String -Path "senhas.txt" -Pattern admin -NotMatch
RAW Paste Data