Windows

3rd-party Tools

.iso to USB

rufus: not support mount drive, but can add location; support WTG.
Etcher: may not support Windows

Driver backup

dism /online /export-driver /destination:C:\drivers-backup

Restore OS

https://docs.microsoft.com/en-us/windows-hardware/manufacture/desktop/boot-windows-to-audit-mode-or-oobe

sysprep /generalize
CTRL+SHIFT+F3 to audio mode

.Net versions query

reg query "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\NET Framework Setup\NDP"
reg query "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\NET Framework Setup\NDP\v4\Full"

Edition Unique Features

10: Free RemoteFX, WSL 2016: NFS Server, Hyper-V DDA

RUN

Startup Folder

  • shell:startup

    Date & Time

    timedate.cpl

    ntp.sjtu.edu.cn [202.120.2.100]

Query .Net Framwork Versions

reg query "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\NET Framework Setup\NDP

Auto Login

netplwiz.exe

CMD Commands

Networking

netstat -ano | findstr LISTEN
netsh interface portproxy add v4tov4 listenport=3333 listenaddress=0.0.0.0 connectport=3213 connectaddress=127.0.0.1
route add 192.168.0.0 MASK 255.255.0.0 10.0.0.1
route add 172.16.0.0 MASK 255.255.0.0 10.0.0.1
netsh interface ip set address "Ether..." static 192.168.3.5 255.255.255.0 192.168.3.2
SUBST X: "D:\Folder_to_map"

Configuration

Disable Windows Defender

  • gpedit.msc: Computer Configuration/Administrative Templates/Windows Components/Windows Defender

Registry locations

NFS mount

Turn Windows features on or off -> Services for NFS

# seems not working anymore (Dec 2019)
Get-WindowsFeature -Name NFS*
Install-WindowsFeature -Name NFS-Client
mount ip-of-NFS-Server:/Share-Name x:
mount # show mounted
umount -f z:

https://unix.stackexchange.com/questions/276292

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\ClientForNFS\CurrentVersion\Default]
"AnonymousUid"=dword:000003e8
"AnonymousGid"=dword:000003e8

Fix cifs/share mount:

net use * /del /yes
net use h: \\192.168.0.1\docs /user:ServerB\user Password

Installation

Tools

Force OOBE

  • Shift+F10

  • c:\windows\system32\oobe\msoobe.exe

Fix boot

https://docs.microsoft.com/en-us/windows-hardware/drivers/devtest/adding-boot-entries#adding-a-new-boot-en

Fix boot partiton

https://docs.microsoft.com/en-us/windows-hardware/manufacture/desktop/bcdboot-command-line-options-techref-di#command-line-options

bcdboot C:\Windows /s S:
  • EFI

    ```

    diskpart

    convert

    create partition efi size=512

    select partition 2

    assign letter=b

bcdboot c:\windows /s h: /f UEFI

```

Copy Boot Entries

bcdedit /copy {current} /d "new"
bcdedit /set {。。。} device partition=W:
bcdedit /set {。。。} osdevice partition=W:

IDE to AHCI after Installation

  • HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\

    Win7 -> msahci: Win10 -> iaStorV,iaStorAV,storahci: Start => 0 \StartOverride => DELETE

Uninstall software in safemode

REG ADD "HKLM\SYSTEM\CurrentControlSet\Control\SafeBoot\Minimal\MSIServer" /VE /T REG_SZ /F /D "Service" net start msiserver

services.msc

sc create srv_name binpath= D:\_soft\foo.exe type= share start= auto

sc delete srv_name

VS proxy

%ProgramFiles%\Microsoft Visual Studio 14.0\Common7\IDE\devenv.exe.config find the block, and add this code:

"/>

AD

DC DNS

https://blogs.msdn.microsoft.com/servergeeks/2014/07/12/dns-records-that-are-required-for-proper-functionality-of-active-directory/ (4. DC Record - _ldap._tcp.dc._msdcs.)

Graphic

https://docs.microsoft.com/en-us/windows-hardware/drivers/display/ https://en.wikipedia.org/wiki/Windows_Display_Driver_Model

XDDM/XPDM:Windows 2000 and Windows XP, removal of XDDM from Windows 8 Windows Display Driver Model (WDDM): Windows Vista+

WDDM 2.0 - Windows 10+
reduce workload on the kernel-mode driver for GPUs that support virtual memory addressing
DXGI 1.4
Cheaper adapter enumeration
Video memory budget tracking
Direct3D 12 Swapchain Changes
WDDM 2.1 - 1607+
Shader Model 6.0 (mandatory for feature levels 12_0 and 12_1)
DXGI 1.5
HDR10 - a 10-bit high dynamic range
Wide Color Gamut
WDDM 2.2 - 1703+
tailored for virtual, augmented and mixed reality with stereoscopic rendering for the Windows Holographic platform
DXGI 1.6: High Dynamic Range (HDR) Detection
WDDM 2.3 - 1709+
10-bit HDR playback over HDMI
Video processing and video decode acceleration in DirectX* 12

Storge

dynamic disks support the creation of new multipartition volumes

CMD Tools

Check and unclock file

Server Core

https://technet.microsoft.com/en-us/library/jj574205(v=ws.11).aspx

cscript C:\Windows\System32\Scregedit.wsf /ar 0 # Enable RDS

MMC

Enable-NetFirewallRule -DisplayGroup "Remote Administration"
cmdkey /add:<ServerName> /user:<UserName> /pass:<password>

GUI Tools

List: https://www.hanselman.com/tools SoftPerfect RAM Disk: https://www.softperfect.com/products/ramdisk

sysinternals tools

https://docs.microsoft.com/en-us/sysinternals/downloads/sysinternals-suite

process explorer
- search opened file
- locate handle process

Linux Clients

http://www.freerdp.com/

WLAN Hosted Network

NETSH WLAN show drivers | findstr "Hosted network supported"
NETSH WLAN set hostednetwork mode=allow ssid=SF3 key=12345678
NETSH WLAN start hostednetwork

简繁体转换

win10: 先Ctrl+F,按住Ctrl,再按Shift+F

mstsc client

CredSSP

gpedit.msc - Computer Configuration > Administrative Templates > System > Credentials Delegation Encryption Oracle Remediation policy: Enabled > Protection Level: Vulnerable

Disk tools

DM Disk Editor and Data Recovery https://dmde.com/ (view for viewing)

KMS Activation

Windows

CSCRIPT /NOLOGO C:\Windows\System32\SLMGR.VBS /? # echo on console

https://technet.microsoft.com/en-us/library/jj612867.aspx

slmgr /SKMS 192.168.88.72
slmgr /ipk {GVLK}
slmgr /ATO
slmgr /dli
slmgr /upk # back to trial

Office

2016/2019/O365 Retail -> VL: https://github.com/kkkgo/office-C2R-to-VOL

https://docs.microsoft.com/en-us/deployoffice/vlactivation/gvlks

cd OFFICE_DIR
CSCRIPT OSPP.VBS /SETHST:192.168.88.101
CSCRIPT OSPP.VBS /ACT