0
我從另一臺Windows 10 PC上拍攝了一張圖像,並用此圖像設置了一臺新的PC。 現在我有問題,我換接口別名:註冊表不匹配Get-NetAdapter
Rename-NetAdapter -InterfaceAlias "SwitchLan" -NewName "test"
,它說的是,值「測試」已經存在。
Rename-NetAdapter : {Object Exists} An attempt was made to create an object and the object name already existed. At line:1 char:1 + Rename-NetAdapter -InterfaceAlias "SwitchLan" -NewName "test" + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : ResourceExists: (MSFT_NetAdapter... "PC-Name"):ROOT/StandardCimv2/MSFT_NetAdapter) [ Rename-NetAdapter], CimException + FullyQualifiedErrorId : Windows System Error 698,Rename-NetAdapter
在註冊表中,我刪除的條目「測試」,不過,即使當我改變條目「SwitchLAN」,以「測試」,我可以在Windows參見概述界面中的「測試」,但當我將ipconfig
放在命令行中時,我得到條目「SwitchLan」,與PowerShell Get-NetAdapter
相同。
重新啓動不起作用。
這個值在哪裏存儲,這裏會發生什麼?
此外,當我想將「test」更改爲「test2」時,表示沒有「測試」界面,但是當我想將「SwitchLan」更改爲「測試」時,它說「測試」已經存在。
在上一張圖片上,有一個名爲「test」的界面。
Get-NetAdapter -IncludeHidden -Name "test" | Rename-NetAdapter -NewName "Obsolete"
然後您可以命名爲「測試」,以新的網絡適配器:
你好, 一個小時前,我發現了另一個問題的解決方案: 在設備管理器 - >顯示隱藏的設備 - >然後卸載所有沒有連接到系統的適配器,此後我能改變名字。 但是我會在不久的將來再次獲得帶有圖像的PC,並嘗試這個。 – Eggi