How to check if url is SharePoint Site or Document LIbrary Url or Item level or folder URL?

Frequent Contributor

Hello 

 

Is there any way to check if url is SharePoint Site URL or Document Library URL or Folder Url or Item level URL using PowerShell?

 

I also want to check if user enter url like  https://sitename.com/sub/default.aspx or https://sitename.com/sub/homegroup.aspx or https://sitename.com/sub. I want it to return as https://sitename.com/sub using PowerShell.

 

Sorry If am asking basic questions.

 

Regards

Avian

0 Replies