Skip to content

Commit

Permalink
clear Invocation variable from other runs
Browse files Browse the repository at this point in the history
  • Loading branch information
CodyMathis123 committed Dec 24, 2018
1 parent c2f237b commit 4bb53f9
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions New-ClientActionScheduledTask.ps1
Expand Up @@ -153,6 +153,7 @@ function Start-CMClientAction {
$StopWatch = [System.Diagnostics.Stopwatch]::StartNew()
do {
try {
Remove-Variable Invocation -ErrorAction SilentlyContinue
$invokeWmiMethodSplat = @{
ComputerName = $Computer
Name = 'TriggerSchedule'
Expand Down

0 comments on commit 4bb53f9

Please sign in to comment.