Microsoft.PowerShell.Core 获取当前会话中运行的 PowerShell 后台作业。 语法 PowerShell Get-Job[-IncludeChildJob] [-ChildJobState <JobState>] [-HasMoreData <Boolean>] [-Before <DateTime>] [-After <DateTime>] [-Newest <Int32>] [[-Id] <Int32[]>] [<CommonParameters>] ...
PowerShell 复制 Get-JobTrigger [[-TriggerId] <Int32[]>] [-Name] <String> [<CommonParameters>]说明Get-JobTrigger cmdlet 获取计划作业的作业触发器。 可以使用此命令检查作业触发器或将作业触发器通过管道传递给其他 cmdlet。 作业触发器定义用于启动计划作业的定期计划或条件。 作业触发器不会单独保存到...
A PowerShell job represents a background task that runs independently of the current session. Jobs allow long-running tasks to execute without blocking the console. Each job has a unique ID, name, state, and other properties. The Get-Job cmdlet is essential for job monitoring and management....
Any job command remotely, including a Start-Job command. PowerShell Job 实例 o实例一:Start-Job -ScriptBlock {Get-Process} $job = Start-Job -ScriptBlock {Get-Process} The above command starts a background job that runs a Get-Process command on the local computer. o实例二:PS C:\>Get-...
Applies To: Windows PowerShell 2.0 Gets Windows PowerShell background jobs that are running in the current session. Syntax Copy Get-Job [-Command <string[]>] [<CommonParameters>] Get-Job [[-InstanceId] <Guid[]>] [<CommonParameters>] Get-Job [[-Name] <string[]>] [<CommonParameters>]...
Get-ScheduledJob (PowerShell 3.0+) Syntax Get-ScheduledJob [[-Id]Int32[]] [CommonParameters] Get-ScheduledJob [-Name]String[] [CommonParameters] Key -Id Get only the scheduled jobs with the specified identification number (ID). Enter one or more IDs of scheduled jobs on the computer....
PowerShell Копіювати Get-SqlAgentJob [[-ServerInstance] <String[]>] [-Credential <PSCredential>] [-ConnectionTimeout <Int32>] [[-Name] <String>] [-AccessToken <PSObject>] [-TrustServerCertificate] [-HostNameInCertificate <String>] [-Encrypt <String>] [-ProgressAction <...
PowerShell Get-SqlAgentJob[[-ServerInstance] <String[]>] [-Credential <PSCredential>] [-ConnectionTimeout <Int32>] [[-Name] <String>] [-AccessToken <PSObject>] [-TrustServerCertificate] [-HostNameInCertificate <String>] [-Encrypt <String>] [-ProgressAction <ActionPreference>] [<CommonPara...
Amazon.PowerShell.Cmdlets.DF.AmazonDeviceFarmClientCmdlet.ClientConfig Required? False Position? Named Accept pipeline input? True (ByPropertyName) -NextToken <String> An identifier that was returned from the previous call to this operation, which can be used to return the next set of items in...
以及怎样处理这些任务呢,本篇将会告诉你PowerShell后台任务处理。