Repair-SCStorageFileShare
Helyreállítja a tárfájlmegosztást.
Syntax
Repair-SCStorageFileShare
-VMHost <Host>
-StorageFileShare <StorageFileShare>
[-RunAsynchronously]
[-PROTipID <Guid>]
[-JobVariable <String>]
[<CommonParameters>]
Repair-SCStorageFileShare
-VMHostCluster <HostCluster>
-StorageFileShare <StorageFileShare>
[-RunAsynchronously]
[-PROTipID <Guid>]
[-JobVariable <String>]
[<CommonParameters>]
Repair-SCStorageFileShare
-LibraryServer <LibraryServer>
-StorageFileShare <StorageFileShare>
[-RunAsynchronously]
[-PROTipID <Guid>]
[-JobVariable <String>]
[<CommonParameters>]
Description
A Repair-SCStorageFileShare parancsmag kijavít egy megadott tárolási fájlmegosztást.
Példák
1. példa: Tárfájlmegosztás javítása virtuálisgép-gazdagép biztosításával
PS C:\> $FileShare = Get-SCStorageFileShare -Name "FileShare01"
PS C:\> $VMHost = Get-SCVMHost -ComputerName "VMHost01"
PS C:\> Repair-SCStorageFileShare -StorageFileShare $FileShare -VMHost $VMHost
Az első parancs lekéri a FileShare01 nevű storage-fájlmegosztási objektumot, és az objektumot a $FileShare változóban tárolja.
A második parancs helyreállítja a FileShare01 fájlt.
Paraméterek
-JobVariable
Meghatározza, hogy a feladat előrehaladása nyomon legyen követve és tárolva legyen a paraméter által elnevezett változóban.
Type: | String |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-LibraryServer
A Virtual Machine Manager (VMM) erőforrástár-kiszolgáló objektumát adja meg.
Type: | LibraryServer |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-PROTipID
Megadja a műveletet kiváltó teljesítmény- és erőforrás-optimalizálási tipp (PRO-tipp) azonosítóját. Ez a paraméter lehetővé teszi a PRO-tippek naplózását.
Type: | Guid |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-RunAsynchronously
Azt jelzi, hogy a feladat aszinkron módon fut, így a vezérlő azonnal visszatér a parancsfelületre.
Type: | SwitchParameter |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-StorageFileShare
Tárolófájl-megosztást ad meg.
Type: | StorageFileShare |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-VMHost
Egy virtuálisgép-gazdaobjektumot határoz meg. A VMM támogatja a Hyper-V-gazdagépeket, a VMware ESX-gazdagépeket és a Citrix XenServer-gazdagépeket.
Az egyes gazdagéptípusokkal kapcsolatos további információkért tekintse meg az Add-SCVMHost parancsmagot.
Type: | Host |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-VMHostCluster
VMM-gazdagépfürt-objektumot ad meg.
Type: | HostCluster |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |