How to Change name of the NetConnectionProfile Using Set-NetConnectionProfile in PowerShell

Kishan picture Kishan · Jun 11, 2013 · Viewed 9.4k times · Source

I Tried Using How to Change name of the NetConnectionProfile Using Set-NetConnectionProfile

$Profile=Get-NetConnectionProfile -InterfaceIndex 35
$Profile.Name = "Network1"            

The Error is

"Name" is a ReadOnly property.
 At line:1 char:1
+ $Profile.Name = "Network1"
+ ~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo          : NotSpecified: (:) []
+ FullyQualifiedErrorId : ReadOnlyCIMProperty

How to Change the Read only Property of the name?? Help Me

Answer

vGimly picture vGimly · Oct 4, 2016

You can do this via direct registry edition.

Under the key HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\NetworkList\Profiles

you can see network profiles key (by it's uuid), and can change apropriate network ProfileName value.