Skip to content

Instantly share code, notes, and snippets.

Gavin Eke GavinEke

Block or report user

Report or block GavinEke

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@GavinEke
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) {
[PSCustomObject]@{
InterfaceName = $Item.Name
View Disable-Unused2016Services.ps1
<#
.SYNOPSIS
Disables services not required in Windows Server 2016.
.DESCRIPTION
Disables services not required to increase security of the system.
.PARAMETER ComputerName
You can’t perform that action at this time.