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
| # Stop Teams process | |
| $paramGetProcess = @{ | |
| Name = 'Teams' | |
| ErrorAction = 'SilentlyContinue' | |
| } | |
| $paramStopProcess = @{ | |
| Force = $true | |
| Confirm = $false | |
| ErrorAction = 'SilentlyContinue' | |
| WarningAction = 'SilentlyContinue' |
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 | |
| #set -x # Enable debugging | |
| #set -euo pipefail # Strict error handling | |
| IFS=$'\n\t' # Set IFS to handle spaces in filenames correctly | |
| # Script to clear Microsoft Teams cache and restart the application on macOS | |
| # The MSTeamsAudioDevice driver is removed to fix audio issues in Microsoft Teams | |
| # Just in case! | |
| if [ "$(uname -s)" != "Darwin" ]; then |
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
| # Intune Detection | |
| if (!(Get-DnsClientNrptRule -ErrorAction SilentlyContinue | Where-Object -FilterScript { | |
| ($_.Namespace -eq 'remotehelp.microsoft.com') | |
| })) | |
| { | |
| Write-Host -Object 'Namespace entry was not found' | |
| exit 1 | |
| } | |
| else | |
| { |
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 | |
| Allow the Teams Web App to access cam and microphone automatically | |
| .DESCRIPTION | |
| Allow the Teams Web App to access cam and microphone automatically, | |
| we support Microsoft Edge, Google Chrome and the Brave browser | |
| .EXAMPLE | |
| PS C:\> .\Set-TeamsAudioVideoPermissionInBrowser.ps1 |
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.0 -Modules MSCommerce | |
| <# | |
| .SYNOPSIS | |
| Configure "self-service trial of Viva Goals" within a tenant | |
| .DESCRIPTION | |
| Configure "self-service trial of Viva Goals" within a Microsoft 365 tenant | |
| .EXAMPLE | |
| PS C:\> .\Setup-MSCommerceProductPolicies.ps1 |
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.0 | |
| <# | |
| .SYNOPSIS | |
| Clean-up my test VM for further testing | |
| .DESCRIPTION | |
| Clean-up my test VM for further testing | |
| Very simple, but brutal, clean-up script! |
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
| # | |
| # You now can download .NET from the Microsoft trixie repository and this is no longer longer needed | |
| # | |
| # install the dependencies | |
| apt install libc6 libgcc1 libgssapi-krb5-2 libicu76 libssl1.1 libstdc++6 zlib1g -y | |
| # Get the .NET install script | |
| wget https://dot.net/v1/dotnet-install.sh -O dotnet-install.sh |
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 | |
| <# | |
| .SYNOPSIS | |
| File I/O Speed-Testing | |
| .DESCRIPTION | |
| File I/O Speed-Testing | |
| .PARAMETER ReadFile |
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
| :: Windows 10 Hardening Script | |
| :: This is based mostly on my own personal research and testing. My objective is to secure/harden Windows 10 as much as possible while not impacting usability at all. (Think being able to run on this computer's of family members so secure them but not increase the chances of them having to call you to troubleshoot something related to it later on). References for virtually all settings can be found at the bottom. Just before the references section, you will always find several security settings commented out as they could lead to compatibility issues in common consumer setups but they're worth considering. | |
| :: Obligatory 'views are my own'. :) | |
| :: Thank you @jaredhaight for the Win Firewall config recommendations! | |
| :: Thank you @ricardojba for the DLL Safe Order Search reg key! | |
| :: Thank you @jessicaknotts for the help on testing Exploit Guard configs and checking privacy settings! | |
| :: Best script I've found for Debloating Windows 10: https://github.com/Sycnex/Windows10Debloater | |
| : |
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
| $pathExclusions = (New-Object -TypeName System.Collections.ArrayList) | |
| $processExclusions = (New-Object -TypeName System.Collections.ArrayList) | |
| $null = $pathExclusions.Add($env:windir + '\Microsoft.NET') | |
| $null = $pathExclusions.Add($env:windir + '\assembly') | |
| #$null = $pathExclusions.Add($env:USERPROFILE + '\Downloads\HeidiSQL_11.3_64_Portable') | |
| $null = $pathExclusions.Add($env:USERPROFILE + '\.dotnet') | |
| $null = $pathExclusions.Add($env:USERPROFILE + '\.nuget') |
NewerOlder