Skip to content

Instantly share code, notes, and snippets.

# Logfile created on 2018-04-23 11:48:31 -0500 by logger.rb/56815
I, [2018-04-23T11:48:31.337915 #20560] INFO -- : Language Server is v0.0.1
I, [2018-04-23T11:48:31.337915 #20560] INFO -- : Using Puppet v5.5.1
I, [2018-04-23T11:48:31.337915 #20560] INFO -- : Initializing Puppet Helper Cache...
I, [2018-04-23T11:48:31.337915 #20560] INFO -- : Initializing settings...
I, [2018-04-23T11:48:31.338943 #20560] INFO -- : Starting RPC Server...
D, [2018-04-23T11:48:31.342914 #20560] DEBUG -- : TCPSRV: Services running. Press ^C to stop
D, [2018-04-23T11:48:31.342914 #20560] DEBUG -- : TCPSRV: Started listening on 127.0.0.1:50089.
D, [2018-04-23T11:48:31.343414 #20560] DEBUG -- : TCPSRV: Will stop the server in 10 seconds if no connection is made.
I, [2018-04-23T11:48:31.348915 #20560] INFO -- : Using Facter v3.11.1
# Logfile created on 2018-04-23 11:47:18 -0500 by logger.rb/56815
I, [2018-04-23T11:47:18.735108 #23868] INFO -- : Language Server is v0.0.1
I, [2018-04-23T11:47:18.735108 #23868] INFO -- : Using Puppet v5.5.1
I, [2018-04-23T11:47:18.735108 #23868] INFO -- : Initializing Puppet Helper Cache...
I, [2018-04-23T11:47:18.735108 #23868] INFO -- : Initializing settings...
I, [2018-04-23T11:47:18.736108 #23868] INFO -- : Starting RPC Server...
D, [2018-04-23T11:47:18.739108 #23868] DEBUG -- : TCPSRV: Services running. Press ^C to stop
D, [2018-04-23T11:47:18.742639 #23868] DEBUG -- : TCPSRV: Started listening on 127.0.0.1:49888.
D, [2018-04-23T11:47:18.742639 #23868] DEBUG -- : TCPSRV: Will stop the server in 10 seconds if no connection is made.
I, [2018-04-23T11:47:18.744607 #23868] INFO -- : Using Facter v3.11.1
type Timezone_win::Timezone = Enum[
'Dateline Standard Time','Aleutian Standard Time','Hawaiian Standard Time','Marquesas Standard Time',
'Alaskan Standard Time','Pacific Standard Time (Mexico)','Pacific Standard Time',
'US Mountain Standard Time','Mountain Standard Time (Mexico)','Mountain Standard Time','Central America Standard Time',
'Central Standard Time','Easter Island Standard Time','Central Standard Time (Mexico)','Canada Central Standard Time',
'SA Pacific Standard Time','Eastern Standard Time (Mexico)','Eastern Standard Time','Haiti Standard Time',
'Cuba Standard Time','US Eastern Standard Time','Paraguay Standard Time','Atlantic Standard Time','Venezuela Standard Time',
'Central Brazilian Standard Time','SA Western Standard Time','Pacific SA Standard Time','Turks And Caicos Standard Time',
'Newfoundland Standard Time','Tocantins Standard Time','E. South America Standard Time','SA Eastern Standard Time',
'Argentina Standard Time','Greenland Standard Time','Montevideo Standard Time
@rsteenwyk
rsteenwyk / check-dns-servers.ps1
Created March 15, 2018 01:40
DNS Client Manifest with Server 2008 r2 support
#Take in the string environment variable Puppet sets for us, remove [ and ], whitespace and split on ,
[array]$dnsarray = $env:dnsservers -replace '[][]','' -replace '\s','' -split ','
#We need to search registry for the connection name - prior to 2012 there is no WMI class with this info.
$Searchpath = Get-ChildItem HKLM:\SYSTEM\CurrentControlSet\Control\Network\ -Recurse
$NetworkReg = $Searchpath | ForEach-Object { Get-ItemProperty $_.pspath} | Where-Object {$_.Name -eq $env:ifname}
#Correlete adapter to connection name with PnpInstanceID, then AdapterConfiguration with the adapter interfaceindex.
$Adapter = Get-WmiObject -Class Win32_NetworkAdapter | Where-Object {$_.PNPDeviceID -eq $NetworkReg.PnpInstanceID}
$AdapterConfig = Get-WmiObject -Class win32_networkadapterconfiguration -Filter "ipenabled = 'true'" -ComputerName localhost | Where-Object {$_.InterfaceIndex -eq $Adapter.InterfaceIndex }

Keybase proof

I hereby claim:

  • I am rsteenwyk on github.
  • I am godtoldmetodoit (https://keybase.io/godtoldmetodoit) on keybase.
  • I have a public key whose fingerprint is 5E2A D077 2057 E42C 3B8F CA42 7C59 2A87 1153 8694

To claim this, I am signing this object: