PrepAway - Latest Free Exam Questions & Answers

Which Windows PowerShell cmdlet should you use?

You have a SharePoint Server 2010 Service Pack 1 (SP1) server farm. The farm contains two web
applications named WebApp1 and WebApp2. WebApp1 contains one site collection. he site
collection contains 300 sites. WebApp2 is used to host personal sites. You need to ensure that you
receive a notification when more than 400 personal sites are created. Which Windows PowerShell
cmdlet should you use?

PrepAway - Latest Free Exam Questions & Answers

A.
New-SPWebApplication

B.
Set-SPLogLevel

C.
Set-SPDiagnosticConfig

D.
Set-SPTimerJob

E.
New-SPWebApplicationExtension

F.
Install-SPApplicationContent

G.
Enable-SPHealthAnalysisRule

H.
Set-SPSite

I.
Set-SPAIternateURL

J.
Set-SPUsageService
K.
Enable-SPTimerJob
L.
Remove-SPUsageApplication
M.
Set-SPContentDatabase
N.
Set-SPWeb

Explanation:
Set-SPContentDatabase -WarningSiteCount
Specifies the number of site collections that can be created before a warning event is generated and
the owner of the site collection is notified.
Example
—————EXAMPLE 1—————
Get-SPContentDatabase http://contoso.com | Set-SPContentDatabase -MaxSiteCount 1

This example sets the MaxSiteCount for the content database that contains contoso.com to 1.
—————EXAMPLE 2—————
Get-SPContentDatabase -WebApplication http://sitename | Set-SPContentDatabase –
WarningSiteCount $null
This example clears the WarningSiteCount for all databases in the sitename Web application.
http://technet.microsoft.com/en-us/library/ff607912.aspx


Leave a Reply