我尝试使用如何使用 Set-NetConnectionProfile 更改 NetConnectionProfile 的名称
$Profile=Get-NetConnectionProfile -InterfaceIndex 35
$Profile.Name = "Network1"
Run Code Online (Sandbox Code Playgroud)
错误是
"Name" is a ReadOnly property.
At line:1 char:1
+ $Profile.Name = "Network1"
+ ~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) []
+ FullyQualifiedErrorId : ReadOnlyCIMProperty
Run Code Online (Sandbox Code Playgroud)
如何更改名称的只读属性??帮我
我想在数组中使用浮点值,例如,
array[4];
array[0] = 3.544
array[1] = 5.544
array[2] = 6.544
array[3] = 6.544
float array[] (is giving me error)
Run Code Online (Sandbox Code Playgroud)
但我不知道如何使用帮助我,我是初学者