Skip to content

Instantly share code, notes, and snippets.

View jhochwald's full-sized avatar
🤙

Joerg Hochwald jhochwald

🤙
View GitHub Profile
@jhochwald
jhochwald / WindowsUpdatePowerShell.ps1
Last active May 8, 2018 21:21 — forked from ned1313/WindowsUpdatePowerShell.ps1
Refactored Version, because a friend request it from me.
<#
WindowsUpdatePowerShell script
Written by Ned Bellavance with functions borrowed from Brian White and the
WindowsUpdate module written by Michal Gajda. This script is meant to automate
the installation of Windows Updates on a brand new system. This is not a
replacement for WSUS or SCCM or anything centrally managed. It installs all
available, required Windows Updates until there are none left. It will
require an internet connection, of course, and local Administrator credentials.
The script is run without parameters. Logs are written out to the
@jhochwald
jhochwald / Grant-LogOnAsService.ps1
Last active March 7, 2018 02:25 — forked from ned1313/Grant-LogOnAsService
Grant user array log on as a service right in PowerShell (Refactored version)
function Grant-LogOnAsService
{
<#
.SYNOPSIS
Grant user log on as a service right in PowerShell
.DESCRIPTION
Grant user log on as a service right in PowerShell
.PARAMETER Users
@jhochwald
jhochwald / Get-GPMissingPermissionsGPOs.ps1
Last active January 2, 2019 01:22 — forked from OmerMicrosoft/Get-GPMissingPermissionsGPOs.ps1
Find Group Policies with Missing Permissions
function Get-GPMissingPermissionsGPOs
{
<#
.SYNOPSIS
Find Group Policy Objects with missing permissions
.DESCRIPTION
Find Group Policy Objects do not grant any permissions to the 'Authenticated Users' or 'Domain Computers' groups
.EXAMPLE
@jhochwald
jhochwald / New-ADDnsServerConditionalForwarderZone.ps1
Last active January 2, 2019 01:24 — forked from OmerMicrosoft/Add-DnsServerConditionalForwarderZone.ps1
Create a DNS Conditional Forwarder as an Active Directory Integrated Zone
function New-ADDnsServerConditionalForwarderZone
{
<#
.SYNOPSIS
Create a DNS Conditional Forwarder as an Active Directory Integrated Zone
.DESCRIPTION
Create a DNS Conditional Forwarder as an Active Directory Integrated Zone
.PARAMETER Name
@jhochwald
jhochwald / ModuleFast.ps1
Last active November 10, 2022 19:43 — forked from JustinGrote/ModuleFast.ps1
A high performance Powershell Gallery Module Installer
#requires -version 4.0
<#
.SYNOPSIS
High Performance Powershell Module Installation
.DESCRIPTION
This is a proof of concept for using the Powershell Gallery OData API and HTTPClient to parallel install packages
It is also a demonstration of using async tasks in powershell appropriately. Who says powershell can't be fast?
This drastically reduces the bandwidth/load against Powershell Gallery by only requesting the required data
@jhochwald
jhochwald / Windows Defender Exclusions VS 2022.ps1
Last active November 21, 2022 13:20 — forked from Braytiner/Windows Defender Exclusions VS 2022.ps1
Adds Windows Defender exclusions for Visual Studio 2022
$pathExclusions = (New-Object -TypeName System.Collections.ArrayList)
$processExclusions = (New-Object -TypeName System.Collections.ArrayList)
$null = $pathExclusions.Add($env:windir + '\Microsoft.NET')
$null = $pathExclusions.Add($env:windir + '\assembly')
#$null = $pathExclusions.Add($env:USERPROFILE + '\Downloads\HeidiSQL_11.3_64_Portable')
$null = $pathExclusions.Add($env:USERPROFILE + '\.dotnet')
$null = $pathExclusions.Add($env:USERPROFILE + '\.nuget')
@jhochwald
jhochwald / windows_hardening.cmd
Created November 27, 2022 19:47 — forked from mackwage/windows_hardening.cmd
Script to perform some hardening of Windows OS
:: Windows 10 Hardening Script
:: This is based mostly on my own personal research and testing. My objective is to secure/harden Windows 10 as much as possible while not impacting usability at all. (Think being able to run on this computer's of family members so secure them but not increase the chances of them having to call you to troubleshoot something related to it later on). References for virtually all settings can be found at the bottom. Just before the references section, you will always find several security settings commented out as they could lead to compatibility issues in common consumer setups but they're worth considering.
:: Obligatory 'views are my own'. :)
:: Thank you @jaredhaight for the Win Firewall config recommendations!
:: Thank you @ricardojba for the DLL Safe Order Search reg key!
:: Thank you @jessicaknotts for the help on testing Exploit Guard configs and checking privacy settings!
:: Best script I've found for Debloating Windows 10: https://github.com/Sycnex/Windows10Debloater
: