【发布时间】:2013-06-07 17:15:19
【问题描述】:
我尝试使用如何使用 Set-NetConnectionProfile 更改 NetConnectionProfile 的名称
$Profile=Get-NetConnectionProfile -InterfaceIndex 35
$Profile.Name = "Network1"
错误是
"Name" is a ReadOnly property.
At line:1 char:1
+ $Profile.Name = "Network1"
+ ~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) []
+ FullyQualifiedErrorId : ReadOnlyCIMProperty
如何更改名称的只读属性?帮帮我
【问题讨论】:
-
你能解释一下吗?
-
你应该避免在问题标题中放置标签。
标签: powershell powershell-2.0 powershell-3.0 powershell-ise