Skip to content

Instantly share code, notes, and snippets.

@dlwyatt
Created May 29, 2014 03:55
Show Gist options
  • Save dlwyatt/a66d303c75b037d6778d to your computer and use it in GitHub Desktop.
Save dlwyatt/a66d303c75b037d6778d to your computer and use it in GitHub Desktop.
JobScript update
$JobScript = @"
&{
`$DebugPreference = 'Continue'
Write-Debug "Start(Ticks) = `$((get-date).Ticks)"
}
& { $ScriptBlock } @args
&{
`$DebugPreference = 'Continue'
Write-Debug "End(Ticks) = `$((get-date).Ticks)"
}
"@
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment