Skip to content

Instantly share code, notes, and snippets.


Gavin Eke GavinEke

View GitHub Profile
GavinEke / NetTCPIP.Polyfill.ps1
Last active Nov 1, 2017
Example Polyfill, for text parsing example please look at previous versions
View NetTCPIP.Polyfill.ps1
If (-not (Get-Command Get-NetAdapter -ErrorAction SilentlyContinue)) {
Function global:Get-NetAdapter {
Begin {
$x = Get-WmiObject -Class Win32_NetworkAdapter -Filter 'NetEnabled=true'
Process {
ForEach ($Item in $x) {
InterfaceName = $Item.Name
View Disable-Unused2016Services.ps1
Disables services not required in Windows Server 2016.
Disables services not required to increase security of the system.
.PARAMETER ComputerName
You can’t perform that action at this time.