Home » Microsoft » 70-332 » Which two Windows PowerShell cmdlets should you perform?
You need to meet the security requirement for site collection upgrades.
Which two Windows PowerShell cmdlets should you perform? (Each correct answer presents part of the solution. Choose two.)
A. $reports.AllowSelfServiceUpgrade = false
B. $reports = Get-SPSite “http://reports.wideworldimporters.com”
C. $reports.AllowSelfServiceUpgrade
D. $reports = Get-SPWebApplication “http://reports.wideworldimporters.com”
E. Sreports.AllowSelfServiceUpgrade = true
Correct Answer: AB
Explanation/Reference:
* At the Windows PowerShell command prompt, type the following command to view the self- service upgrade setting for a site collection:
$site=Get-SPSite
$site.AllowSelfServiceUpgrade=
Where:
is URL for the site collection that you want to affect. <Value> is either ‘true’ to allow site collection administrators to upgrade the site, or ‘false’ to not show them the notification and not allow them to upgrade.
* Get-SPSite
Returns all site collections that match the specified criteria.
Note:
* From scenario:
/ A site collection named Report Center has been created at http:// reports.wideworldimporters.com.
/ Site Collection administrators must not have the ability to upgrade site collections. / Site Collection upgrade jobs must be throttled to a maximum of five site collections at a time.
Incorrect:
D: Get-SPWebApplication
Returns all Web applications that match the given criteria.
The Get-SPWebApplicationcmdlet returns all Web applications that match the scope given by the Identity parameter. The Identity can be the name of the name, URL, or GUID of the Web application. If no Identity is specified, all Web applications are returned.
The Central Administration Web application is only returned if its exact identity is provided or the IncludeCentralAdministration flag is provided.
Reference: Manage site collection upgrades to SharePoint 2013