Permalink
Browse files

Update func_getfailoverhistory.ps1

  • Loading branch information...
1 parent a9f6cd9 commit f91940db7b7af2379b3699a7e844f9ba70dfdaab @Polonius19 committed Oct 7, 2012
Showing with 4 additions and 4 deletions.
  1. +4 −4 func_getfailoverhistory.ps1
@@ -23,15 +23,15 @@
$clusternode = Get-WmiObject -Class mscluster_node -Authentication PacketPrivacy -Impersonation Impersonate -namespace root\mscluster -ComputerName $server | Select-Object Name
# Remove duplicates and sort alphabetically
- $uniquenode = $null
+ $uniquenode = $null
$uniquenode = $clusternode | Select-Object Name -Unique
# Change $uniquenode type to string
$uniquenodeSTR = $null
$uniquenodeSTR = @()
- foreach ($nodeA in $uniquenode) {
- [string]$string = $nodeA
- $uniquenodeSTR += [regex]::matches($string, "[Pp][Rr][BXVbxv][\w]{6}[\d]{3}[A-Ea-e]?") | foreach {$_.value }
+ foreach ($nodeA in $uniquenode) {
+ [string]$string = $nodeA
+ $uniquenodeSTR += [regex]::matches($string, "[Pp][Rr][BXVbxv][\w]{6}[\d]{3}[A-Ea-e]?") | foreach {$_.value }
}
foreach ($nodeB in $uniquenodeSTR) {

0 comments on commit f91940d

Please sign in to comment.