As part of a bigger project to automate certain IIS and SQL tasks I am posting the latest section which enables you to change the Recovery model of a Database from Powershell.

It assumes the current credentials have access to SQL and I am going to work on improving it a bit around the servername and instancename, but it works OK as is:

Just needs to be saved as a .ps1 script as usual: eg recoverymodel.ps1

###############################################################################

#SQL Change recovery model
#Created by: Steve Conisbee
#Version: 1.0
#Date 27/09/2013

[System.Reflection.Assembly]::LoadWithPartialName('Microsoft.SqlServer.SMO') | out-null

$ErrorActionPreference = "Inquire"

$instance=read-host "Enter Servername. If named instance, please enter: Servername/Instancename"
$recoverymodel=read-host "Enter desired Recovery Model: eg Full/Simple/Bulk-Logged"
$db=read-host "Enter Database name"

$smo=new-object Microsoft.sqlserver.management.smo.server $Instance
$smo.databases["$db"].recoverymodel = "$recoverymodel"
$smo.databases["$db"].alter()

write-host $db "Database set to" $recoverymodel "Recovery model"

###############################################################################