Skip to content

Instantly share code, notes, and snippets.

cinst dotnet4.7 --yes --accept-license --version=4.7.2053.0
choco pin add -n=GoogleChrome
@mwrock
mwrock / 7zip
Last active June 20, 2017 05:44
cinst 7zip.install
$packageArgs = @{
packageName = 'fiddler4'
fileType = 'EXE'
url = 'https://www.telerik.com/docs/default-source/fiddler/fiddlersetup.exe'
checksum = 'E3836DFB9F18F25A6A5B544CC35CFE2712F94C96425665298621C74971479B8F'
checksumType = 'sha256'
silentArgs = '/S'
validExitCodes = @(0)
softwareName = 'fiddler*'
}
$ErrorActionPreference = "Stop"
. a:\Test-Command.ps1
Write-BoxstarterMessage "Enabling RemoteDesktop"
Enable-RemoteDesktop
Write-BoxstarterMessage "Setting PowerShell Policy to RemoteSigned"
Update-ExecutionPolicy -Policy RemoteSigned
write-output "$([IntPtr]::size -eq 4)"
$obj = Get-WmiObject -Class "Win32_TerminalServiceSetting" -Namespace root\cimv2\terminalservices
$obj.SetAllowTsConnections(1,1)
netsh advfirewall firewall add rule name="Remote Desktop" dir=in localport=3389 protocol=TCP action=allow
# encoding: UTF-8
#
# Copyright 2014 Max Lincoln <[email protected]>
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
Write-Host "VP: $VerbosePreference"
C:\dev\choco_tests\test-A.1.0> choco install test-a -y --ignore-package-exit-codes --debug --source .
Chocolatey is running on Windows v 10.0.10586.0
Command line: "C:\ProgramData\chocolatey\choco.exe" install test-a -y --ignore-package-exit-codes --debug --source .
Received arguments: install test-a -y --ignore-package-exit-codes --debug --source .
The source '.' evaluated to a 'normal' source type
NOTE: Hiding sensitive configuration data! Please double and triple
check to be sure no sensitive data is shown, especially if copying
output to a gist for review.
Configuration: CommandName='install'|