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
Get-ChildItem -Path "HKCU:\Control Panel\NotifyIconSettings" | Where-Object { | |
($_ | Get-ItemProperty -Name "IsPromoted" | Select-Object -ExpandProperty "IsPromoted") -eq 0 | |
} | ForEach-Object { | |
$_ | Set-ItemProperty -Name "IsPromoted" -Value 1 | |
} |
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
#!/bin/bash | |
set -e | |
if [ "$USER" = "root" ]; then | |
echo "This script shouldn't run as root (don't use sudo)." | |
exit 1 | |
fi | |
echo "Elevating..." |
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
# Settings | |
$VPN_NAME = "My System VPN" | |
$SERVER = "vpn.example.com:443" | |
$ROUTES = @("192.168.5.0/24", "192.168.6.0/24") # Empty to disable split tunneling | |
$USER = "sys-vpn-username" | |
# ======== | |
$ErrorActionPreference = "Stop" |