Run 64bit Powershell command from 32bit Powershell

$Clustername = "The_Cluster"

Set-Alias Start-PowerShell64 "$env:windir\sysnative\WindowsPowerShell\v1.0\powershell.exe"
# Create run string, to be able to parse argument
$runThis = "Start-PowerShell64 {Get-ClusterNode -Cluster " + $Clustername + "}"
$Outdata = Invoke-Expression $runThis

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.