We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4a2cee6 commit 0763bd0Copy full SHA for 0763bd0
1 file changed
Tests/Integration/MSFT_xScheduledTask.Integration.Tests.ps1
@@ -373,6 +373,15 @@ try
373
finally
374
{
375
#region FOOTER
376
+
377
+ # Remove any traces of the created tasks
378
+ Get-ScheduledTask -TaskPath '\xComputerManagement\' -ErrorAction SilentlyContinue | Unregister-ScheduledTask -ErrorAction SilentlyContinue -Confirm:$false
379
380
+ $scheduler = New-Object -ComObject Schedule.Service
381
+ $scheduler.Connect()
382
+ $rootFolder = $scheduler.GetFolder('\')
383
+ $rootFolder.DeleteFolder('xComputerManagement', 0)
384
385
Restore-TestEnvironment -TestEnvironment $TestEnvironment
386
#endregion
387
}
0 commit comments