星期四, 10月 24, 2019

How to hide installed programs in the Control Panel

(1)
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall

(2)
Note. If an app is installed under user permissions, you should go to the key
HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Uninstall

(3)
If this is a 32-bit app, and your OS is a 64-bit one, you’ll need open the registry key
HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall


Script Command:
REG ADD "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\7-zip" /v SystemComponent /t REG_DWORD /d 1 /f

星期三, 9月 25, 2019

WIN7 開機後svchost..exe佔用CPU和記憶很高

Q: svchost.exe 暫很高的記憶體 吃掉所有CPU資源

A:清除可能已損壞了的 Windows Update 暫存目錄

cmd

net stop WuAuServ

%windir%\SoftwareDistribution 更名

net start WuAuServ

星期四, 9月 19, 2019

Windows 各種驗證方法

Windows 各種驗證方法的比較
驗證方法
安全等級
如何傳送密碼
是否可通過防火牆或代理伺服器
用戶端的要求
匿名驗證
無

是
任何瀏覽器皆可
基本驗證
低
明文 (未加密)
是
大部分的瀏覽器
摘要式驗證
中
雜湊處理
是
Internet Explorer5 (含)以上
Windows驗證
高
Kerberos:
Kerberos  ticket
NTLM:
雜湊處理
Kerberos:
可通過代理伺服器,但會被防火牆阻擋

NTLM:
可通過防火牆,但是無法通過代理伺服器
Kerber:
Windows 2000以後的系統,且使用Internet Explorer5 (含)以上

NTLM:
Internet Explorer 2.0(含)以上

星期四, 1月 17, 2019

Ubuntu Grub 修復

sudo mkdir /mnt
sudo mount /dev/sdXn /mnt

sudo mount --bind /dev /mnt/dev
sudo mount --bind /dev/pts /mnt/dev/pts
sudo mount --bind /proc /mnt/proc
sudo mount --bind /sys /mnt/sys

sudo chroot /mnt

grub-install /dev/sdX
(if not chroot : grub-install --root-directory=/mnt/ /dev/sdX)

grub-install --recheck /dev/sdX

update-grub

exit
sudo umount /mnt/sys
sudo umount /mnt/proc
sudo umount /mnt/dev/pts
sudo umount /mnt/dev
sudo umount /mnt


---------
other command:
sudo fdisk -l
sudo parted /dev/sdX print
sudo lsblk


星期三, 1月 16, 2019

網芳通訊協定 SMB

網芳通訊協定 SMB

SMBv1: Win XP/Win2003
SMBv2: Vista/Win2008
SMBv2.1: Win7/Win2008 R2
SMBv3: Win8/Win2012
Win10 自 1709 後,新安裝預設關閉 SMBv1