Get-SCSMDeletedItem
擷取 Service Manager 中已標示為刪除的項目。
Syntax
Get-SCSMDeletedItem
[[-DisplayName] <String[]>]
[-SCSession <Connection[]>]
[-ComputerName <String[]>]
[-Credential <PSCredential>]
[<CommonParameters>]
Get-SCSMDeletedItem
[-Id] <Guid[]>
[-SCSession <Connection[]>]
[-ComputerName <String[]>]
[-Credential <PSCredential>]
[<CommonParameters>]
Get-SCSMDeletedItem
[-Name] <String[]>
[-SCSession <Connection[]>]
[-ComputerName <String[]>]
[-Credential <PSCredential>]
[<CommonParameters>]
Description
Get-SCSMDeleteditem Cmdlet會擷取已在 Service Manager 中標示要刪除的專案。 您可以接著使用 Restore-SCSMDeletedItem 指令程式來還原這些項目。
範例
範例 1:取得已刪除的專案
C:\PS>Get-SCSMDeleteditem
UserName Domain FirstName LastName
-------- ------ --------- --------
Dave.Chew JWT-D4 Dave Chew
此命令會從 Service Manager 資料庫擷取已刪除項目。
參數
-ComputerName
指定 System Center 資料存取服務執行所在的電腦名稱。 Credential參數中指定的使用者帳戶必須具有指定電腦的存取權限。
Type: | System.String[] |
Position: | Named |
Default value: | Localhost |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-Credential
指定此 Cmdlet 用來連線到 System Center 資料存取服務執行所在伺服器的認證。 指定的使用者帳戶必須具有該伺服器的存取權限。
Type: | System.Management.Automation.PSCredential |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-DisplayName
指定要擷取之已刪除項目的 DisplayName。 這個名稱可以是規則運算式。
Type: | System.String[] |
Position: | 0 |
Default value: | None |
Required: | False |
Accept pipeline input: | True |
Accept wildcard characters: | False |
-Id
指定要擷取之已刪除項目的識別碼。
Type: | System.Guid[] |
Position: | 0 |
Default value: | None |
Required: | True |
Accept pipeline input: | True |
Accept wildcard characters: | False |
-Name
指定要擷取之已刪除項目的名稱。 您可以指定正則運算式。
Type: | System.String[] |
Position: | 0 |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-SCSession
指定代表 Service Manager 管理伺服器工作階段的物件。
Type: | Microsoft.SystemCenter.Core.Connection.Connection[] |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
輸入
System.String
您可以使用管線將名稱傳送至 DisplayName 參數。
System.Guid
您可以使用管線將 GUID 傳送至 Id 參數。
輸出
The type of object that is being deleted.
此指令程式會從 Service Manager 資料庫擷取已標示為刪除的項目。