Windows recipes
desktop
terminal rightclick shortcut
explorer_tools->folder_options->view
filetypes folder and file folder
advanced->new
command
c:\windows\system32\cmd.exe /k cd %1
# OR
# shift-rightclick on folder
disable autoplay
autorun-off.reg
REGEDIT4
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\IniFileMapping\Autorun.inf]
@="@SYS:DoesNotExist"
# OR
autorun-off.reg
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Cdrom]
"AutoRun"=dword:00000000
# OR
gpedit.msc
administrative_tools->system->turn-off-autoplay
win2000 compatibility mode
regsvr32 %systemroot%\apppatch\slayerui.dll
shortcut->properties->compatibility
wallpaper
regedit
HKCU/Desktop/Wallpaper
add programs to startup
win-r shell:startup
# add shortcut to folder
administration
UTC time
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\TimeZoneInformation
"RealTimeIsUniversal"=dword:00000001
# OR
utc.reg
REGEDIT4
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\TimeZoneInformation]
"RealTimeIsUniversal"=dword:1
NTP server
services.msc
# start "Windows Time" service
regedit
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\W32Time\TimeProviders\NtpServer]
"Enabled"=dword:1
w32tm /config /update
w32tm /query /configuration # check setting
users and groups
gpedit.msc # group policies
lusrmgr.msc # users
add user to group
net localgroup administrators domain:user /add
safe boot
bcdedit /set {default} safeboot minimal # safeboot
bcdedit /set {default} safeboot network # plus network
bcdedit /set {default} safebootalternateshell network # command line
bcdedit /deletevalue {default} safeboot
remove admin password
# boot from recovery media to command line
cd c:\windows\system32
move utilman.exe utilman.exe.bak
copy cmd.exe utilman.exe
# boot and click utility manager
net user username /add
net user username password
net localgroup administrators username /add
# restore utilman
find encrypted folders
Cipher /U /N
enable/disable hibernation
powercfg -h on
powercfg -h off # removes hiberfil.sys
partition hard drive
diskpart
list disk
select disk 1
clean
create partition primary
select partition 1
active
format FS=NTFS label=external quick
assign letter=D
exit
installation
win98 upgrade
touch c:\ntldr # bypass win95 check
setup /is # bypass scandisk
win7 fresh install from upgrade media
# install
# don't enter key
regedit
HKLM/Software/Microsoft/Windows/CurrentVersion/Setup/OOBE/MediaBootInstall=0
# cmd as administrator
slmgr /rearm
# reboot
# activate with product key
get windows licence key
powershell
(Get-WmiObject -query 'select * from SoftwareLicensingService').OA3xOriginalProductKey
autorun CDs
notepad autorun.inf
[autorun]
open=autorun.bat
notepad autorun.bat
@echo Loading CD
@start index.html
@cls
@exit
linux subsystem for windows
PowerShell.exe
Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Windows-Subsystem-Linux
reboot
# install VcXsrv