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
########## | |
# Win10 Initial Setup Script | |
# Author: Disassembler <[email protected]> | |
# 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 |
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
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" |
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
<?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"> |
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
<?xml version="1.0" encoding="UTF-16"?> | |
<Task version="1.2" xmlns="http://schemas.microsoft.com/windows/2004/02/mit/task"> | |
<RegistrationInfo> | |
<Date>2020-12-31T19:52:44.3288116</Date> | |
<Author>DESKTOP-JIAP5UR\Administrator</Author> | |
<Description>Center the text in windows' title bars.</Description> | |
<URI>\WinCenterTitle</URI> | |
</RegistrationInfo> | |
<Triggers> | |
<LogonTrigger> |
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
/* | |
* Example showing an interesting technique necessary to toggle the clock flyout | |
* in the Windows 10 taskbar on the monitor containing the mouse | |
* | |
* Copyright (C) 2006-2021 VALINET Solutions SRL. All rights reserved. | |
* License: GPLv2 | |
*/ | |
#include <Windows.h> | |
#include <TlHelp32.h> |
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
#include <Windows.h> | |
#include <iostream> | |
#include <io.h> | |
#include <fcntl.h> | |
BOOL EnumresLang(HMODULE hModule, LPCWSTR lpType, LPCWSTR lpName, WORD wLanguage, LONG_PTR lParam) | |
{ | |
if (lpType == RT_STRING) | |
{ | |
const HRSRC res = FindResourceEx(hModule, lpType, lpName, wLanguage); |
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
#include <initguid.h> | |
#include <Windows.h> | |
#include <roapi.h> | |
#include <Windows.ui.notifications.h> | |
#include <notificationactivationcallback.h> | |
#include <tchar.h> | |
#include <stdio.h> | |
#pragma comment(lib, "runtimeobject.lib") | |
DWORD dwMainThreadId = 0; |
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
// Example of a driver that helps Windhawk | |
// inject processes created by inaccessible processes early on | |
// ========================================================================== | |
// Valentin-Gabriel Radu, [email protected] | |
// | |
// Upstream issue: | |
// https://github.com/ramensoftware/windhawk/issues/197 | |
// | |
#include <ntifs.h> | |
#define INVALID_HANDLE_VALUE ((HANDLE)(LONG_PTR)-1) |
OlderNewer