\n Hi, and welcome to the PowerShell forum! \n\n\nDon’t apologize for being a “noob” or “newbie” or “n00b.” There’s just no need – nobody will think you’re stupid, and the forums are all about asking questions. Just ask!\nUse a descriptive subject. Don't say \"Need help\" or \"PowerShell Help\", actually summarize what the problem is. It helps the rest of us keep track of which problem is which.\nDon’t post massive scripts. We’re all volunteers and we don’t have time to read all that, nor will we copy, past…\n <\/blockquote>\n<\/aside>\n\n
<\/p>","upvoteCount":0,"datePublished":"2019-03-13T17:28:21.000Z","url":"https://community.spiceworks.com/t/powershell-script-editing-config-file/702075/2","author":{"@type":"Person","name":"Neally","url":"https://community.spiceworks.com/u/Neally"}},{"@type":"Answer","text":"
Something like that and all time it took me to google it is 5 seconds.<\/p>\n
Get-Content C:\\new\\temp_*.txt | Select-String -pattern \"H|159\" -notmatch | Out-File C:\\new\\newfile.txt\n<\/code><\/pre>\n
<\/p>","upvoteCount":2,"datePublished":"2019-03-13T17:49:47.000Z","url":"https://community.spiceworks.com/t/powershell-script-editing-config-file/702075/3","author":{"@type":"Person","name":"edwineekelaers2","url":"https://community.spiceworks.com/u/edwineekelaers2"}},{"@type":"Answer","text":"