Produced by Araxis Merge on 1/16/2018 5:28:59 PM Eastern Standard Time. See www.araxis.com for information about Merge. This report uses XHTML and CSS2, and is best viewed with a modern standards-compliant browser. For optimum results when printing this report, use landscape orientation and enable printing of background images and colours in your browser.
# | Location | File | Last Modified |
---|---|---|---|
1 | RAMS-2.2.0.zip\RAMS-2.2.0\ps | ScheduleTask.ps1 | Wed Oct 25 18:23:12 2017 UTC |
2 | RAMS-2.2.0.zip\RAMS-2.2.0\ps | ScheduleTask.ps1 | Tue Jan 16 21:48:17 2018 UTC |
Description | Between Files 1 and 2 |
|
---|---|---|
Text Blocks | Lines | |
Unchanged | 2 | 68 |
Changed | 1 | 4 |
Inserted | 0 | 0 |
Removed | 0 | 0 |
Whitespace | |
---|---|
Character case | Differences in character case are significant |
Line endings | Differences in line endings (CR and LF characters) are ignored |
CR/LF characters | Not shown in the comparison detail |
No regular expressions were active.
1 | <# | |
2 | $fileLoca tionPS= "D :\RAMS-2.2 .0\PS\" | |
3 | #Sched ule task u ser id and password | |
4 | $STUserNam e = " DN S \ D N
|
|
5 | $STPasswor d = "
|
|
6 | #> | |
7 | $migrateFi le = $file LocationPS + 'Migrat eFacilityD ataSchedul eTask.ps1' | |
8 | ||
9 | $migrateFi le = $migr ateFile + ' -localSi teUrl ' + $siteUrl | |
10 | ||
11 | $action = New-Schedu ledTaskAct ion -Execu te 'Powers hell.exe' -Argument $migrateFi le | |
12 | ||
13 | try | |
14 | { | |
15 | Unregi ster-Sched uledTask - TaskName " MigrateFac ilityDataS cheduleTas k" | |
16 | } | |
17 | catch | |
18 | { | |
19 | Write-Ho st "Task A lready Exi st" | |
20 | } | |
21 | ||
22 | $trigger = New-Sched uledTaskTr igger -Onc e -At 7am -Repetitio nDuration (New-Time Span -Days 1) -Repe titionInte rval (New -TimeSpan -Minutes 1 0) | |
23 | ||
24 | #$Trigger = New-Sche duledTaskT rigger -Ra ndomDelay (New-TimeS pan -Minut es 10) -At Startup | |
25 | ||
26 | $settings = New-Sche duledTaskS ettingsSet -Hidden - AllowStart IfOnBatter ies -DontS topIfGoing OnBatterie s -StartWh enAvailabl e -RunOnly IfNetworkA vailable | |
27 | ||
28 | $UserName = $STUserN ame | |
29 | $Password = $STPassw ord | |
30 | ||
31 | ||
32 | Register-S cheduledTa sk -Action $action - Trigger $t rigger -Ta skName "Mi grateFacil ityDataSch eduleTask" -User $Us erName -Pa ssword $Pa ssword -De scription "MigrateFa cilityData " -Setting s $setting s | |
33 | ||
34 | ||
35 | ||
36 |
Araxis Merge (but not the data content of this report) is Copyright © 1993-2016 Araxis Ltd (www.araxis.com). All rights reserved.