Create Bootable USB Drive for Windows

cmd

diskpart

list disk

select disk 1

clean

create partition primary

active

format fs=fat32 quick

assign

Your USB drive is now bootable. Now you can copy your Windows Setup CD contents to your USB drive.

Advertisements

Windows 10 Intel HD Graphics 4000 Brightness Problem

regedit

Currently reads as :
[HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Control\Class\{4d36e968-e325-11ce-bfc1-08002be10318}\0000] “FeatureTestControl”=
“Edit DWORD 32 bit”= f000

Registry with New Value:
You needed to change the value in registry to: ( f008 )[HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Control\Class\{4d36e968-e325-11ce-bfc1-08002be10318}\0000] “FeatureTestControl”=
“Edit DWORD 32 bit”= f008

 

Then Restart Computer

Batch File Tips for DOS/Windows

Current .bat File Directory (Ends with \): %~dp0

Don’t display command: @

Don’t display all commands and outputs: @ECHO OFF

Comment line: REM

Wait for enter key: PAUSE

Parameters:

%0 is the program name as it was called,
%1 is the first command line parameter,
%2 is the second command line parameter,
and so on till %9.

How to create Self-Signed Code Signing Certificate

Install Windows SDK for Windows 7

cmd with Admin Priviliges

cd C:\Program Files\Microsoft SDKs\Windows\v7.1\Bin

makecert -r -pe -n “CN=My CA” -ss CA -sr CurrentUser -a sha256 -cy authority -sky signature -sv MyCA.pvk MyCA.cer

certutil -user -addstore Root MyCA.cer

makecert -pe -n “CN=My SPC” -a sha256 -cy end -sky signature -ic MyCA.cer -iv MyCA.pvk -sv MySPC.pvk MySPC.cer

pvk2pfx -pvk MySPC.pvk -spc MySPC.cer -pfx MySPC.pfx

signtool sign /v /f MySPC.pfx /t http://timestamp.url MyExecutable.exe

Timestamp URLs:
http://timestamp.verisign.com/scripts/timstamp.dll
http://timestamp.globalsign.com/scripts/timstamp.dll
http://timestamp.comodoca.com/authenticode