Skip to content

Instantly share code, notes, and snippets.

Avatar

Joerg Hochwald jhochwald

View GitHub Profile
@jhochwald
jhochwald / New-ADDnsServerConditionalForwarderZone.ps1
Last active Jan 2, 2019 — forked from OmerMicrosoft/Add-DnsServerConditionalForwarderZone.ps1
Create a DNS Conditional Forwarder as an Active Directory Integrated Zone
View New-ADDnsServerConditionalForwarderZone.ps1
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 / Get-GPMissingPermissionsGPOs.ps1
Last active Jan 2, 2019 — forked from OmerMicrosoft/Get-GPMissingPermissionsGPOs.ps1
Find Group Policies with Missing Permissions
View Get-GPMissingPermissionsGPOs.ps1
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 / Grant-LogOnAsService.ps1
Last active Mar 7, 2018 — forked from ned1313/Grant-LogOnAsService
Grant user array log on as a service right in PowerShell (Refactored version)
View Grant-LogOnAsService.ps1
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 / WindowsUpdatePowerShell.ps1
Last active May 8, 2018 — forked from ned1313/WindowsUpdatePowerShell.ps1
Refactored Version, because a friend request it from me.
View WindowsUpdatePowerShell.ps1
<#
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