Published 4 Apr 2014 2:37 AM by Phil Sullivan
This sample defines a PowerShell function that zips all files in a directory...
Published 4 Apr 2014 2:12 AM by Phil Sullivan
This sample defines a PowerShell function that adds a date stamp to all files in a directory. By default it adds a stamp in the format _yyyy.MM.dd, but a different format can be passed in through a pa...
Published 4 Apr 2014 1:42 AM by Phil Sullivan
This sample defines a PowerShell function that lists files in a directory that haven't been modified for x number of days. The function takes a parameter which specifies the number of days...
Published 24 Nov 2013 6:33 PM by Phil Sullivan
This sample shows how you can add some code in your PowerShell profile to change the shell appearance. The following code will give you a dark appearance similar to a Linux or a Matrix look. Add the f...
Published 24 Nov 2013 2:23 AM by Phil Sullivan
This sample creates a PowerShell function that lists files that are owned by the specified user and optionally match a mask. By default the function will match all users and files in the current direc...
Published 12 Oct 2013 5:39 PM by Phil Sullivan
This sample creates a PowerShell function that lists details about disk drives on a machine. By default it will list details about all drives, but you can also supply a specific drive name:
...
Published 2 Oct 2013 10:38 PM by Phil Sullivan
This sample demonstrates how to process files from a source directory and then move them to another location. This script remains active always and checks for new files every 30 seconds. Currently it ...
Published 27 Sep 2013 1:32 AM by Phil Sullivan
This sample defines a PowerShell function that lists CPU intensive processes running on a machine. If you call the function without any parameters it will list the top 5 CPU intensive processes. Howev...
Published 26 Sep 2013 12:33 AM by Phil Sullivan
This sample defines a PowerShell function that lists files in a directory that were modified on a given date...