The other day whe had a stressfull moment. We noticed that one of our passwords was visibile in clear in one of our log files. We new that one of our scripts was responsible for that. But whe only had one question : “Which one ?”.


We realized that whe had sooo many scripts, that going through all of them would take for FOREVER ! I wrote recurse script that would find a specefic occurence in any text type of file (which means any script file actually).


find the script below :


The function can be called as followed in order to find any specefic word in a text file whitin a hierarchy.

By | 2014-06-19T14:32:34+00:00 May 20th, 2014|Files and folders, Functions, PowerShell|0 Comments

About the Author:

Stéphane is a dynamic and passionate Cloud and datacenter Microsoft MVP since. He is the founder of the Basel PowerShell user Group (BPUG), the co-founder of the French Speaking PowerShell UserGroup (FRPSUG), author, blogger, and received the community award "PowerShell Hero" from Stéphane has implemented microsoft infrastructure solutions in various countries of Europe and is currently working in Basel / Switzerland. Stéphane help his clients to reduce their global infrastructure costs by implementing Microsft infrastructure solutions by combining great products such as System Center, Windows Server, with heavy automation using Windows PowerShell. Stéphane loves languages, Belgium beer, French cheese and French Wine. If any of these topics are of your interest, don't hesitate to come and say hi.

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

%d bloggers like this: