This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#region Info | |
<# | |
################################################# | |
# modified by : Joerg Hochwald | |
# last modified : 2016-05-28 | |
################################################# | |
Support: https://github.com/jhochwald/NETX/issues | |
#> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#requires -Version 2 | |
#region Info | |
<# | |
################################################# | |
# modified by : Joerg Hochwald | |
# last modified : 2016-06-10 | |
################################################# | |
Support: https://github.com/jhochwald/NETX/issues |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Simple find function | |
function find ($filter, $path) { | |
if ($path -eq $null) { | |
Get-Childitem -recurse -filter $filter | |
} else { | |
Get-Childitem -recurse -filter $filter -path $path | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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 / |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<# | |
.SYNOPSIS | |
Create a simple Windows 10 VM | |
.DESCRIPTION | |
Create a simple Windows 10 VM for my Test-LAB | |
.PARAMETER Client | |
Client Name | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#requires -Version 1.0 | |
function Set-EnableStrongSSLConfig | |
{ | |
<# | |
.SYNOPSIS | |
Make IIS SSL Config more secure | |
.DESCRIPTION | |
Enales a stronger SSL configuration in IIS |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
### | |
# | |
# office2016_postinstall.sh | |
# | |
# This little helper suppresses the "What’s New" dialog for Office 2016 apps, | |
# and it also prevents the transfer of the telemetry data to Microsoft. | |
# Outlook 2016 and OneNote need an addition setting; | |
# The script takes care about that! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<# | |
Tweaked Version that prevents the Auth Pop-Up on non Windows devices a bit better | |
These Devices should get the regular Forms based (HTML Page) instead. | |
I was asked: Nope, 'Mozilla/5.0 (Windows NT' is correct, not an error ;-) | |
#> | |
# Execute this on your ADFS Server | |
# If you have more then one, use your primary ADFS server, this is essential! | |
Set-ADFSProperties -ExtendedProtectionTokenCheck None |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Execute this on or against your Exchange Server: | |
# (Get-OwaVirtualDirectory).ExternalUrl.AbsoluteUri | |
[string]$ExchangeOWAURL = 'FILL_IN_THE_INFO' | |
# Execute this on or against your Exchange Server: | |
# (Get-EcpVirtualDirectory).ExternalUrl.AbsoluteUri | |
[string]$ExchangeECPURL = 'FILL_IN_THE_INFO' | |
<# | |
Disclaimer: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#requires -Version 3.0 -Modules Storage | |
# Get all Physical Disks | |
<# | |
.SYNOPSIS | |
Create a new Storage Space for my Hyper-V Server | |
.DESCRIPTION | |
Creates a new Storage Space with a SSD and a HDD Tier for my Hyper-V Server | |