PowerShell Logo Small

Get-StorageJob



This is the built-in help made by Microsoft for the command 'Get-StorageJob', in PowerShell version 5 - as retrieved from Windows version 'Microsoft Windows Server 2012 R2 Standard' PowerShell help files on 2016-06-23.

For PowerShell version 3 and up, where you have Update-Help, this command was run just before creating the web pages from the help files.

SYNOPSIS

Returns information about long-running Storage module jobs, such as a repair task.

SYNTAX


Get-StorageJob [-AsJob] [-CimSession <CimSession[]>] [-JobState <JobState[]>] [-Name <String[]>] [-ThrottleLimit <Int32>] [<CommonParameters>]
Get-StorageJob [-AsJob] [-CimSession <CimSession[]>] [-JobState <JobState[]>] [-ThrottleLimit <Int32>] [-UniqueId <String[]>] [<CommonParameters>]
Get-StorageJob [-AsJob] [-CimSession <CimSession[]>] [-JobState <JobState[]>] [-Name <String[]>] [-StoragePool <CimInstance>] [-ThrottleLimit <Int32>] [-VirtualDisk
<CimInstance>] [<CommonParameters>]
Get-StorageJob [-AsJob] [-CimSession <CimSession[]>] [-JobState <JobState[]>] [-StorageSubsystem <CimInstance>] [-ThrottleLimit <Int32>] [<CommonParameters>]



Search powershellhelp.space

DESCRIPTION


The Get-StorageJob cmdlet returns information about long-running Storage module jobs, such as a repair operation on a storage space.



<

RELATED LINKS

Online Version: http://go.microsoft.com/fwlink/?LinkID=298359
Receive-Job

REMARKS

<

Examples


Example 1: Get all current storage jobs

PS C:\>Get-StorageJob
Name ElapsedTime JobState PercentComplete IsBackgroundTask
---- ----------- -------- --------------- ----------------
Regeneration 00:00:00 Running 50 True



This example displays a list of all current storage jobs.




Example 2: Get all storage jobs on the Storage Spaces subsystem

PS C:\>Get-StorageJob -StorageSubsystem (Get-StorageSubSystem -FriendlyName "Storage Spaces*")



This example gets all storage jobs on the Storage Spaces subsystem, using the Get-StorageSubSystem cmdlet to get the StorageSubsystem object.