Stop-Job cmdlet 停止正在进行的 PowerShell 后台作业。 可以使用此 cmdlet 根据作业的名称、ID、实例 ID 或状态或将作业对象传递给 Stop-Job来停止所有作业或停止所选作业。 可以使用 Stop-Job 来停止后台作业,例如使用 Start-Job cmdlet 或任何 cmdlet 的 AsJob 参数启动
Stop-Job [-PassThru] [-Filter] <Hashtable> [-WhatIf] [-Confirm] [<CommonParameters>] Description Stop-JobCmdlet 會停止進行中的 PowerShell 背景工作。 您可以使用這個 Cmdlet,根據作業的名稱、標識碼、實例標識碼或狀態,或將作業對象傳遞至Stop-Job,來停止所有作業或停止選取的工作。
Microsoft.PowerShell.Core 停止PowerShell 背景工作。 Syntax PowerShell Stop-Job[-PassThru] [-Id] <Int32[]> [-WhatIf] [-Confirm] [<CommonParameters>] PowerShell Stop-Job[-Job] <Job[]> [-PassThru] [-WhatIf] [-Confirm] [<CommonParameters>] ...
Stop-Job Switch-Process Test-ModuleManifest Test-PSSessionConfigurationFile Unregister-PSSessionConfiguration Update-Help Wait-Job Where-Object Microsoft.PowerShell.Diagnostics Microsoft.PowerShell.Host Microsoft.PowerShell.Management Microsoft.PowerShell.Security ...
停止Windows PowerShell 后台作业。 语法 复制 Stop-Job [[-InstanceId] <Guid[]>] [-PassThru] [-Confirm] [-WhatIf] [<CommonParameters>] Stop-Job [-Job] <Job[]> [-PassThru] [-Confirm] [-WhatIf] [<CommonParameters>] Stop-Job [[-Name] <string[]>] [-PassThru] [-Confirm] [-Wha...
Stops a Windows PowerShell background job. Syntax Copy Stop-Job [[-InstanceId] <Guid[]>] [-PassThru] [-Confirm] [-WhatIf] [<CommonParameters>] Stop-Job [-Job] <Job[]> [-PassThru] [-Confirm] [-WhatIf] [<CommonParameters>] Stop-Job [[-Name] <string[]>] [-PassThru] [-Confi...
Summary: Learn how to stop an unwanted Windows PowerShell job. How can I stop an over-running Windows PowerShell job? Even though this is not something you’d normally do, creating an infinite loop is a common (and potentially, very embarrassing) error. This job will run forever: ...
PowerShell Copy Parameter Set: Default Stop-SCJob [-Job] <Task> [ <CommonParameters>] Detailed DescriptionThe Stop-SCJob cmdlet stops one or more System Center Virtual Machine Manager (VMM) jobs that are running, and returns the object for each job in a stopped state. If the VMM job ...
因此,如果作业包含 CmdExec 或PowerShell 类型的步骤,则只应在极特殊的情况下才使用 sp_stop_job。 权限 默认情况下,只有 sysadmin 固定服务器角色的成员才可以执行此存储过程。其他用户必须被授予 msdb 数据库中下列 SQL Server 代理固定数据库角色的权限之一: SQLAgentUserRole SQLAgentReaderRole SQLAgentOperator...
除非您使用 AsJob 参数,否则此 cmdlet 不需要 Windows PowerShell 远程处理。 参数 -AsJob 将命令作为后台作业运行。 注意:若要使用此参数,必须为本地计算机和远程计算机配置远程处理,并且在 Windows Vista 以及更高版本的 Windows 上,还必须使用“以管理员身份运行”选项打开 Windows PowerShell。有关详细信息,请参...