This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function Add-IISSite{ | |
<# | |
.SYNOPSIS | |
A powershell module to add an IIS website and app pool to a specified server | |
.DESCRIPTION | |
A powershell module to add an IIS website and app pool to a specified server | |
.NOTES | |
Author: Lloyd Holman | |
DateCreated: 17/01/2013 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function Remove-IISSite{ | |
<# | |
.SYNOPSIS | |
A powershell module to remove a specific IIS website and app pool from a specified server | |
.DESCRIPTION | |
A powershell module to remove a specific IIS website and app pool from a specified server | |
.NOTES | |
Author: Lloyd Holman | |
DateCreated: 17/01/2013 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#*================================================================================================ | |
#* Purpose: Sets the full build number ([major].[minor].[build].[revision]) in a consistent global way | |
#* for all builds. We purposefully only use TeamCity to generate the incrementing [build] number. | |
#* Set | |
#*================================================================================================ | |
Task Set-BuildNumber { | |
$major = "1" | |
$minor = "0" | |
#Get buildCounter passed in from TeamCity, if not use zero |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function Get-InstalledPrograms() { | |
$array = @() | |
$computername="$env:computername" | |
#Define the variable to hold the location of Currently Installed Programs | |
$UninstallKey="SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Uninstall" | |
#Create an instance of the Registry Object and open the HKLM base key | |
$reg=[microsoft.win32.registrykey]::OpenRemoteBaseKey('LocalMachine',$computername) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function Remove-ChildFolders{ | |
<# | |
.SYNOPSIS | |
Removes a parentPath or selective child paths based on a supplied pattern. | |
.DESCRIPTION | |
Removes a parentPath or selective child paths based on a supplied pattern, optionally accepts a PSSession object to support execution on a remote server using PSRemoting. | |
.NOTES | |
Author: Lloyd Holman |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function New-HyperVVMFromISO{ | |
<# | |
.SYNOPSIS | |
Creates a new Hyper-V VM (within the local machines Hyper-V instance), uses sensible defaults that can be optionally overridden and finally boots from a defined ISO file. | |
.DESCRIPTION | |
Creates a new Hyper-V VM (within the local machines Hyper-V instance), uses sensible defaults that can be optionally overridden and finally boots from a defined ISO file. | |
Given the -Force parameter this module will tear down any existing VM's and VHD's, prior to adding the new VM with the same name. | |
Credits: Takes inspiration from http://www.deploymentresearch.com/Research/tabid/62/EntryId/129/Script-to-build-a-VM-in-Hyper-V-and-boot-from-an-ISO.aspx and adds some more convention and error handling. | |
.NOTES |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function Get-Url{ | |
<# | |
.SYNOPSIS | |
Performs an HTTP GET for a supplied URL | |
.DESCRIPTION | |
Performs an HTTP GET for a supplied URL, optionally using a supplied hostname and also optionally returning the HTTP statuscode as opposed to response content | |
.NOTES | |
Requirements: Copy this module to any location found in $env:PSModulePath |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#http://boxstarter.org/package/nr/url? | |
Set-WindowsExplorerOptions -EnableShowHiddenFilesFoldersDrives -EnableShowProtectedOSFiles -EnableShowFileExtensions -EnableShowFullPathInTitleBar | |
choco install Microsoft-Hyper-V-All -source windowsFeatures | |
choco install googlechrome | |
choco install dropbox | |
choco install 1password | |
choco install wunderlist | |
choco install notepadplusplus | |
choco install MicrosoftSecurityEssentials | |
choco install git |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#http://boxstarter.org/package/nr/url? | |
choco install git | |
choco install visualstudiocode | |
choco install pester | |
choco install poshgit | |
choco install googlechrome | |
choco install powershell |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#Original instructions courtesy of 'Run Jekyll on Windows' http://jekyll-windows.juthilo.com/ and https://gist.github.com/luislavena/f064211759ee0f806c88 | |
#Install Ruby and Ruby.DevKit using BoxStarter and Chocolatey | |
START http://boxstarter.org/package/nr/url?https://gist.githubusercontent.com/lholman/f6f789cfd1dc994fd707/raw/fadb7634f275ee8f6486b60bb36c49326457d081/developerWindowsBoxStarterScript.txt | |
#Config Ruby and Ruby.DevKit | |
cd c:\tools\DevKit | |
ruby dk.rb init | |
Add-Content .\config.yml "`n- C:/tools/DevKit" | |
runy dk.rb install |
OlderNewer