設定 Web 應用程式的提醒設定 (SharePoint Server 2010)

 

適用版本: SharePoint Server 2010

上次修改主題的時間: 2016-11-30

Microsoft SharePoint Server 2010 包含的提醒功能,是一項電子郵件通知服務,可協助使用者追蹤網站的變更。使用者可以設定想要接收或傳送的提醒以進行通訊,以及追蹤網站上項目的變更。

使用者可以建立網站上下列項目的提醒:

  • 清單

    使用者會收到清單變更的通知,例如新增、刪除或變更清單中的項目時。

  • 清單項目

    使用者會收到清單中特定項目變更的通知。

  • 文件庫

    使用者會收到文件庫變更的通知,例如新增、刪除或變更文件庫中的文件時,或新增、變更、刪除、關閉或啟動文件的網頁討論區時。

  • 文件

    使用者會收到特定文件變更的通知,例如變更、新增、刪除或關閉文件時。

注意

使用者至少必須要有「檢視項目」權限才能使用提醒。如需如何將使用者權限指定給 Web 應用程式詳細資訊,請參閱<規劃網站權限 (SharePoint Server 2010)>。

您可以使用管理中心或 Windows PowerShell 2.0 Cmdlet 設定提醒。您可以開啟或關閉提醒,也可以指定使用者可以建立的提醒數目。

您必須先為伺服器啟用外寄電子郵件,提醒才能供任何網站使用。如需如何使用提醒及管理訊息以及設定外寄電子郵件的詳細資訊,請參閱<設定外寄電子郵件 (SharePoint Server 2010)>。

本文內容:

  • 使用管理中心設定 Web 應用程式的提醒設定

  • 使用 Windows PowerShell 設定 Web 應用程式的提醒設定

使用管理中心設定 Web 應用程式的提醒設定

  1. 確認執行此工作的使用者帳戶為 SharePoint 伺服器陣列管理員群組的成員。

  2. 按一下 SharePoint 管理中心網站的 [應用程式管理]。

  3. 在 [應用程式管理] 頁面上,按一下 [管理 Web 應用程式]。

  4. 按一下要設定提醒的 Web 應用程式。功能區隨即變成使用中。

  5. 在功能區上,按一下 [一般設定] 下拉式功能表,然後按一下 [一般設定]。

  6. 在 [Web 應用程式一般設定] 頁面的 [提醒] 區段中,進行下列設定:

    • 指定 [開啟] 或是 [關閉] 提醒。預設會 [開啟] 提醒。

    • 指定 SharePoint 網站中 [使用者可以建立的提醒數目上限]。此值可以是 1 到 2,000,000,000 之間的任意整數,您也可以指定無限制的提醒數目。預設值為 500 個提醒。

  7. 在您完成提醒的設定之後,請按一下 [確定]。

使用 Windows PowerShell 設定 Web 應用程式的提醒設定

  1. 確認符合下列基本需求:請參閱<Add-SPShellAdmin>。

  2. 在 [開始] 功能表上,按一下 [所有程式]。

  3. 按一下 [Microsoft SharePoint 2010 產品]。

  4. 按一下 [SharePoint 2010 管理命令介面]。

  5. 若要使用 Windows PowerShell 2.0 設定提醒,您必須先搭配使用 Get-SPWebApplication Cmdlet 與 Web 應用程式的 URL,擷取 Web 應用程式的 SPWebApplication 物件。然後,必須設定物件的適當提醒屬性,並使用 SPWebApplication 物件的 Update() 方法儲存變更。下列程式碼範例會執行所有這些步驟。

    在 Windows PowerShell 命令提示字元處,輸入下列命令:

    $webappurl="<http://ServerName:WebApplicationName>"
    $webapp=Get-SPWebApplication $webappurl 
    # to query the settings you can use the following properties
    # Gets a value that specifies whether alerts are allowed in the Web application.
    $webapp.AlertsEnabled
    
    # Gets a value specifying whether there is a limit to the number of 
    # lists, document libraries, documents and list items for which a user can create alerts.
    $webapp.AlertsLimited
    
    # Gets the maximum number of lists, document libraries, documents and list items 
    # for which a single user can create alerts in a SharePoint web site.
    $webapp.AlertsMaximum
    
    
    # Sets a value that specifies whether alerts are allowed in the Web application.
    # to enable alerts in this Web application 
    $webapp.AlertsEnabled = $true
    $webapp.Update()
    
    # to disable alerts in this Web application 
    $webapp.AlertsEnabled = $false
    $webapp.Update()
    
    
    
    # Sets a value specifying whether there is a limit to the number of 
    # lists, document libraries, documents and list items for which a user can create alerts.
    # to enable limited number of alerts and use of AlertsMaximum setting 
    $webapp.AlertsLimited = $true
    $webapp.Update()
    
    # to enable unlimited number of alerts
    $webapp.AlertsLimited = $false
    $webapp.Update()
    
    # Sets the maximum number of lists, document libraries, documents and list items 
    # for which a single user can create alerts in a SharePoint web site.
    $webapp.AlertsMaximum=<MaxAlertsNumber>
    $webapp.Update()
    

    其中:

    • <http://伺服器名稱:Web 應用程式名稱> 是 Web 應用程式的 URL。

    • <提醒數上限> 是單一使用者可以建立的提醒數目上限。

如需詳細資訊,請參閱<Get-SPWebApplication>。