Skip to content

Instantly share code, notes, and snippets.

View xsmolasses's full-sized avatar

xsmolasses

View GitHub Profile
@xsmolasses
xsmolasses / Appx-Uninstaller.ps1
Created February 13, 2024 03:42 — forked from ThioJoe/Appx-Uninstaller.ps1
A basic script for uninstalling a list of app packages in Windows 10/11, including those pre-installed with Windows
# A basic script for uninstalling app packages in Windows 10/11, including those pre-installed with Windows
#
# Note: If you get an error about the script not being allowed to run, the below command will change the execution polciy temporarily for one session only:
# Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope Process
#
# To execute the script, open a Powershell window to the directory with the script and run the following command using your scripts file name (and don't forget the .\ )
# .\WhateverScriptName.ps1
# -------------------------------------------------------------------------------------------
# Script by ThioJoe - https://github.com/ThioJoe
@xsmolasses
xsmolasses / runpe64.cpp
Created January 23, 2024 13:22 — forked from valinet/runpe64.cpp
RunPE for x64
/*
RunPE for x64 - classic RunPE for 64-bit executables
Copyright (C) 2020 Valentin-Gabriel Radu
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
@xsmolasses
xsmolasses / StartupOnce.bat
Created January 23, 2024 13:16 — 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 Start Firefox
"C:\Program Files\Mozilla Firefox\firefox.exe"
rem Uninstall Photos
powershell -command "Get-AppxPackage Microsoft.Windows.Photos | Remove-AppxPackage"
rem Set region to Romania, regional format to Romania, add Romanian keyboard
powershell -command Set-Culture -CultureInfo ro-RO
powershell -command Set-WinHomeLocation -GeoId 0xc8
powershell -command "$langs = Get-WinUserLanguageList; $langs.Add(\"ro-RO\"); Set-WinUserLanguageList $langs -Force"
powershell -command "Set-TimeZone -Id \"GTB Standard Time\" -PassThru"
@xsmolasses
xsmolasses / deploy.ps1
Created January 23, 2024 13:12 — 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
@xsmolasses
xsmolasses / GetClipboardPwner.ahk
Last active December 2, 2023 15:17
Record Clipboard Owner
/*
GetClipboardPwner.ahk
release: #10
support: AutoHotkey v1.1.21.01 and above seems compatible.
install: AutoHotkey v1.1 branch - not support v2.0 branch.
https://github.com/AutoHotkey/AutoHotkey/releases/tag/v1.1.37.01
execute:
GetClipboardPwner.ahk