This file contains 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
REM install_wim_tweaker.exe: https://fdossena.com/?p=w10debotnet/index_1703.frag | |
REM Remove the crappy crap for great justice | |
Dism /online /Disable-Feature /FeatureName:Windows-Defender /Remove /NoRestart | |
Dism /online /Disable-Feature /FeatureName:Windows-Defender-Features /Remove /NoRestart | |
sc delete Diagnosticshub.standardcollector.service | |
sc delete dmwappushservice | |
sc delete wersvc | |
sc delete cdpusersvc | |
sc delete onesyncsvc | |
sc delete messagingsvc |
This file contains 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> | |
#define VK_R 0x52 | |
#define S_desc L"Type the name of a document, folder, program, or Internet resource, and Windows will open it for you." | |
#define S_t L"Run..." | |
#define S_dir L"%SYSTEMROOT%" | |
#define S_mt "Message" | |
#define S_no61 "Failed to load #61 (loaded Shell32.dll okay). Exiting" | |
#define S_noS "Failed to load Shell32.dll." | |
#define S_sR "Registered Win+R" | |
#define S_noR "Failed to register Win+R" |
This file contains 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
Basic workstation programs: | |
This works for most everything. | |
Application Compatibility template | |
Modify Features | |
Remove: | |
Diagnostics\Problem Reports and Solutions | |
Fonts\[asian fonts] | |
International (everything) | |
IIS (if desired) | |
Management\Parental Control |
This file contains 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 <stdio.h> | |
#include <unistd.h> | |
int main() | |
{ | |
int i; | |
for( i = 99; i; --i) | |
{ | |
printf("%d bottles of beer on the wall, %d bottles of beer, take one down, pass it around, %d bottles of beer on the wall.\n", i, i, i-1); | |
fflush(stdout); |
This file contains 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
function Show-HTML ([string]$HTML) | |
{ | |
[void][System.Reflection.Assembly]::LoadWithPartialName('presentationframework') | |
[xml]$XAML = @' | |
<Window | |
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" | |
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" | |
Title="PowerShell HTML GUI" WindowStartupLocation="CenterScreen"> | |
<WebBrowser Name="WebBrowser"></WebBrowser> | |
</Window> |
This file contains 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
#build the scom lab. | |
#Expectations: baseServer2016Lab.vhdx is a syspreped Server 2016 disk image. | |
#The vms go on a private network, called "SCOM-Test" | |
#Router with DHCP server is available, 192.168.1.0/24 with 192.168.1.1 as the gateway | |
#DHCP should send DNS servers as 192.168.1.2 or something else. | |
#I'm using a dns suffix | |
$transcript_path = "log{0}.log" -f (Get-Date -UFormat %s -Millisecond 0) | |
Start-Transcript -Path $transcript_path |
This file contains 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
" Vim color file BBx, based on torte. | |
" Maintainer: Ricahrd Marino | |
" Last Change: 2019 Feb 22 | |
" amber on black | |
" optimized for TFT panels | |
" based on default torte theme. | |
set background=dark | |
hi clear | |
if exists("syntax_on") |
This file contains 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
#ifndef UNICODE | |
#define UNICODE | |
#define _UNICODE | |
#endif | |
#include <windows.h> | |
//cl.exe -nologo -Gm- -GR- -EHa- -GS- -Oi -Tc uac_test.c -link -nodefaultlib -subsystem:windows user32.lib kernel32.lib | |
//Shell32: dynamic load for ShellExecuteW | |
//AdvApi32: dynamic load for AllocateAndInitializeSid, CheckTokenMembership, and FreeSid. | |
//NTDLL: dynamic load to abuse it's internal C runtime functions (swprintf_s). This makes the executable teeny. | |
//See: https://www.codeproject.com/Articles/320748/Haephrati-Elevating-during-runtime |
This file contains 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
//Execute as admin | |
//cl.exe -nologo -Gm- -GR- -EHa- -GS- -Oi -Tc exec_adm.c -link -nodefaultlib /ENTRY:_start -subsystem:windows kernel32.lib | |
//tcc exec_adm.c -nostdlib -lkernel32 | |
#include <windows.h> | |
void _start() | |
{ | |
wchar_t* cp = GetCommandLineW(); | |
wchar_t* pp; //Parameters |
This file contains 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
This is pretty easy to get working, and has a pretty low footprint, especially on x86. | |
-Windows Embedded Standard 7, use the Industrial Automation template. I removed the .net Frameworks, IIS, and added Diagnostics\User to get Task Manager. I also added the file compression utility. Disk footprint was 910 MB. | |
Note: if you are using a network share to install you may need to start the Computer Browser service. | |
-Install Java. Correct Bitness for the system installed. | |
-Install UniFi controller. | |
-Follow these instructions to install UniFi as a service: https://help.ubnt.com/hc/en-us/articles/205144550-UniFi-Run-the-Controller-as-a-Windows-Service | |
-At this point, the disk space used was 1.63GB. | |
Optinally, compress the disk. |
OlderNewer