Windows

Driver Backup

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

powercfg

1
powercfg /a
2
powercfg /hibernate off
Copied!

Disable BitLocker

1
manage-bde -status
2
manage-bde -off C:
3
4
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\BitLocker]
5
"PreventDeviceEncryption"=dword:00000001
Copied!

Restore OS

https://docs.microsoft.com/en-us/windows-hardware/manufacture/desktop/boot-windows-to-audit-mode-or-oobe
1
sysprep /generalize
2
CTRL+SHIFT+F3 to audio mode
Copied!

.Net versions query

1
reg query "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\NET Framework Setup\NDP"
2
reg query "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\NET Framework Setup\NDP\v4\Full"
Copied!

Edition Unique Features

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

RUN

Startup Folder

  • shell:startup

Date & Time

1
timedate.cpl
2
ntp.sjtu.edu.cn [202.120.2.100]
Copied!

Query .Net Framwork Versions

1
reg query "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\NET Framework Setup\NDP
Copied!

Auto Login

1
netplwiz.exe
Copied!

CMD Commands

Networking

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

Configuration

Disable Windows Defender

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

Registry locations

  • %WINDIR%\System32\config\
  • https://technet.microsoft.com/en-in/library/cc750583(en-us).aspx

NFS mount

Turn Windows features on or off -> Services for NFS
1
# seems not working anymore (Dec 2019)
2
Get-WindowsFeature -Name NFS*
3
Install-WindowsFeature -Name NFS-Client
4
5
mount 192.168.88.21:/ x:
6
mount # show mounted
7
umount -f z:
Copied!
https://unix.stackexchange.com/questions/276292
1
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\ClientForNFS\CurrentVersion\Default]
2
"AnonymousUid"=dword:000003e8
3
"AnonymousGid"=dword:000003e8
Copied!

Fix cifs/share mount:

1
net use * /del /yes
2
net use h: \\192.168.0.1\docs /user:ServerB\user Password
Copied!

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
1
bcdboot C:\Windows /s S: /f all
Copied!

EFI

1
diskpart
2
convert
3
create partition efi size=512
4
select partition 2
5
assign letter=b
6
7
bcdboot c:\windows /s h: /f UEFI
Copied!

Copy Boot Entries

1
bcdedit /copy {current} /d "new"
2
bcdedit /set {。。。} device partition=W:
3
bcdedit /set {。。。} osdevice partition=W:
Copied!

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

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

VS proxy

%ProgramFiles%\Microsoft Visual Studio 14.0\Common7\IDE\devenv.exe.config find the <system.net> block, and add this code:
1
<defaultProxy enabled="true" useDefaultCredentials="true">
2
<proxy bypassonlocal="True" proxyaddress=" HYPERLINK "http://<yourproxy:port#" http://<yourproxy:port#>"/>
3
</defaultProxy>
Copied!

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+
1
WDDM 2.0 - Windows 10+
2
reduce workload on the kernel-mode driver for GPUs that support virtual memory addressing
3
DXGI 1.4
4
Cheaper adapter enumeration
5
Video memory budget tracking
6
Direct3D 12 Swapchain Changes
7
8
WDDM 2.1 - 1607+
9
Shader Model 6.0 (mandatory for feature levels 12_0 and 12_1)
10
DXGI 1.5
11
HDR10 - a 10-bit high dynamic range
12
Wide Color Gamut
13
14
WDDM 2.2 - 1703+
15
tailored for virtual, augmented and mixed reality with stereoscopic rendering for the Windows Holographic platform
16
DXGI 1.6: High Dynamic Range (HDR) Detection
17
18
WDDM 2.3 - 1709+
19
10-bit HDR playback over HDMI
20
Video processing and video decode acceleration in DirectX* 12
Copied!

Storge

dynamic disks support the creation of new multipartition volumes

CMD Tools

Check and unclock file

  • https://download.sysinternals.com/files/Handle.zip
  • http://unlocker.en.softonic.com/

Server Core

https://technet.microsoft.com/en-us/library/jj574205(v=ws.11).aspx
1
cscript C:\Windows\System32\Scregedit.wsf /ar 0 # Enable RDS
Copied!

MMC

1
Enable-NetFirewallRule -DisplayGroup "Remote Administration"
2
3
cmdkey /add:<ServerName> /user:<UserName> /pass:<password>
Copied!

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
1
process explorer
2
- search opened file
3
- locate handle process
Copied!

Linux Clients

http://www.freerdp.com/

WLAN Hosted Network

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

简繁体转换

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

mstsc

GPU - NVIDIA

https://developer.nvidia.com/nvidia-opengl-rdp GeForce drivers R440 or later.

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

1
CSCRIPT /NOLOGO C:\Windows\System32\SLMGR.VBS /? # echo on console
Copied!
https://technet.microsoft.com/en-us/library/jj612867.aspx
1
slmgr /SKMS 192.168.88.72
2
slmgr /ipk {GVLK}
3
slmgr /ATO
4
slmgr /dli
5
slmgr /upk # back to trial
Copied!

Office

2016/2019/O365 Retail -> VL: https://github.com/kkkgo/office-C2R-to-VOL
https://docs.microsoft.com/en-us/deployoffice/vlactivation/gvlks
1
cd OFFICE_DIR
2
CSCRIPT OSPP.VBS /SETHST:192.168.88.101
3
CSCRIPT OSPP.VBS /ACT
Copied!
Last modified 6mo ago