Advertisement
vinissh

LeituraDeArquivos.ps1

Jan 21st, 2021 (edited)
425
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. $arquivo = Get-Content  -Path F:\processos.txt
  2.  
  3. $arquivo.GetType() | Format-Table -AutoSize
  4.  
  5. foreach($objects in $arquivo){
  6.  
  7.     Write-Host $objects Select-String 'processname'
  8. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement