Skip to content

Instantly share code, notes, and snippets.

Joerg Hochwald jhochwald

Block or report user

Report or block jhochwald

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
@jhochwald
jhochwald / tweak_vimrc.sh
Created Nov 5, 2019
Disable vim automatic visual mode on mouse select
View tweak_vimrc.sh
# Create File if needed
touch ~/.vimrc
# enable Backspace workaround
echo "set bs=2" > ~/.vimrc
# if you have an existing ~/.vimrc - use >> instead of > to prevent overwriting
# Disable vim automatic visual mode on mouse select
echo "set mouse-=a" >> ~/.vimrc
@jhochwald
jhochwald / Get-LocalGroupMembership.ps1
Created Sep 29, 2019
Get all local Groups a given User is a Member of
View Get-LocalGroupMembership.ps1
function Get-LocalGroupMembership
{
<#
.SYNOPSIS
Get all local Groups a given User is a Member of
.DESCRIPTION
The the the membership of all local Groups for a given User.
The Given User could be a local User (COMPUTER\USER) or a Domain User (DOMAIN\USER).
@jhochwald
jhochwald / Set-ChromeDefaultPreferences.ps1
Created Sep 16, 2019
Change the Google Chrome config to some defaults. Chromium or any other Chromium based browsers are not yet supported. Tested on Windows and macOS
View Set-ChromeDefaultPreferences.ps1
<#
.SYNOPSIS
Change the Google Chrome config to some defaults
.DESCRIPTION
Change the Google Chrome config to some defaults.
Chromium or any other Chromium based browsers are not yet supported.
.PARAMETER Profile
Name of the Google Chrome Profile.
@jhochwald
jhochwald / Get-enMailboxSendAsReport.ps1
Created Sep 14, 2019
Get a detailed mailbox permission report and exports this report to a given CSV file. You can select only usermailboxes, only sharedmailboxes or both for the reporting.
View Get-enMailboxSendAsReport.ps1
function Get-enMailboxSendAsReport
{
<#
.SYNOPSIS
Get a detailed mailbox permission report
.DESCRIPTION
Get a detailed mailbox permission report and exports this report to a given CSV file.
You can select only usermailboxes, only sharedmailboxes or both for the reporting.
@jhochwald
jhochwald / Get-enMailboxPermissionReport.ps1
Created Sep 14, 2019
Get a detailed mailbox permission report and exports this report to a given CSV file. You can select only usermailboxes, only sharedmailboxes or both for the reporting.
View Get-enMailboxPermissionReport.ps1
function Get-enMailboxPermissionReport
{
<#
.SYNOPSIS
Get a detailed mailbox permission report
.DESCRIPTION
Get a detailed mailbox permission report and exports this report to a given CSV file.
You can select only usermailboxes, only sharedmailboxes or both for the reporting.
@jhochwald
jhochwald / Get-enMailboxFolderPermissionReport.ps1
Last active Sep 14, 2019
Get a detailed mailbox folder permission report and exports this report to a given CSV file. You can select only usermailboxes, only sharedmailboxes or both for the reporting.
View Get-enMailboxFolderPermissionReport.ps1
function Get-enMailboxFolderPermissionReport
{
<#
.SYNOPSIS
Get a detailed mailbox folder permission report
.DESCRIPTION
Get a detailed mailbox folder permission report and exports this report to a given CSV file.
You can select only usermailboxes, only sharedmailboxes or both for the reporting.
@jhochwald
jhochwald / Convert-HolidayFromApiToCsAutoAttendantHolidays.ps1
Created Sep 9, 2019
Get German Holidays via API and export them to CSV for Skype for Business (Online). We use the German service feiertage-api.de to fetch the list, that is a great wrapper for the German Holidays published on Wikipedia.
View Convert-HolidayFromApiToCsAutoAttendantHolidays.ps1
<#
.SYNOPSIS
Get German Holidays via API and export them to CSV for Skype for Business (Online).
.DESCRIPTION
Get German Holidays via API and export them to CSV for Skype for Business (Online).
We use the German service feiertage-api.de to fetch the list, that is a great wrapper for the German Holidays published on Wikipedia.
.PARAMETER State
The german state
@jhochwald
jhochwald / Default_MicrosoftTeams_DesktopConfig.ps1
Created Aug 10, 2019
Microsoft Teams Client customisation settings via PowerShell
View Default_MicrosoftTeams_DesktopConfig.ps1
<#
.SYNOPSIS
Microsoft Teams Client customisation settings via PowerShell
.DESCRIPTION
Microsoft Teams Client customisation settings via PowerShell
.EXAMPLE
PS C:\> .\Default_MicrosoftTeams_DesktopConfig.ps1
@jhochwald
jhochwald / unifi_controller_update.sh
Created Aug 10, 2019
Download a new UniFi Controller Firmware and install it
View unifi_controller_update.sh
#!/usr/bin/env bash
# Download a new UniFi Controller Firmware and install it
# Used to to automate the installation of newer controller firmware on a UniFi Cloud Key
# Author: Joerg Hochwald
# Copyright: Copyright (c) 2019, Joerg Hochwald - All rights reserved.
# LICENSE: License: https://opensource.org/licenses/BSD-3-Clause
# THIS CODE IS MADE AVAILABLE AS IS, WITHOUT WARRANTY OF ANY KIND. THE ENTIRE RISK OF THE USE OR THE RESULTS FROM THE USE OF THIS CODE REMAINS WITH THE USER.
@jhochwald
jhochwald / Copy-ADUserGroupMembershipSimple.ps1
Last active Jul 9, 2019
Copy group memberships from a given Source User to a Target User(s) in Active Directory - Simple Version of Copy-ADUserGroupMemberships
View Copy-ADUserGroupMembershipSimple.ps1
function Copy-ADUserGroupMembershipSimple
{
<#
.SYNOPSIS
Copy group memberships from a given Source User to a Target User(s) in Active Directory
.DESCRIPTION
Copy group memberships from a given Source User to a Target User(s) in Active Directory.
Simple Version of Copy-ADUserGroupMemberships
You can’t perform that action at this time.