To get which version of SharePoint is installed on the server, you can use the Version property on the SPFarm object. The function below will return the version number or a 0 based on whether SharePoint is installed on the machine or not.
↧
To get which version of SharePoint is installed on the server, you can use the Version property on the SPFarm object. The function below will return the version number or a 0 based on whether SharePoint is installed on the machine or not.