Microsoft
70-667 · Question #202
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…
The correct answer is D. Set-SPDiagnosticConfig. DaysToKeepLogs: Specifies the number of days to keep trace log files. The type must be a valid us/library/ff607575.aspx
Configuring SharePoint 2010
Question
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?
Options
- ASet-SPContentDatabase
- BSet-SPUsageService
- CSet-SPSite
- DSet-SPDiagnosticConfig
- EInstall-SPApplicationContent
- FSet-SPWeb
- GSet-SPAlternateURL
- HSet-SPTimerJob
- JNew-SPWebApplication
How the community answered
(33 responses)- C15% (5)
- D73% (24)
- E3% (1)
- F6% (2)
- G3% (1)
Explanation
DaysToKeepLogs: Specifies the number of days to keep trace log files. The type must be a valid us/library/ff607575.aspx
Topics
#trace logs#Set-SPDiagnosticConfig#diagnostic logging#PowerShell
Community Discussion
No community discussion yet for this question.