I hereby claim:
- I am jpogran on github.
- I am jpogran (https://keybase.io/jpogran) on keybase.
- I have a public key ASCgnFFYPtRZY8OAAB93zuJ8ETx86edRTERyKUHARTMPzgo
To claim this, I am signing this object:
| ##get the Domain Policy for the maximum password age | |
| $dom = [System.DirectoryServices.ActiveDirectory.Domain]::GetCurrentDomain() | |
| $root = $dom.GetDirectoryEntry() | |
| ## get the account policy | |
| $search = [System.DirectoryServices.DirectorySearcher]$root | |
| $search.Filter = "(objectclass=domainDNS)" | |
| $result = $search.FindOne() | |
| ## maximum password age |
| iex ((new-object net.webclient).DownloadString('https://chocolatey.org/install.ps1')) | |
| choco install ruby -version 2.1.5 -y -f | |
| $env:PATH += ";$env:SystemDrive\tools\ruby215\bin" | |
| choco install ruby2.devkit -y -f | |
| choco install curl -y -f | |
| $rubygems = &gem which rubygems | |
| $ssl_cert_location = $rubygems.Replace(".rb","/ssl_certs/AddTrustExternalCARoot-2048.pem") | |
| $ssl_cert_url = 'https://raw.githubusercontent.com/rubygems/rubygems/master/lib/rubygems/ssl_certs/AddTrustExternalCARoot-2048.pem' | |
| &curl.exe -k -o "$ssl_cert_location" "$ssl_cert_url" |
| # First attempt: | |
| export BEAKER_PUPPET_AGENT_VERSION='1.3.2' | |
| export GEM_SOURCE=http://rubygems.delivery.puppetlabs.net | |
| bundle install --without build development test --path .bundle/gems | |
| bundle exec beaker \ | |
| --hosts spec/acceptance/nodesets/windows-2012r2-x86_64.yml \ |
| # Powershell specific argument passing | |
| # You must be on the latest beta of chocolatey for this to work properly (redownload files) | |
| # Based on https://gist.github.com/ferventcoder/947479688d930e28d632 | |
| #TODO | |
| #uru 1.9.3 | |
| #gem sources -a http://rubygems.org | |
| #gem sources -r https://rubygems.org | |
| #gem update --system | |
| #gem sources -r http://rubygems.org |
| Vagrant.configure("2") do |config| | |
| config.vm.define "win2012r2" do |win2012r2| | |
| win2012r2.vm.box = "win2008r2-x64-vmwarefusion5-nocm" | |
| win2012r2.vm.hostname = "win2012r2" | |
| end | |
| # config.vm.define "win2012r2-orig" do |win2012r2| | |
| # win2012r2.vm.box = "windows2012r2_bare_nocm" | |
| # win2012r2.vm.hostname = "win2012r2" |
I hereby claim:
To claim this, I am signing this object:
| ################## | |
| # Privacy Settings | |
| ################## | |
| # Privacy: Let apps use my advertising ID: Disable | |
| Set-ItemProperty -Path HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\AdvertisingInfo -Name Enabled -Type DWord -Value 0 | |
| # To Restore: | |
| #Set-ItemProperty -Path HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\AdvertisingInfo -Name Enabled -Type DWord -Value 1 | |
| # Privacy: SmartScreen Filter for Store Apps: Disable | |
| Set-ItemProperty -Path HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\AppHost -Name EnableWebContentEvaluation -Type DWord -Value 0 |
| { | |
| "breadcrumbs.enabled": true, | |
| "breadcrumbs.filePath": "off", | |
| "breadcrumbs.symbolPath": "on", | |
| "editor.dragAndDrop": false, | |
| "editor.emptySelectionClipboard": false, | |
| "editor.fontFamily": "'FuraCode NF Retina Medium', 'Fira Code Retina Medium', Consolas, 'Courier New', monospace", | |
| "editor.fontSize": 14, | |
| "editor.fontLigatures": true, | |
| "editor.insertSpaces": true, |
| $LogName = 'Application' | |
| $pathType = [System.Diagnostics.Eventing.Reader.PathType]::LogName; | |
| $xpath = @" | |
| <QueryList> | |
| <Query Id="0" Path="Application"> | |
| <Select Path="Application">*</Select> | |
| </Query> | |
| </QueryList> | |
| "@ |
| define dsc::lcm_config ( | |
| $refresh_mode = 'Disabled' | |
| ) { | |
| validate_re($refresh_mode, '^(Disabled|Push)$', 'refresh_mode must be one of \'Disabled\', \'Push\'') | |
| exec { "dsc_provider_set_lcm_refreshmode_${refresh_mode}": | |
| provider => 'powershell', | |
| onlyif => "if ((Get-DscLocalConfigurationManager).RefreshMode -eq '${refresh_mode}') {exit 1} else {exit 0}", | |
| command => template('dsc/set-lcm-mode.ps1.erb'), |