Skip to content

Instantly share code, notes, and snippets.

@taddev
taddev / InputTest.ps1
Created October 27, 2012 04:37
An input test to understand piping in Powershell
param( [switch]$parent, [switch]$child, [switch]$help, [string]$template );
function displayHelp()
{
echo "Input is piped in from the command line.`nThis script will process some stuff";
echo "Parameters:`n";
echo "`t-child`tProcess the child nodes";
echo "`t-parent`tProcess the parent nodes";
echo "`nExample:";
echo "`t1,2,3|.\InputTest.ps1 -child -parent";
@taddev
taddev / AddCert.ps1
Created October 27, 2012 04:17
A simple way to sign code in PowerShell
#
# Author: Tad DeVries
# Email: taddevries@gmail.com
# FileName: AddCert.ps1
#
# Description: Allow a simple method to sign code.
#
# Copyright (C) 2010 Tad DeVries
#
# This program is free software; you can redistribute it and/or