Skip to content

Commit 246075b

Browse files
committed
change function name
1 parent ddb956d commit 246075b

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

jumpcloud-ADMU/Powershell/Start-Migration.ps1

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1378,7 +1378,7 @@ function Test-DATFilePermission {
13781378
}
13791379
}
13801380
}
1381-
function SetScheduledTask {
1381+
function Set-ADMUScheduledTask {
13821382
# Param op "disable" or "enable" then -tasks (array of tasks)
13831383
param (
13841384
[Parameter(Mandatory = $true)]
@@ -1588,7 +1588,7 @@ Function Start-Migration {
15881588
Write-ToLog -message:("Disabling Scheduled Tasks...")
15891589
# Check if $ScheduledTasks is not null
15901590
if ($ScheduledTasks) {
1591-
SetScheduledTask -op "disable" -scheduledTasks $ScheduledTasks
1591+
Set-ADMUScheduledTask -op "disable" -scheduledTasks $ScheduledTasks
15921592
} else {
15931593
Write-ToLog -message:("No Scheduled Tasks to disable")
15941594
}
@@ -2125,7 +2125,7 @@ Function Start-Migration {
21252125

21262126
# re-enable scheduled tasks if they were disabled
21272127
if ($ScheduledTasks) {
2128-
SetScheduledTask -op "enable" -scheduledTasks $ScheduledTasks
2128+
Set-ADMUScheduledTask -op "enable" -scheduledTasks $ScheduledTasks
21292129
} else {
21302130
Write-ToLog -Message:('No Scheduled Tasks to enable')
21312131
}
@@ -2176,7 +2176,7 @@ Function Start-Migration {
21762176
$FixedErrors += "$trackedStep"
21772177
# Create a list of scheduled tasks that are disabled
21782178
if ($ScheduledTasks) {
2179-
SetScheduledTask -op "enable" -scheduledTasks $ScheduledTasks
2179+
Set-ADMUScheduledTask -op "enable" -scheduledTasks $ScheduledTasks
21802180
} else {
21812181
Write-ToLog -Message:('No Scheduled Tasks to enable')
21822182
}

0 commit comments

Comments
 (0)