Showing posts with label Powershell. Show all posts
Showing posts with label Powershell. Show all posts

Sunday, May 6, 2012

Powershell Samples

Some beginner's sample PS scripts, mainly as reference for me.

Find Files:
Find in files and search for a specific string in the files:
List of folders:
A function that replaces text in a given file:
This can be used to replace text "Hello" with "Bye" in all files like some*.txt:
Script file called with multiple parameters:
Functions to return files and folders of a folder