Tom Collins needs some information:
I normally use the Windows reg utility to get the Cluster File Share Witness sharepath information. This is an example command line on a server returning the File Share Witness details
reg query \\myCluster\HKEY_LOCAL_MACHINE\Cluster\Resources /s /f sharepath
I want to start integrating these sorts of tasks into automated information gathering procedures and migrate this task into the Powershell library. Could you share some Powershell code to get the Cluster File Share Witness sharepath information
Click through for a Powershell one-liner which gets this information.