Get-VBOOrganizationSite
Short Description
Returns organization sites.
Syntax
This cmdlet provides parameter sets that allow you to:
- Get all organization sites of the specified organization.
Get-VBOOrganizationSite -Organization <VBOOrganization> [-IncludePersonalSite] [-IncludeSearchSite][-NotInJob] [-Recurse] [-LocationFilter <VBOSiteLocationFilters>] [-Filter <String>] [-DataSource <VBOOrganizationDataSource>] [<CommonParameters>] |
- Get organization sites by the site URL.
Get-VBOOrganizationSite -Organization <VBOOrganization> [-URL <String>] [-IncludePersonalSite] [-IncludeSearchSite] [-NotInJob] [-Recurse] [-LocationFilter <VBOSiteLocationFilters>] [-Filter <String>] [-DataSource <VBOOrganizationDataSource>] [<CommonParameters>] |
- Get sub-level child sites of the specified parent organization site.
Get-VBOOrganizationSite -Organization <VBOOrganization> [-ParentURL <String>] [-IncludePersonalSite] [-IncludeSearchSite] [-NotInJob] [-Recurse] [-LocationFilter <VBOSiteLocationFilters>] [-Filter <String>] [-DataSource <VBOOrganizationDataSource>] [<CommonParameters>] |
Detailed Description
This cmdlet returns Microsoft organization sites.
Parameters
Parameter | Description | Type | Required | Position | Accept Pipeline Input |
---|---|---|---|---|---|
Organization | Specifies a Microsoft organization. The cmdlet will return organization sites of the specified organization. | Accepts the VBOOrganization object. To get this object, run the Get-VBOOrganization cmdlet. | True | Named | True (ByValue) |
IncludePersonalSite | Defines that the cmdlet will return personal sites along with the other organization sites. Default: False | SwitchParameter | False | Named | False |
IncludeSearchSite | Defines that the cmdlet will return search sites along with the other organization sites. Default: False | SwitchParameter | False | Named | False |
NotInJob | Defines that the cmdlet will return sites that are not manually included in any of the backup jobs. Default: False Note: If a site is backed up by the EntireOrganization job, it also will be considered as not included in backups jobs. | SwitchParameter | False | Named | False |
Recurse | Defines that the cmdlet will return all sub-level child sites. Default: False | SwitchParameter | False | Named | False |
LocationFilter | Note: Use this parameter for organizations of the Hybrid type. Specifies an organization site location type:
The cmdlet will return organization sites of this location type. | VBOSiteLocationFilters | False | Named | False |
Filter | Specifies a keyword to filter organization sites. The cmdlet will return sites that match this search criterion. | String | False | Named | False |
DataSource | Specifies how the cmdlet will return organization sites:
For Microsoft organizations with modern app-only authentication, the cmdlet will return data from either the organization cache database if organization objects are already synchronized to this source, or directly from the organization if synchronization is in progress. For Microsoft organizations with modern authentication and legacy protocols or with basic authentication, the cmdlet will return data directly from the organization.
The cmdlet will return data directly from the organization.
For Microsoft organizations with modern app-only authentication, the cmdlet will start synchronization of objects with the organization cache database and upon synchronization completes, it returns data from the organization cache database. For Microsoft organizations with modern authentication and legacy protocols or with basic authentication, the cmdlet will return data directly from the organization. Default: PreferLocal | VBOOrganizationDataSource | False | Named | False |
URL | Specifies the organization site URL. If the Recurse parameter is not used, the cmdlet will return the organization site with this URL. | String | False | Named | False |
ParentURL | Specifies parent organization site URL. If the Recurse parameter is not used, the cmdlet will return one sub-level child site of the organization site with this URL. | String | False | Named | False |
<CommonParameters>
This cmdlet supports Microsoft PowerShell common parameters. For more information on common parameters, see the About CommonParameters section of Microsoft Docs.
Examples
Example 1. Getting All Unprocessed Sites in Microsoft Organization
This example shows how to get all organization sites in the ABC organization that are not backed up by any backup job.
Perform the following steps:
|
Example 2. Getting Specific Site Including All Child Sites
This example shows how to get an organization site under a certain URL and all of its child sites.
Perform the following steps:
|
Example 3. Getting Only Child Sites
This example shows how to get only one sub-level child site of the parent organization site $parentSite.
Perform the following steps:
|
Related Commands