Database cmdlets in SharePoint 2013
https://technet.microsoft.com/en-us/library/ee906544.aspxConfigure SharePoint 2013 Farm with PowerShell
https://blogs.msdn.microsoft.com/priyo/2013/09/13/configure-sharepoint-2013-farm-with-powershell/https://www.habaneroconsulting.com/en/insights/Automating-the-SharePoint-2013-installation-and-creating-a-farm-with-PowerShell.aspx#.WMcZ6zvytPZ
https://knowledge.zomers.eu/SharePoint/Pages/How-to-set-up-a-new-SharePoint-farm-using-PowerShell.aspx
$UsageSAName = "Hosting Farm Usage and Health Data Collection Service"
$DatabaseName = "HostingFarm_Usage_SA"
$DatabaseServer="WINDOWS2012"
$UsageLogPath = "C:\Program Files\Common Files\microsoft shared\Web Server Extensions\15\LOGS"
#Get the Usage Service Application Service Instance
$ServiceInstance = Get-SPUsageService
#Create new Usage Service application
New-SPUsageApplication -Name $UsageSAName -DatabaseServer $DatabaseServer -DatabaseName $DatabaseName -UsageService $ServiceInstance #> $null
#Create Service Application Proxy..."
$proxy = Get-SPServiceApplicationProxy | where {$_.TypeName -eq "Usage and Health Data Collection Proxy"}
$proxy.Provision()
#Set Usage Service Application Option
Set-SPUsageService -LoggingEnabled 1 -UsageLogLocation $UsageLogPath -UsageLogMaxSpaceGB 1
No comments:
Post a Comment