View Graylog.conf
location / { | |
# Only Allow the Cloudflare Servers to use this URL (Not Scope) | |
include /etc/nginx/snippets/enatec_CloudFlareAllowlist.conf; | |
# Set some Default for Reverse Proxies (Not Scope) | |
include /etc/nginx/snippets/enatec_proxydefaults.conf; | |
# This is not required | |
add_header Front-End-Https on; | |
add_header Cache-Control "public, must-revalidate"; |
View Setup-SecretManagement.ps1
#Requires -RunAsAdministrator | |
<# | |
.SYNOPSIS | |
Install or update the Microsoft SecretManagement Module toolchain | |
.DESCRIPTION | |
Install or update the Microsoft SecretManagement Module toolchain | |
If the Modules are not installed, the script will try to install them for all (AllUsers scope). | |
If the modules are installed, the script will try to update them. |
View DisableDotNetTelemetry.sh
# Put this to the users .bashrc and/or .profile | |
# OR | |
# Put it into /etc/bashrc (On linux it might be /etc/bash.bashrc) and/or /etc/profile | |
# | |
# On Linux you might want to create a seperate shell script an put this into /etc/profile.d/ <- It is recommended to do that! | |
which dotnet > /dev/null 2>&1 | |
if [ $? == 0 ]; then | |
export DOTNET_CLI_TELEMETRY_OPTOUT=1 | |
export MLDOTNET_CLI_TELEMETRY_OPTOUT=1 |
View DisableDotNetTelemetry.ps1
# Disable the .NET Telemetry on production servers and critical workstations | |
[Environment]::SetEnvironmentVariable('DOTNET_CLI_TELEMETRY_OPTOUT', '1', 'Machine') | |
[Environment]::SetEnvironmentVariable('MLDOTNET_CLI_TELEMETRY_OPTOUT', '1', 'Machine') | |
# Tweak the 1st run experience | |
[Environment]::SetEnvironmentVariable('DOTNET_SKIP_FIRST_TIME_EXPERIENCE', '1', 'Machine') |
View Initialize-ProtectionAlertSet.ps1
function Initialize-ProtectionAlertSet | |
{ | |
<# | |
.SYNOPSIS | |
Create good practice Ruleset of Office 365 Protection Alert's | |
.DESCRIPTION | |
Create good practice Ruleset of Office 365 Protection Alert's | |
You need a PowerShell connection to the Security and Compliance Center |
View Initialize-ActivityAlertSet.ps1
function Initialize-ActivityAlertSet | |
{ | |
<# | |
.SYNOPSIS | |
Create good practice Ruleset of Office 365 Activity Alert's | |
.DESCRIPTION | |
Create good practice Ruleset of Office 365 Activity Alert's | |
You need a PowerShell connection to the Security and Compliance Center |
View Get-IPv6InWindows.ps1
function Get-IPv6InWindows | |
{ | |
<# | |
.SYNOPSIS | |
Get the configured IPv6 value from the registry | |
.DESCRIPTION | |
Get the configured IPv6 value from the registry | |
Transforms the Registry value into human understandable values |
View FixPersonalSPOSite.ps1
#requires -Version 3.0 -Modules AzureAD, Microsoft.Online.SharePoint.PowerShell | |
<# | |
.SYNOPSIS | |
Provision new Users personal SharePoint site | |
.DESCRIPTION | |
Provision new Users personal SharePoint site, Will also trigger the OneDrive provisioning. | |
.PARAMETER TenantName | |
Microsoft 365 Tenant name (e.g. contoso for contoso.onmicrosoft.com) |
View ConvertFrom-SafeLinksURL.ps1
function ConvertFrom-SafeLinksURL | |
{ | |
<# | |
.SYNOPSIS | |
Decode a ATP SafeLinks URL | |
.DESCRIPTION | |
Decode a Office 365 Advanced Threat Protection SafeLinks URL | |
.PARAMETER SafeLinksURL |
NewerOlder