An organization migrates a SharePoint environment from SharePoint 2010 to SharePoint 2013. The
organization has a web application at http://intranet.contoso.com.
A corporate governance policy states that users of the web application must be able to create sites only with a
compatibility level of SharePoint 2013.
You need to implement the governance policy.
Which three Windows PowerShell cmdlets should you run in sequence? (To answer, move the appropriate
cmdlets from the list of cmdlets to the answer area and arrange them in the correct order.)
Select and Place:
Explanation:
RangeName is one of the following values: OldVersions, NewVersion, AllVersions. Here we must NewVerssionas ” the web application must be able to create sites only with a compatibility level of SharePoint 2013″.
At the Windows PowerShell command prompt, type the following command to change the compatibility range
settings to a specific range:
$wa=Get-SPWebApplication <URL>
# Stores the web application at that URL as a variable
$wa.CompatibilityRange = [Microsoft.SharePoint.SPCompatibilityRange]::<RangeName> # Specifies which
range to use
$wa.Update()
# Updates the CompatibilityRange setting to use only the range you specified $wa.CompatibilityRange
# Returns the new CompatibilityRange for the web application
Where:
<URL> is URL for the web application that you want to change. RangeName is one of the following values:
OldVersions, NewVersion, AllVersions.
How to Change SharePoint Compatibility Range at the Web Application Level
————————————————————————————-
ElCid1 (SPA, 24.09.13): Answer is :
– $wa=Get-SPWebApplication <URL>
– $wa.CompatibilityRange = [Microsoft.SharePoint.SPCompatibilityRange]::NewVersion
– $wa.Update()
http://technet.microsoft.com/en-en/library/jj219599.aspx
tt (Thailand, 25.09.13): At the Windows PowerShell command prompt, type the following command to change
the compatibility range settings to a specific range:
$wa=Get-SPWebApplication <URL>
# Stores the web application at that URL as a variable
$wa.CompatibilityRange = [Microsoft.SharePoint.SPCompatibilityRange]::<RangeName>
# Specifies which range to use
$wa.Update()
# Updates the CompatibilityRange setting to use only the range you specified
$wa.CompatibilityRange
# Returns the new CompatibilityRange for the web application
http://technet.microsoft.com/en-en/library/jj219599.aspx
Fighter, Bomish, Lean: Answer 3-$wa.Validate()
Lavera,TestKing: Answer 3-$wa.Update()