【发布时间】:2013-06-02 13:05:14
【问题描述】:
这行得通:
Output "Cluster Group: ""$($Group.Name)"", Current Owner: $($Group.OwnerNode), Current State: $($Group.State)"
这不起作用:
Output "Cluster Group: ""$($Group.Name)"", Current Owner: $($Group.OwnerNode.ToUpper()), Current State: $($Group.State)"
出现以下错误:
Method invocation failed because [Microsoft.FailoverClusters.PowerShell.ClusterNode] doesn't contain a method named 'ToUpper'.
关于如何将此字符串从 Get-ClusterGroup 字符串的输出转换为大写的任何想法?
【问题讨论】:
标签: string powershell methods invocation