Skip to content

Instantly share code, notes, and snippets.

View lholman's full-sized avatar

Lloyd Holman lholman

View GitHub Profile
@lholman
lholman / basicWindowsBoxStarterScript.txt
Last active December 11, 2019 08:19
Basic Windows BoxStarter Script
#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
@lholman
lholman / corpBoxStarter
Created November 20, 2017 11:28
corpBoxStarter
#http://boxstarter.org/package/nr/url?
choco install visualstudiocode
choco install pester
choco install poshgit
choco install keepass
@lholman
lholman / developerWindowsBoxStarterScript.txt
Last active July 27, 2017 14:55
Developer Windows BoxStarter Script
#http://boxstarter.org/package/nr/url?
choco install git
choco install visualstudiocode
choco install pester
choco install poshgit
choco install googlechrome
choco install powershell

Keybase proof

I hereby claim:

  • I am lholman on github.
  • I am lloydholman (https://keybase.io/lloydholman) on keybase.
  • I have a public key ASA5EOBDmwxkBk_2RCPnBCA3uXvHjFXdlRlEV3aykkVjFQo

To claim this, I am signing this object:

@lholman
lholman / ServerSnapshot.ps1
Created October 10, 2013 10:01
Provides a quick way to list and save to file Windows Feature configuration, installed Hotfixes and installed programs (originally from here http://bit.ly/t2Ofi0) on a Windows Server, tested on Windows 2008 R2 Save as ServerSnapshot.ps1 and run using PS C:\>.\ServerSnapshot.ps1
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)

Talk Title

Talk Synopsis (300 chars)

Audience Level (All, Beginner, Intermediate, Expert

Public Abstract (2000 chars)

Description (2000 chars)

bcdedit /set hypervisorlaunchtype off
#bcdedit /set hypervisorlaunchtype auto
@lholman
lholman / Set-BuildNumber.ps1
Last active May 9, 2016 11:41
A psake task for managing assembly versioning in .NET applications
#*================================================================================================
#* 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
@lholman
lholman / gist:4121d852581557a863bb
Last active April 8, 2016 15:09
Handy DSC scripts
$dscProcessID = Get-WmiObject msft_providers | Where-Object {$_.provider -like 'dsccore'} | Select-Object -ExpandProperty HostProcessIdentifier
Get-Process -Id $dscProcessID | Stop-Process
Get-WmiObject msft_providers | Select-Object -Property Provider, HostProcessIdentifier
#Often we see that the Provider 'WMIEventProv' is left locking files too
@lholman
lholman / Get-Url.psm1
Created January 15, 2014 13:31
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
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