Skip to content

Instantly share code, notes, and snippets.

node('windows')
{
def buildnumber ="${env:BUILD_NUMBER}"
def nugetApiKey = 'API-7HH5N7EFAOFFMRG6KZSTCBWJ2A0>'
def nugetServer = 'http://ie1opsoctopus01.northeurope.cloudapp.azure.com'
def nugetPackages = 'http://ie1opsoctopus01.northeurope.cloudapp.azure.com/nuget/packages'
def nuget = "\"${WORKSPACE}\\.nuget\\nuget.exe\""
@pavkhural
pavkhural / winrm_setup.ps1
Created February 2, 2017 16:47
winrm setup
$testwinrm = Test-WSMan localhost -ErrorAction Ignore` ; if ($testwinrm -eq $null) {winrm create winrm/config/Listener?Address=*+Transport=HTTP}
Set-Item -Path WSMan:\localhost\Shell\MaxMemoryPerShellMB -Value "1024" -Force
Set-Item -Path wsman:\localhost\Client\TrustedHosts -Value * -Force
Set-Item -Path wsman:\localhost\Client\Auth\\Basic -Value $true -Force
set-item -Path wsman:\localhost\Service\Auth\\Basic -Value $true -Force
Set-Item -Path wsman:\localhost\Service\AllowUnencrypted -Value $true -Force
# Setup Firewall rules