New-SPUsageApplication

建立新的使用狀況應用程式。

Syntax

New-SPUsageApplication
   [[-Name] <String>]
   [-AssignmentCollection <SPAssignmentCollection>]
   [-Confirm]
   [-DatabaseName <String>]
   [-DatabasePassword <SecureString>]
   [-DatabaseServer <String>]
   [-DatabaseUsername <String>]
   [-FailoverDatabaseServer <String>]
   [-UsageService <SPUsageServicePipeBind>]
   [-WhatIf]
   [<CommonParameters>]

Description

Cmdlet New-SPUsageApplication 會在本機伺服器陣列中建立新的使用方式應用程式。

如需適用於 SharePoint 產品的 Windows PowerShell 權限及最新資訊,請參閱線上文件 SharePoint Server Cmdlet

範例

-------------------範例-------------------------

New-SPUsageApplication -Name "Usage Application For Farm ABC"

此範例會建立指定名稱的新使用狀況應用程式。

參數

-AssignmentCollection

Manages objects for the purpose of proper disposal. Use of objects, such as SPWeb or SPSite, can use large amounts of memory and use of these objects in Windows PowerShell scripts requires proper memory management. Using the SPAssignment object, you can assign objects to a variable and dispose of the objects after they are needed to free up memory. When SPWeb, SPSite, or SPSiteAdministration objects are used, the objects are automatically disposed of if an assignment collection or the Global parameter is not used.

When the Global parameter is used, all objects are contained in the global store. If objects are not immediately used, or disposed of by using the Stop-SPAssignment command, an out-of-memory scenario can occur.

Type:SPAssignmentCollection
Position:Named
Default value:None
Accept pipeline input:True
Accept wildcard characters:False
Applies to:SharePoint Server Subscription Edition

-Confirm

在執行命令之前,提示您確認操作。 如需詳細資訊,請輸入下列命令:get-help about_commonparameters

Type:SwitchParameter
Aliases:cf
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
Applies to:SharePoint Server Subscription Edition

-DatabaseName

指定記錄資料庫的名稱。 若記錄資料庫不存在,將會自動建立記錄資料庫。

此類型必須是有效的 SQL Server 資料庫名稱,例如 UsageLogDB1。

Type:String
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
Applies to:SharePoint Server Subscription Edition

-DatabasePassword

Specifies the password for the user specified in DatabaseUserName. Use this parameter only if SQL Server Authentication is used to access the logging database.

此類型必須是有效的密碼。

Type:SecureString
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
Applies to:SharePoint Server Subscription Edition

-DatabaseServer

指定建立記錄資料庫所在的 SPServer 物件。

此類型必須是格式為 12345678-90ab-cdef-1234-567890bcdefgh 的有效 GUID、格式為 208.77.188.166 的伺服器電腦 IP 位址、有效的 SQL Server 主機服務名稱 (例如 SQLServerHost1),或有效的 SPServer 物件執行個體。

Type:String
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
Applies to:SharePoint Server Subscription Edition

-DatabaseUsername

Specifies the user name to use for connecting to the logging database. Use this parameter only if SQL Server Authentication is used to access the logging database.

此類型必須是有效的使用者名稱,例如 UserName1。

Type:String
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
Applies to:SharePoint Server Subscription Edition

-FailoverDatabaseServer

指定容錯移轉資料庫伺服器之主機 SQL Server 執行個體的名稱。

此類型必須是有效的 SQL Server 執行個體名稱,例如 SQLServerHost1。

Type:String
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
Applies to:SharePoint Server Subscription Edition

-UsageService

篩選傳回具有指定之上層 SPUsageService 物件的使用狀況應用程式。

此類型必須是格式為 12345678-90ab-cdef-1234-567890bcdefgh 的有效 GUID;有效的流量報告服務名稱 (例如 UsageService1);或有效之 SPUsageService 物件的執行個體。

Type:SPUsageServicePipeBind
Position:Named
Default value:None
Accept pipeline input:True
Accept wildcard characters:False
Applies to:SharePoint Server Subscription Edition

-WhatIf

Displays a message that describes the effect of the command instead of executing the command. For more information, type the following command: get-help about_commonparameters

Type:SwitchParameter
Aliases:wi
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
Applies to:SharePoint Server Subscription Edition

-名稱

為新的使用狀況應用程式指定容易記憶的名稱。

此類型必須是有效的使用狀況應用程式名稱,例如 UsageApplication1。

Type:String
Position:1
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
Applies to:SharePoint Server Subscription Edition