Windows / System · FIELD NOTE
Windows 设置的系列
Control Panel\All Control Panel Items\Network Connections ncpa.cpl
Interface Adapter
Control Panel\All Control Panel Items\Network Connections ncpa.cpl
Network Connecttion Profile¶
查看:
Get-NetConnectionProfile | Format-List -Property *
Settings Network & internet Properties
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\NetworkList\Profiles\<Connection GUID>
Category:0 Public; 1 Private
¶
Network Adapter¶
查看信息¶
Get-NetAdapter | Select-Object *
Device Maneger > Device > Details
Settings > Network & internet > Device > Properties
netsh > netsh interface show interface
DevManView > Device
Get GUID <Adapter GUID>¶
每次重新安装设备都会生成一个新的<Adapter GUID>
Get-NetConnectionProfile | Select-Object Name,InstanceID
Get-NetAdapter | Select-Object Name,InstanceID,DeviceID,InterfaceGuid
Get Path <Adapter Path>¶
Device Maneger > Device > Details > `Device instance path
Get-NetAdapter | Select-Object Name,PnPDeviceID
Name <Adapter Name>¶
Rename¶
Settings > Network & internet > Advanded network settings > Device > Rename this adpter
PowerShell > Rename-NetAdapter -Name <Adapter Name> -NewName <New Adapter Name>
netsh > netsh interface set interface name=<Adapter Name> newname=<New Adapter Name>
Note:
Registry > HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Network\{4d36e972-e325-11ce-bfc1-08002be10318}\<Adapter GUID>
对ncpa.cpl中的Name生效
访问控制Adapter¶
Registry > HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Enum\<Adapter Path>
Friendly Name¶
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Enum\PCI\VEN_10EC&DEV_8125&SUBSYS_7C941462&REV_04\6&6679AB6&0&0048020A
FriendlyName fr
DeviceDesc RTO0123
FriendlyName¶
会影响诸如Device Maneger中的device title、Friendly name, ncpa.cpl中的Device Name,PowerShell的(Get-NetAdapter).InterfaceDescription
DeviceDesc¶
会影响诸如Device Maneger中的Device description
有些字段可能是具有多个选项的
例如:
DeviceDesc:@rtcx21x64.inf,%rtl8125.devicedesc%;Realtek PCIe 2.5GbE Family Controller
其中会优先读取rtcx21x64.inf中的rtl8125.devicedesc字段的值,然后再尝试使用Realtek PCIe 2.5GbE Family Controller
DeviceDesc¶
实际上,当安装驱动时,<Adapter Name>、<Adapter Friendly Name>, <Adapter Driver Discription> 等都会从.inf中获取DeviceDesc,且一般设置为相同值
<Adapter Driver Discription>只能通过修改.inf,进入高级启动中的禁用驱动检查模式启动后重新安装驱动
需要例如在Device Maneger中确认确实安装的是新的驱动
Windows 设置的系列¶
Control Panel (.cpl)¶
Microsoft Management Console (.msc)¶
eg. Device Manager
Windows Management Instrumentation Console (WMIC)¶
CMD (.exe)¶
PowerShell¶
@rtcx21x64.inf,%rtl8125.devicedesc%;Realtek PCIe 2.5GbE Family Controller
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet is an alternating symbolic link to either ControlSet001 or ControlSet002. The other key is kept as a backup for the Load Last Known Good Configuration boot option. Which is control by HKEY_LOCAL_MACHINE\SYSTEM\Select
System-defined device setup classes available to vendors¶
Document Network Adapter: Class GUID: {4d36e972-e325-11ce-bfc1-08002be10318}
IP¶
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters\Interfaces\{Adapter GUID}
ncpa.cpl>Netword Connecttion Details
Settings>Network & internet>Properties
系统环境变量位置¶
\HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Environment
一般而言InstanceID、DeviceID、InterfaceGuid相同都是Adapter的GUID
删除单表项
Registry > HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Network\{4d36e972-e325-11ce-bfc1-08002be10318}\<Adapter GUID>
(或者) HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Network\{4d36e972-e325-11ce-bfc1-08002be10318}
重启设备:重建目录无内容 (不显示) 卸载设备:重建 (正常) 全局重命名:重建name,无PnPDeviceID (显示,点不开)
OEMInformation¶
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\OEMInformation
注册表.md · 3995 chars