title: How to check if the Sharepoint site is on Sharepoint online (or On premises).?
body: <p>Is there any way to check whether the SharePoint site is on SharePoint Online (or On premises).</p>
  
  <p>Can we do that using URL?
  I need to write a PowerShell script to check is the site is on SO, but no idea what condition to check.</p>
  
  <p>Found this article <a href="https://sergeluca.wordpress.com/2013/01/13/can-can-you-check-the-version-of-a-sharepoint-online-or-how-can-you-know-that-your-sharepoint-online-moved-to-2013/" rel="nofollow noreferrer">https://sergeluca.wordpress.com/2013/01/13/can-can-you-check-the-version-of-a-sharepoint-online-or-how-can-you-know-that-your-sharepoint-online-moved-to-2013/</a> but not much of help.</p>
  
  <p>thanks
  Paru</p>