Which Windows PowerShell cmdlet should you use?

Applications named WebApp1 and WebApp2. WebApp1 contains one site collection. The site
collection contains 300 sites. WebApp2 is used to host personal sites. You need to ensure that trace
logs are deleted automatically two days after the logs are created. Which Windows PowerShell
cmdlet should you use?

Applications named WebApp1 and WebApp2. WebApp1 contains one site collection. The site
collection contains 300 sites. WebApp2 is used to host personal sites. You need to ensure that trace
logs are deleted automatically two days after the logs are created. Which Windows PowerShell
cmdlet should you use?

A.
Set-SPContentDatabase

B.
Set-SPUsageService

C.
Set-SPSite

D.
Set-SPDiagnosticConfig

E.
Install-SPApplicationContent

F.
Set-SPWeb

G.
Set-SPAlternateURL

H.
Set-SPTimerJob

I.
Enable-SPHealthAnalysisRule

J.
New-SPWebApplication
K.
Enable-SPTimerJob
L.
Set-SPLogLevel
M.
New-SPWebApplicationExtension
N.
Remove-SPUsageApplication

Explanation:
DaysToKeepLogs: Specifies the number of days to keep trace log files. The type must be a valid
number between 1 and 366. The default value is 14 days..
http://technet.microsoft.com/en-us/library/ff607575.aspx



Leave a Reply 0

Your email address will not be published. Required fields are marked *