Essentially I am trying to limit access to a specific SharePoint Online site by requiring that you can only view this site providing the machine you are using is Hybrid Domain joined.. I have been following this document
The section I am following is:
**Block or limit access to a specific SharePoint site collection or OneDrive**
I am getting errors in PowerShell relating to paramater not found and I believe this is because I am not putting the correct info in the command:
Set-SPOSite -Identity https://<SharePoint online URL>/sites/<name of site collection or OneDrive account> -ConditionalAccessPolicy AllowLimitedAccess
**What I’m putting in:**
Set-SPOSite -Identity [https://domain.sharepoint.com/subsitename/](https://domain.sharepoint.com/subsitename/) https://domain.sharepoint.com -ConditionalAccessPolicy AllowLimitedAccess
I believe the problem is I am simply typing in the wrong info but I am not sure… I specify the URL of the site I want to limit and then specify the name of the site collection which I can only assume is the URL given to me in the SPO admin center.