Skip to content

Instantly share code, notes, and snippets.

View paulocmarques's full-sized avatar
🏠
Working from home

Paulo Cesar Marques paulocmarques

🏠
Working from home
View GitHub Profile
@paulocmarques
paulocmarques / .. MediaCreationTool.bat ..md
Created October 7, 2021 20:56 — forked from AveYo/.. MediaCreationTool.bat ..md
Universal MediaCreationTool wrapper for all MCT Windows 10 versions from 1507 to 21H1 with business (Enterprise) edition support

Not just an Universal MediaCreationTool wrapper script with ingenious support for business editions,
Preview
A powerful yet simple windows 10 / 11 deployment automation tool as well!

configure via set vars, commandline parameters or rename script like iso 21H2 Pro MediaCreationTool.bat
recommended windows setup options with the least amount of issues on upgrades already set
awesome keyboard focus dialogs to pick windows version and enhanced preset action

Auto Setup for upgrading directly with the auto-detected Edition, Language, Architecture *
- can troubleshoot auto setup failing by adding no_update to script name

@paulocmarques
paulocmarques / Program.cs
Created April 19, 2021 00:49 — forked from alexandrnikitin/Program.cs
How to set processor group affinity in .NET C#
namespace ConsoleApp1
{
class Program
{
[StructLayout(LayoutKind.Sequential, Pack = 4)]
private struct _GROUP_AFFINITY
{
public UIntPtr Mask;
[MarshalAs(UnmanagedType.U2)]
public ushort Group;