windows-usage
记录一些windows的使用技巧
查看哪些进程正在使用我的摄像头
前往微软文档下载Process Explorer
注意要以管理器权限运行procexp64.exe
具体使用方法:
-
首先在设备管理器找到摄像头的"物理设备对象名称", 右键复制
-
打开 Process Explorer 然后 Ctrl + F, 查询句柄. (这里我打开了mumu模拟器的相机应用)
注意事项:
1. 如果只有svchost.exe而查不到其他使用该句柄的程序, 则一般是某个uwp应用在使用该设备
2. 也可以查看其他设备(如麦克风)
启用 Compact 压缩
1 | compact /compactos:always # 压缩所有系统文件 |
清理组件存储(WinSxS )
1 | dism.exe /Online /Cleanup-Image /AnalyzeComponentStore # 查看组件存储大小 |
Intel ME Firmware
- 查看 ME 信息
1
> MEInfoWin.exe
- 备份 ME 固件
1
FWUpdLcl.exe -SAVE xxxx.bin
- 刷写 ME 固件
1
FWUpdLcl64.exe -f ..\ME8_1.5M_Production.bin
Hyper-V Manager Troubleshoot
- 首先客户机和宿主机都要启用 WinRM遇到错误, 用 Set-NetConnectionProfile 将所有网络设置为 Private:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16PS C:\Users\ndoskrnl> Enable-PSRemoting -Force
WinRM has been updated to receive requests.
WinRM service type changed successfully.
WinRM service started.
Set-WSManQuickConfig : <f:WSManFault xmlns:f="http://schemas.microsoft.com/wbem/wsman/1/wsmanfault" Code="2150859113"
Machine="localhost"><f:Message><f:ProviderFault provider="Config provider"
path="%systemroot%\system32\WsmSvc.dll"><f:WSManFault xmlns:f="http://schemas.microsoft.com/wbem/wsman/1/wsmanfault"
Code="2150859113" Machine="DESKTOP-1KNPPCL"><f:Message>WinRM firewall exception will not work since one of the network
connection types on this machine is set to Public. Change the network connection type to either Domain or Private and
try again. </f:Message></f:WSManFault></f:ProviderFault></f:Message></f:WSManFault>
At line:116 char:17
+ Set-WSManQuickConfig -force
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidOperation: (:) [Set-WSManQuickConfig], InvalidOperationException
+ FullyQualifiedErrorId : WsManError,Microsoft.WSMan.Management.SetWSManQuickConfigCommand有时候即使设置了还是会报错, 直接上参数1
2
3
4
5
6
7
8
9
10
11
12
13
14
15PS C:\Users\ndoskrnl> Get-NetConnectionProfile
Name : Network 5
InterfaceAlias : ZeroTier One [83048a06326c5a60]
InterfaceIndex : 9
NetworkCategory : Private
IPv4Connectivity : LocalNetwork
IPv6Connectivity : LocalNetwork
Name : Xiaomi_XXXX_5G
InterfaceAlias : vEthernet (External Network With Adapter)
InterfaceIndex : 16
NetworkCategory : Private
IPv4Connectivity : Internet
IPv6Connectivity : Internet
PS C:\Users\ndoskrnl> Set-NetConnectionProfile -InterfaceIndex 9 -NetworkCategory Private-SkipNetworkProfileCheck
吧:1
PS C:\Users\ndoskrnl> Enable-PSRemoting -SkipNetworkProfileCheck -Force
- 然后再在客户端设置 TrustedHosts查看一下确保无错:
1
Set-Item WSMan:localhost\client\trustedhosts -value "DESKTOP-XXXXXXX.lan" -Force
多个主机名可用逗号分隔1
Get-Item WSMan:localhost\client\trustedhosts
1
2
3$curValue = (Get-Item wsman:\localhost\Client\TrustedHosts).value
Set-Item wsman:\localhost\Client\TrustedHosts -Value `
"$curValue, Server01.Domain01.Fabrikam.com"
Windows 10/11
- Disable Telemetry
In Group Policy:1
2
3
4Administrative Templates
-> Windows Components
-> Data Collection and Preview Builds
-> Allow Telemetry -> Enabled, Options: 0 - Security [Enterprise Only]Disable Connected User Experiences and Telemetry Service1
2
3
4
5Task Scheduler Library
-> Microsoft
-> Windows
-> Application Experience
-> Microsoft Compatibility Appraiser -> Disable1
Set-Service DiagTrack -StartupType Disabled
- Enable UTCArchlinux Wiki
1
reg add "HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\TimeZoneInformation" /v RealTimeIsUniversal /d 1 /t REG_QWORD /f
- Disable CPU Spectre / Meltdown / ZombieLoad PatchMicrosoft Docs
1
2reg add "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management" /v FeatureSettingsOverride /t REG_DWORD /d 3 /f
reg add "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management" /v FeatureSettingsOverrideMask /t REG_DWORD /d 3 /f - Show seconds in taskbar
1
reg add "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced" /v ShowSecondsInSystemClock /t REG_DWORD /d 1 /f
- Windows 11 full right-click menu
enable:reg add "HKCU\Software\Classes\CLSID\{86ca1aa0-34aa-4e8b-a509-50c905bae2a2}\InprocServer32" /f /ve
disable:reg delete "HKCU\Software\Classes\CLSID\{86ca1aa0-34aa-4e8b-a509-50c905bae2a2}" /f
Don’t forget to reboot.
reference: https://gist.github.com/nebula-moe/75c49c261d1fc9e780df8ed9d0baed97
windows-usage