nerdexam
Microsoft

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.

Maintain a SharePoint environment

Question

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.)

Exhibit

70-332 question #62 exhibit

Options

How the community answered

(60 responses)
  • A
    80% (48)
  • C
    3% (2)
  • D
    12% (7)
  • E
    5% (3)

Why each option

Disabling self-service site collection upgrades in SharePoint requires retrieving the SPSite object and setting its AllowSelfServiceUpgrade property to false.

A$reports.AllowSelfServiceUpgrade = falseCorrect

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.

B$reports = Get-SPSite "http://reports.wideworldimporters.com"Correct

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.

CSPSite.AllowSelfServiceUpgrade

SPSite.AllowSelfServiceUpgrade is a .NET property reference, not a PowerShell cmdlet, and cannot be executed standalone in a script.

D$reports = Get-SPWebApplication "http://reports.wideworldimporters.com"

Get-SPWebApplication retrieves a web application object, not a site collection - AllowSelfServiceUpgrade is a property of SPSite, not SPWebApplication.

E$reports.AllowSelfServiceUpgrade = true

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

#self-service upgrade#site collection security#PowerShell cmdlets#AllowSelfServiceUpgrade

Community Discussion

No community discussion yet for this question.

Full 70-332 Practice