Skip to content

Instantly share code, notes, and snippets.

View AzimsTech's full-sized avatar
🖨️
git push origin main --force

Wan Muhammad Azims AzimsTech

🖨️
git push origin main --force
View GitHub Profile
:: Windows 10\11 quick setup
:: The encoding of this file must be OEM 866
:: https://t.me/wincmd64
@echo off
NET SESSION
IF %ERRORLEVEL% NEQ 0 GOTO ELEVATE
GOTO ADMINTASKS
:ELEVATE
CD /d %~dp0
@AzimsTech
AzimsTech / StartupOnce.bat
Last active June 30, 2022 19:03 — forked from valinet/StartupOnce.bat
Windows 10 deployment script that runs once for each newly created user account.
echo Y|del %appdata%\microsoft\windows\recent\automaticdestinations\*
rem Uninstall Photos
:: powershell -command "Get-AppxPackage Microsoft.Windows.Photos | Remove-AppxPackage"
rem Set region to English (Malaysia), regional format to Engliish (Malaysia), add English (Malaysia) keyboard
powershell -command Set-Culture -CultureInfo ro-RO
powershell -command Set-WinHomeLocation -GeoId 167
powershell -command "$langs = Get-WinUserLanguageList; $langs.Add(\"en-MY\"); Set-WinUserLanguageList $langs -Force"
powershell -command "Set-TimeZone -Id \"Singapore Standard Time\" -PassThru"
rem Install appx packages: HEVC codec, Pride theme
powershell -command Add-AppxPackage C:\Tools\packages\Microsoft.Pride2020Flags_3.0.0.0_neutral__8wekyb3d8bbwe.Appx
@AzimsTech
AzimsTech / unattend.xml
Last active June 29, 2022 07:33 — forked from valinet/unattend.xml
Custom Windows 10 unattend.xml for Sysprep.
<?xml version="1.0" encoding="utf-8"?>
<unattend xmlns="urn:schemas-microsoft-com:unattend">
<settings pass="windowsPE">
<component name="Microsoft-Windows-Setup" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<UserData>
<AcceptEula>true</AcceptEula>
</UserData>
</component>
</settings>
<settings pass="oobeSystem">
@AzimsTech
AzimsTech / deploy.ps1
Last active June 30, 2022 22:46 — forked from valinet/deploy.ps1
Windows 10 audit mode deployment script
##########
# Win10 Initial Setup Script
# Author: Disassembler <disassembler@dasm.cz>
# Version: 1.4, 2016-01-16
##########
# Ask for elevated permissions if required
If (!([Security.Principal.WindowsPrincipal][Security.Principal.WindowsIdentity]::GetCurrent()).IsInRole([Security.Principal.WindowsBuiltInRole]"Administrator")) {
Start-Process powershell.exe "-NoProfile -ExecutionPolicy Bypass -File `"$PSCommandPath`"" -Verb RunAs
Exit
@AzimsTech
AzimsTech / vpn-hotspot.sh
Last active August 11, 2022 07:56 — forked from ShapeShifter499/vpn-hotspot.sh
VPN over Hotspot on Android
#!/system/bin/sh
# Use Script Runner 2 Link: https://play.google.com/store/apps/details?id=com.ajay.ssr2&hl=en_US
# This script should help forward VPN over any tethered connection on a Android device.
# Turn on tethering, then enable VPN, then run this script.
# Inital variable setup
tethering=0
# Setup iptables before forwarding VPN
@AzimsTech
AzimsTech / Clean-StartMenu.bat
Last active November 22, 2019 10:32
Update-StartMenu powershell script: cleans up Start Menu after software installation | Thanks to @macxcool
:: Example of usage
:: Must be run as administrator
echo Cleaning Steam
powershell.exe -noprofile -executionpolicy bypass -file %~dp0\Update-StartMenu.ps1 -Folder "Steam" -GoodLinks "All"
PAUSE
echo Cleaning Python 3.7
powershell.exe -noprofile -executionpolicy bypass -file %~dp0\Update-StartMenu.ps1 -Folder "Python 3.7" -GoodLinks "Python 3.7 (64-bit)"
PAUSE