This file contains hidden or 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
###################################################### | |
## Boxstarter Dev box install script | |
###################################################### | |
# Instructions: | |
# | |
# To run this, use Internet Exploder and go to http://boxstarter.org/package/url?https://raw.githubusercontent.com/<UPDATE> | |
# more instructions at http://boxstarter.org/LearnWebLauncher | |
###################################################### |
This file contains hidden or 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
cinst 7zip | |
$env:Path = [System.Environment]::GetEnvironmentVariable("Path","Machine") | |
$rubyExeFilePath = (Get-Command ruby.exe).Path | |
get-module -listavailable | |
Write-Host $env:PSModulePath | |
Import-Module NetSecurity |
This file contains hidden or 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
require 'json' | |
module Promote | |
class Versioner | |
def initialize(config = Config.new) | |
@config = config | |
end | |
def version_cookbook(cookbook_name) | |
cookbook = Cookbook.new(cookbook_name, config) |
This file contains hidden or 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
if(!(Test-Path "$home\test1.txt")) { | |
new-Item $home\test1.txt -value "hi1" -type file | |
write-host "reboot 1" | |
return Invoke-Reboot | |
} | |
if(!(Test-Path "$home\test2.txt")) { | |
new-Item $home\test2.txt -value "hi1" -type file | |
write-host "reboot 2" | |
return Invoke-Reboot | |
} |
This file contains hidden or 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
write-host "hi" |
This file contains hidden or 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
def transport_for(machine_spec, machine_options, vm) | |
if is_windows?(vm) | |
create_winrm_transport(machine_spec, machine_options, vm) | |
else | |
create_ssh_transport(machine_spec, machine_options, vm) | |
end | |
end | |
def create_winrm_transport(machine_spec, machine_options, vm) | |
require 'chef_metal/transport/winrm' |
This file contains hidden or 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 Assert-Authentication { | |
[CmdletBinding()] | |
param( | |
[switch]$Force | |
) | |
if(!$script:AuthSession -Or $Force) { | |
$creds = Get-CLCAPICredentials -ActiveCredential | |
if(!$Creds){ |
This file contains hidden or 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
>>>>>> ------Exception------- | |
>>>>>> Class: Kitchen::ActionFailed | |
>>>>>> Message: Failed to complete #converge action: [{:from=>"C:/Users/Matt/AppData/Local/Temp/winrm_upload20141228-27984-1tdcu5e.zip", :to=>"/tmp/kitchen", :message=>"#< CLIXML\r\nC:\\Users\\Administrator\\AppData\\Local\\Temp\\tmp35CE.tmp\r\n<Objs Version=\"1.1.0.1\" xmlns=\"http://schemas.microsoft.com/powershell/2004/04\"><S S=\"Error\">Exception calling \"Open\" with \"3\" argument(s): \"Access to the path _x000D__x000A_</S><S S=\"Error\">'C:\\tmp\\kitchen' is denied.\"_x000D__x000A_</S><S S=\"Error\">At line:8 char:11_x000D__x000A_</S><S S=\"Error\">+ $file = [System.IO.File]::Open($destFile,_x000D__x000A_</S><S S=\"Error\">+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~_x000D__x000A_</S><S S=\"Error\"> + CategoryInfo : NotSpecified: (:) [], MethodInvocationException_x000D__x000A_</S><S S=\"Error\"> + FullyQualifiedErrorId : UnauthorizedAccessException_x000D__x000A_</S><S S=\"Error\"> _x000D__x000A_</S><S S |
This file contains hidden or 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
$winLogonKey="HKLM:\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon" | |
@("DefaultUserName","DefaultDomainName","DefaultPassword","AutoAdminLogon") | % { | |
Remove-ItemProperty -Path $winLogonKey -Name $_ -ErrorAction SilentlyContinue | |
} |
This file contains hidden or 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
@{ | |
version = '11.0.1' | |
authors = @('Microsoft') | |
owners = @('Matt Wrock') | |
projectUrl = 'http://www.microsoft.com/visualstudio/11/en-us' | |
licenseUrl = 'http://msdn.microsoft.com/en-US/cc300389.aspx' | |
iconUrl = 'https://github.com/mwrock/Chocolatey-Packages/raw/master/VisualStudio2012Ultimate/vs.png' | |
id = 'VisualStudio2012Professional' | |
title = 'Visual Studio 2012 - Professional' | |
requireLicenseAcceptance = $false |