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
********************** | |
Windows PowerShell Transcript Start | |
Start time: 20140416201911 | |
Username : S9T-JB\jberezanski | |
Machine : S9T-JB (Microsoft Windows NT 6.1.7601 Service Pack 1) | |
********************** | |
Transcript started, output file is .\choco-update2.log | |
PS C:\> C:\Chocolatey\chocolateyinstall\chocolatey.ps1 install elevate.native -debug | |
DEBUG: Running 'Chocolatey-Install' for elevate.native with source: '', version: '', installerArguments:'' | |
DEBUG: Running 'Chocolatey-NuGet' for elevate.native with source:''. Force? False |
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
#Requires -Version 3 | |
$ErrorActionPreference = 'Stop' | |
Set-StrictMode -Version 3 | |
# setup Chocolatey and apply patches | |
Write-Host 'Installing Chocolatey' | |
$Env:ChocolateyInstall = "$Env:SystemDrive\chocolatey" | |
$Env:ChocolateyBinRoot = "$Env:ChocolateyInstall\tools" | |
[Environment]::SetEnvironmentVariable('ChocolateyInstall', $Env:ChocolateyInstall, 'Machine') |
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
namespace Test | |
{ | |
using System; | |
using System.Linq; | |
class Program | |
{ | |
public static void Main(string[] args) | |
{ | |
// pipe buffers seem to be around 4100 bytes on my system |
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
using System; | |
using System.Collections.Generic; | |
using System.Collections.ObjectModel; | |
using System.IO; | |
using System.IO.Compression; | |
using System.Linq; | |
using System.Management.Automation; | |
using System.Text; | |
using System.Xml; | |
using System.Xml.Linq; |
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 Grant-Permissions | |
{ | |
[CmdletBinding()] Param([string] $Path, [hashtable] $Grants, [switch] $BlockInheritance, [switch] $CopyInheritedRights, [switch] $RemoveAllExistingPermissions, [string] $Inheritance = 'ObjectInherit,ContainerInherit') | |
Resolve-Path $Path | |
$acl = (Get-Item $Path).GetAccessControl('Access') | |
if ($BlockInheritance) { $acl.SetAccessRuleProtection($true, $false) } | |
if ($RemoveAllExistingPermissions) { $acl.Access | % { $acl.RemoveAccessRuleAll($_) } } | |
$Grants.GetEnumerator() | % { $acl.AddAccessRule((New-Object Security.AccessControl.FileSystemAccessRule $($_.Key),$($_.Value),$Inheritance,'None','Allow')) } | |
(Get-Item $Path).SetAccessControl($acl) | |
(Get-Acl $Path).Access | Format-Table -AutoSize | Out-String |
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
[CmdletBinding()] | |
Param ( | |
[Parameter(Mandatory = $true)] | |
$targetComputer | |
) | |
workflow repro | |
{ | |
Param ( | |
[string] $EAP = 'Stop' |
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
C:\> cinst -force -verbose -debug rsat | |
!!ATTENTION!! | |
The next version of Chocolatey (v0.9.9) will require -y to perform | |
behaviors that change state without prompting for confirmation. Start | |
using it now in your automated scripts. | |
For details on the all new Chocolatey, visit http://bit.ly/new_choco | |
VERBOSE: Loading module from path 'C:\ProgramData\chocolatey\chocolateyinstall\helpers\chocolateyInstaller.psm1'. | |
VERBOSE: Importing function 'Get-BinRoot'. | |
VERBOSE: Importing function 'Get-CheckSumValid'. |
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
MICROSOFT SOFTWARE LICENSE TERMS | |
MICROSOFT REMOTE DESKTOP CONNECTION MANAGER NONE | |
These license terms are an agreement between Microsoft Corporation (or based on where you live, one of its affiliates) and you. Please read them. They apply to the software named above, which includes the media on which you received it, if any. The terms also apply to any Microsoft | |
· updates, | |
· supplements, | |
· Internet-based services, and | |
· support services | |
for this software, unless other terms accompany those items. If so, those terms apply. | |
By using the software, you accept these terms. If you do not accept them, do not use the software. | |
If you comply with these license terms, you have the rights below. |
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
using System; | |
using Castle.Facilities.TypedFactory; | |
using Castle.MicroKernel.Registration; | |
using Castle.Windsor; | |
namespace WindsorFactories | |
{ | |
class Program | |
{ | |
static void Main(string[] args) |
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-TargetResource | |
{ | |
[CmdletBinding()] | |
[OutputType([System.Collections.Hashtable])] | |
param | |
( | |
[parameter(Mandatory = $true)] | |
[System.String] | |
$Name, |
OlderNewer