Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Question
Monday, August 12, 2019 3:56 PM
Hi world.
I need to find a specific interface/GUID in registry, HKLM\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters\interfaces\GUID], where I need to put some registry key like TcpAckFrequency, and TcpNoDelay properly.
The problem is the Interface GUID is different for each computer. So I need to locate the Interface Guid and then change/add the keys afterwards within that interface.
Virtual Machine like VMware, Azure, VirtualBox must be excluded.
Please give me amazing ideas using batch file or powershell.
Thank you very much.
Regards
Chris
All replies (3)
Thursday, August 15, 2019 6:55 AM ✅Answered
Hi,
Thanks for posting in the forum.
Do you mean you want add some registry key to specified GUID. I recommend you run the following command in PowerShell:
gci Registry::HKLM\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters\interfaces | %{ New-ItemProperty -Path $_.name -name -Value -PropertyType -force}
you need type registry key after –name, value after –Value and type after –PropertyType. And you can refer to the following link about how to update or add Registry Key Value with PowerShell.
https://devblogs.microsoft.com/scripting/update-or-add-registry-key-value-with-powershell/
Hope this can help you.
Best regards,
Hollis
Please remember to mark the replies as answers if they help and unmark them if they provide no help.
If you have feedback for TechNet Subscriber Support, contact [email protected].
Monday, August 12, 2019 7:04 PM
gci Registry::HKLM\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters\interfaces | select Name
Type is in the powershell , you'll get interfaces.
S_K_P
Wednesday, August 14, 2019 4:34 PM
Thank you for reply. I actually thought the same way, but the problem is not to specify. For example, it's possible to apply in 3~4 guid directory. In my case, whole guid directory is sorting.