Skip to content

Instantly share code, notes, and snippets.

@Vladkarok
Vladkarok / addvpn.ps1
Created February 22, 2024 09:12
Create IKEv2 vpn connection on windows
# This script will download LE intermediate CA and install it in a computer,
# create IKEv2 vpn connection with SplitTunneling, -DnsSuffix and -RememberCredential
# USAGE
# Open Powershell as administarton and run next line:
# PowerShell.exe -ExecutionPolicy Bypass -File .\addvpn.ps1
# where "addvpn.ps1" is the name of this script
# Define the parameters for the VPN connection (change it)
$Name = "NAME_OF_VPN_CONNECTION"
$ServerAddress = "SERVER_ADDRESS"
@Vladkarok
Vladkarok / createuseers.ps1
Created February 22, 2024 09:07
Powershell script to add local users using additional csv file.
# USAGE:
# .\createuseers.ps1 -File users.csv
# users.csv containing:
# Username,Password,FullName,Description
# user1,password1,Full Name 1,Description 1
# user2,password2,Full Name 2,Description 2
# ...
@Vladkarok
Vladkarok / MultiWAN and routing on MikroTik RouterOS.md
Last active May 3, 2025 15:19
Multi WAN MikroTik routerOS v6 & v7
@Vladkarok
Vladkarok / tukui-elvui-git-updater.ps1
Last active May 6, 2023 20:02
Powershell script that checks updates from https://github.com/tukui-org/ElvUI and if found some - replaces your directories
# -------------------------------------------------------------------------------------------------
# USAGE:
# open Powershell window in the directory where this script is located and paste the following string (without #)
# powershell -ExecutionPolicy RemoteSigned -File .\tukui-elvui-git-updater.ps1
#
# REQUIREMENTS:
# - installed git and added into $PATH
# - cloned https://github.com/tukui-org/ElvUI repository to some directory, it is used as $SRC_DIR
# - change $SRC_DIR and $DST_DIR according to your setup
# -------------------------------------------------------------------------------------------------
@Vladkarok
Vladkarok / addvpn.ps1
Created February 27, 2023 16:41
Powershell add VPN IKEv2 with LE certificates for Windows 10/11
# This script will download LE intermediate CA and install it in a computer,
# create IKEv2 vpn connection with SplitTunneling, -DnsSuffix and -RememberCredential
# USAGE
# Open Powershell as administarton and run next line:
# PowerShell.exe -ExecutionPolicy Bypass -File .\addvpn.ps1
# where "addvpn.ps1" is the name of this script
# Define the parameters for the VPN connection (change it)
$Name = "NAME_OF_VPN_CONNECTION"
$ServerAddress = "SERVER_ADDRESS"