70-332 · Question #62
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.)
The correct answer is A. $reports.AllowSelfServiceUpgrade = false B. $reports = Get-SPSite "http://reports.wideworldimporters.com". Disabling self-service site collection upgrades in SharePoint requires retrieving the SPSite object and setting its AllowSelfServiceUpgrade property to false.
Question
Exhibit
Options
- A$reports.AllowSelfServiceUpgrade = false
- B$reports = Get-SPSite "http://reports.wideworldimporters.com"
- CSPSite.AllowSelfServiceUpgrade
- D$reports = Get-SPWebApplication "http://reports.wideworldimporters.com"
- E$reports.AllowSelfServiceUpgrade = true
How the community answered
(60 responses)- A80% (48)
- C3% (2)
- D12% (7)
- E5% (3)
Why each option
Disabling self-service site collection upgrades in SharePoint requires retrieving the SPSite object and setting its AllowSelfServiceUpgrade property to false.
Setting $reports.AllowSelfServiceUpgrade = false disables the self-service upgrade option on the site collection, satisfying the security requirement that prevents end users from initiating their own upgrades.
Get-SPSite retrieves the SPSite object for the specific site collection URL, which is required before any property of that site collection can be read or modified in PowerShell.
SPSite.AllowSelfServiceUpgrade is a .NET property reference, not a PowerShell cmdlet, and cannot be executed standalone in a script.
Get-SPWebApplication retrieves a web application object, not a site collection - AllowSelfServiceUpgrade is a property of SPSite, not SPWebApplication.
Setting AllowSelfServiceUpgrade = true would enable self-service upgrades, which is the opposite of the stated security requirement to restrict them.
Concept tested: SharePoint PowerShell SPSite self-service upgrade control
Source: https://learn.microsoft.com/en-us/powershell/module/sharepoint-server/get-spsite
Topics
Community Discussion
No community discussion yet for this question.
