Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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

like image 254
Kishan Avatar asked Jun 11 '13 18:06

Kishan


2 Answers

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.

like image 131
vGimly Avatar answered Sep 28 '22 18:09

vGimly


@Yvette is right. I don't think you can change this property. This property is from and decided by system.

If it is a domain network profile, it will be your domain name, eg. example.com and domain name is decided by domain controller.

If it is a WiFi network profile, it will be the SSID name of WiFi equipment and SSID is decided by your WiFi equipment.

like image 37
Peter Avatar answered Sep 28 '22 19:09

Peter