New-DPMSearchOption
Létrehoz egy objektumot, amely keresési beállításokat ad meg a helyreállítható objektumokhoz.
Syntax
New-DPMSearchOption
[-FromRecoveryPoint] <DateTime>
[-ToRecoveryPoint] <DateTime>
[-SearchDetail] <SearchForDetail>
[-SearchType] <SearchFilterType>
[-SearchString] <String>
[-Location <String>]
[-Recursive]
[<CommonParameters>]
Description
A New-DPMSearchOption parancsmag létrehoz egy objektumot, amely keresési beállításokat ad meg a System Center – Data Protection Manager (DPM) által kezelt helyreállítható objektumokhoz. Megadhatja a keresési sztringet, a keresendő helyreállítási pontok tartományát, a keresendő objektum típusát, valamint a helyet, valamint azt, hogy rekurzívan szeretne-e keresni.
A kereséshez használja a Get-DPMRecoverableItem parancsmagot.
Példák
1. példa: Keresési beállítás létrehozása
PS C:\>New-DPMSearchOption -FromRecoveryPoint "15 September 2009" -ToRecoveryPoint "28 September 2009" -SearchDetail FileFolders -SearchType contains -Recursive -SearchString "tobe" -Location "D:\"
Ez a parancs létrehoz egy keresési beállításobjektumot a helyreállítási pontokhoz 2009. szeptember 15. és 2009. szeptember 28. között. Az objektum meghatározza azokat a fájlokat és mappákat, amelyek a D: helyen található sztringet tartalmazzák. A parancs rekurzívként adja meg a keresést. Ezért a keresés a D:\ meghajtó mappáiban lévő fájlokat és mappákat is ellenőrzi.
Paraméterek
-FromRecoveryPoint
Dátum-idő objektumot ad meg. Ez a keresési tartomány első dátuma.
Type: | DateTime |
Position: | 1 |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-Location
A helyreállítási pont helyét adja meg.
Type: | String |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-Recursive
Azt jelzi, hogy a keresés rekurzív.
Type: | SwitchParameter |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-SearchDetail
Megadja a keresendő objektum típusát.
A paraméter elfogadható értékei a következők:
- Fájlmappák
- MailboxByAlias
- MailboxByDisplayName
- WssSite
- WssDocuments
Type: | SearchForDetail |
Accepted values: | FilesFolders, MailboxByAlias, MailboxByDisplayName, WssSite, WssDocuments, ClientVolumes |
Position: | 3 |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-SearchString
A cél helyreállítási pontokban keresendő sztringet adja meg.
Type: | String |
Position: | 5 |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-SearchType
Megadja a keresés összehasonlításának típusát.
A paraméter elfogadható értékei a következők:
- startsWith
- contains
- endsWith
- exactMatch
Type: | SearchFilterType |
Accepted values: | startsWith, contains, endsWith, exactMatch |
Position: | 4 |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-ToRecoveryPoint
Dátum-idő objektumot ad meg. Ez a keresési tartomány utolsó dátuma.
Type: | DateTime |
Position: | 2 |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Kimenetek
SearchOption