Category: <span>PowerShell</span>

Simple PowerShell Function for Publishing to NuGet

I’ve created a simple, re-usable function you can put in your PowerShell profile that will publish a package to NuGet or a local test feed.  This little script allowed me to remove redundant scripts that were scattered across my various projects. [more] I maintain a lot of packages on NuGet these days (seven at last…

Read More

Random Link Roundup–8/22/2014

Happy Friday again!  Here are more random, useful links I’ve come across over the last week. [more] Typ.io – nifty little tool for picking complimentary fonts! Just Say No to Justification – Design for Hackers author David Kadavy talks about why justification works in some mediums, but also illustrates why you shouldn’t use it on…

Read More

Using Cloudmailin’ with ASP.NET MVC

I’m building an ASP.NET MVC app that receives E-mail via Cloudmailin.com’s service.   In this post, I’ll show you how to create a handler for Cloudmailin using MVC, and I’ll show you how to test that handler locally. [more] Receiving Data From Cloudmailin Cloudmailin is a service that takes E-mail messages and posts them to a…

Read More

Powershell Magic and Syncing Your Profile through THE CLOUD

Powershell is a wonderful tool.  It replaced cmd.exe as my go-to shell long ago, and I’m consistently finding ways to automate painful, manual processes through simple, clean Powershell scripting.  One thing that bugged me though is that my Powershell profile was not consistent across all my many workstations.  By combining Dropbox and a little Poweshell…

Read More

Setting Certificate Permissions With Powershell

This post is more a reminder for me than anything else, but you may find it useful if you are scripting certificate-management tasks on Windows. The Certificate Manager snap-in for Windows allows you to manage permissions for certificates.  This is important if you want to, for example, grant your ASP.NET application the ability to use…

Read More

A Cross-Version PowerShell Function To Restart IIS App Pools

The web is littered with different ways to restart IIS application pools.  Unfortunately, no one method that I’ve found works consistently across both IIS 6 and II7.  In this simple snippet, you can see the simple function I crafted that works across both current versions of IIS. function Restart-IISAppPool { param( $PoolName ) if (Test-Path…

Read More

Using Powershell to apply new C# field naming conventions

I recently found myself wanting to rename all the fields in several large projects to conform to a new naming scheme.  Sadly Resharper was not helpful here, so I turned to a combination of Regex and Powershell.  Our team has recently revised our 7 year-old coding guidelines.  One of the guidelines that was changed concerned…

Read MoreView 67 Comments

The trials and tribulations of using MSDeploy with PowerShell

I can sum my experience with trying to use MSDeploy and Powershell together with a single word: hell.  MSDeploy.exe does not play nicely with PowerShell, but thanks to some help from James and a lot of trial-and-error, I’ve got it sort-of working now.  Here’s a tail of my journey.  Hopefully you, brave reader, will learn…

Read MoreView 20 Comments

Merging and minimizing JavaScript files with YUI Compressor and PowerShell

One of the tenants of liteGrid is that it’s modular, with the core doing as little as possible, and all the richness being layered on top by various pluggable modules.  These modules are currently spread across multiple files (one per module).  As liteGrid gets closer to “production,” it became time to merge things into a…

Read More

Setting Directory Permissions with Windows PowerShell

In my on-going attempts to simplify the deployment of our web application here at Day Job, I have created a PowerShell script that sets the permissions on all the directories used by the app.  It’s amazing how much simpler something like this is in PowerShell compared to VBScript.   Here’s some code that will give the…

Read More