How to create usage and health data service application using powershell and with existing wss_logging database.
1 Answer
I did it like this:
a. At the PowerShell prompt, type the following and press Enter:
New-SPUsageApplication -Name "Usage and Health Data Collection"
b. At the PowerShell prompt, type the following and press Enter:
$proxy = Get-SPServiceApplicationProxy | where {$_.TypeName -eq "Usage and Health Data Collection Proxy"}
c. At the prompt, type the following and press Enter:
$proxy.Provision()
If it helps you, or maybe is exactly the answer please give it a vote up or mark it as the answer.
-
Thanks, that worked like a charm even for SharePoint Server 2016!– Benny Skogberg ♦Commented Jun 19 at 8:45