Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

View jhochwald's full-sized avatar
🤙

Joerg Hochwald jhochwald

🤙
View GitHub Profile
@jhochwald
jhochwald / Test-ModuleAvailableToLoad.ps1
Created March 19, 2016 10:33
Test if the given Module exists
#region License
<#
{
"info": {
"Statement": "Code is poetry",
"Author": "Joerg Hochwald",
"Contact": "joerg.hochwald@outlook.com",
"Link": "http://hochwald.net",
"Support": "https://github.com/jhochwald/MyPowerShellStuff/issues"
@jhochwald
jhochwald / Initialize-ModuleUpdate.ps1
Last active March 19, 2016 11:43
Refresh the PowerShell Module Information
#region License
<#
{
"info": {
"Statement": "Code is poetry",
"Author": "Joerg Hochwald",
"Contact": "joerg.hochwald@outlook.com",
"Link": "http://hochwald.net",
"Support": "https://github.com/jhochwald/MyPowerShellStuff/issues"
@jhochwald
jhochwald / Get-CalendarPermission.ps1
Created March 25, 2016 15:24
Show the Permission set on the Users Calendar via PowerShell
#region License
<#
{
"info": {
"Statement": "Code is poetry",
"Author": "Joerg Hochwald",
"Contact": "joerg.hochwald@outlook.com",
"Link": "http://hochwald.net",
"Support": "https://github.com/jhochwald/MyPowerShellStuff/issues"
@jhochwald
jhochwald / Convert-IPToBinary.ps1
Last active March 25, 2016 15:24
Takes a IP as a string and returns the same IP address as a binary string with no decimal points
#region License
<#
{
"info": {
"Statement": "Code is poetry",
"Author": "Joerg Hochwald",
"Contact": "joerg.hochwald@outlook.com",
"Link": "http://hochwald.net",
"Support": "https://github.com/jhochwald/MyPowerShellStuff/issues"
@jhochwald
jhochwald / Get-ContactsPermission.ps1
Created March 25, 2016 15:25
Show the Permission set on the Users Contacts via PowerShell
#region License
<#
{
"info": {
"Statement": "Code is poetry",
"Author": "Joerg Hochwald",
"Contact": "joerg.hochwald@outlook.com",
"Link": "http://hochwald.net",
"Support": "https://github.com/jhochwald/MyPowerShellStuff/issues"
@jhochwald
jhochwald / Get-UnusedDomains.ps1
Last active March 29, 2016 05:01
Show domains in your Exchange on-premises or Online environment are not being used
#region License
<#
Author: Jos Lieben (https://www.linkedin.com/in/joslieben)
Contributor: Joerg Hochwald (https://www.linkedin.com/in/jhochwald)
Copyright: (c) 2016 by Jos Lieben and Joerg Hochwald. All rights reserved.
Redistribution and use in source and binary forms, with or without modification,
are permitted provided that the following conditions are met:
@jhochwald
jhochwald / BuildReporter.ps1
Last active March 31, 2016 06:01
Creates an BitBucket Issue if the Build has been failed, do nothing if the Build is OK. I like to document every failed Build, so I find that useful!
#region License
<#
{
"info": {
"Statement": "Code is poetry",
"Author": "Joerg Hochwald",
"Contact": "joerg.hochwald@outlook.com",
"Link": "http://hochwald.net",
"Support": "https://github.com/jhochwald/MyPowerShellStuff/issues"
@jhochwald
jhochwald / PsGetTools.ps1
Last active June 11, 2016 12:48
A few tools for the PsGet package management
#requires -Version 2
#region Info
<#
#################################################
# modified by : Joerg Hochwald
# last modified : 2016-06-10
#################################################
Support: https://github.com/jhochwald/NETX/issues
@jhochwald
jhochwald / .htaccess
Created July 26, 2016 20:28
Wordpress enforced SSL with NGINX and/or CloudFlare as reverse Proxy
<IfModule mod_rewrite.c>
RewriteEngine On
# This is needed for NGINX and CloudFlare Reverse Proxy Servers
RewriteCond %{HTTP:X-Forwarded-Proto} =http [OR]
# This is just in case
RewriteCond %{HTTP:X-Forwarded-Proto} =""
RewriteCond %{HTTPS} !=on
# Here comes the redirect to SSL
RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
RewriteBase /
@jhochwald
jhochwald / win10vm.ps1
Last active November 12, 2016 17:48
PowerShell Script to create a simple Windows 10 VM in my Hyper-V LAB
<#
.SYNOPSIS
Create a simple Windows 10 VM
.DESCRIPTION
Create a simple Windows 10 VM for my Test-LAB
.PARAMETER Client
Client Name