This file contains 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 AzureAD, WhiteboardAdmin | |
function Get-MicrosoftWhiteboardReport | |
{ | |
<# | |
.SYNOPSIS | |
Get all Whiteboards for a given user | |
.DESCRIPTION | |
Get all Whiteboards for a given UserID or UserPrincipalName | |
This file contains 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 AzureAD, WhiteboardAdmin | |
function Set-MicrosoftNewWhiteboardOwner | |
{ | |
<# | |
.SYNOPSIS | |
Set the owner for a a given Microsoft Whiteboard | |
.DESCRIPTION | |
Set the owner for a a given Microsoft Whiteboard | |
This file contains 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
function Search-MailboxItemDeletion | |
{ | |
<# | |
.SYNOPSIS | |
Search for deletions in mailboxes | |
.DESCRIPTION | |
Search for deletions in mailboxes, single or all | |
.PARAMETER Days |
This file contains 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
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"; |
This file contains 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 -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. |
This file contains 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
# 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 |
This file contains 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
# 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') |
This file contains 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
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 |
This file contains 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
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 |
This file contains 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
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 |