I am curious if there is a way to force 64-bit PowerShell to be used by PRTG?


You can also use the failoverclusters module this way.

Create a custom sensor that executes a .ps1 script that contains the following line:

c:\windows\<sysnative>\windowspowershell\v1.0\powershell.exe -file "C:\Program Files (x86)\PRTG Network Monitor\Custom Sensors\EXEXML\yourpowershell64bitscript.ps1"
Please replace <sysnative> either with "System32" when you want to use the 64bit Powershell or with "SysWOW64" for the 32bit version.

Then create the yourpowershell64bitscript.ps1 powershell script with the 64bit module you want to load and output the values in here. Something like:

<# 
This is handy for reading the logfile of the sensor so you will see the modules available that are not in the the 32 bit version of powershell
_#>
Get-Module –ListAvailable

Import-Module failoverclusters
$csv = Get-Cluster -Name fqdn.clustername
Write-Host $csv.id

When you execute the sensor you will see a powershell.exe *32 in your task manager. Because the sysnative folder is only available from a 32 bit powershell it executes the 64 bit powershell with the –file option. You will see a powershell.exe appear besides the powershell.exe *32.



Disclaimer:
The information in the Paessler Knowledge Base comes without warranty of any kind. Use at your own risk. Before applying any instructions please exercise proper system administrator housekeeping. You must make sure that a proper backup of all your data is available.