|
1 | 1 | [ |
2 | 2 | { |
| 3 | + "TaskPath": "\\MyTaskFolder\\", |
| 4 | + "Principal": { |
| 5 | + "LogonType": "S4U", |
| 6 | + "RunLevel": "Highest", |
| 7 | + "UserId": "myusername" |
| 8 | + }, |
3 | 9 | "Settings": { |
| 10 | + "Disable": false, |
4 | 11 | "AllowStartIfOnBatteries": true, |
5 | | - "DontStopIfGoingOnBatteries": true, |
6 | | - "Disable": false |
| 12 | + "DontStopIfGoingOnBatteries": true |
7 | 13 | }, |
8 | 14 | "Trigger": [ |
9 | 15 | { |
10 | 16 | "AtStartup": true |
11 | 17 | }, |
12 | 18 | { |
13 | | - "DaysInterval": 1, |
14 | 19 | "At": { |
| 20 | + "Hour": 17, |
15 | 21 | "Minute": 30, |
16 | | - "Month": 11, |
| 22 | + "Second": 0, |
17 | 23 | "Day": 30, |
18 | 24 | "Year": 1999, |
19 | | - "Hour": 17, |
20 | | - "Second": 0 |
| 25 | + "Month": 11 |
21 | 26 | }, |
22 | | - "Daily": true |
| 27 | + "Daily": true, |
| 28 | + "DaysInterval": 1 |
23 | 29 | } |
24 | 30 | ], |
25 | | - "TaskName": "MyTaskName1", |
26 | | - "Principal": { |
27 | | - "UserId": "myusername", |
28 | | - "LogonType": "S4U", |
29 | | - "RunLevel": "Highest" |
30 | | - }, |
31 | 31 | "Action": [ |
32 | 32 | { |
33 | | - "Argument": "-NonInteractive -NoProfile -NoLogo -Command 'New-Item \"$env:TEMP\\$(Get-Date -UFormat .%s.1)\"'", |
34 | | - "Execute": "powershell" |
| 33 | + "Execute": "powershell", |
| 34 | + "Argument": "-NonInteractive -NoProfile -NoLogo -Command 'New-Item \"$env:TEMP\\$(Get-Date -UFormat .%s-1-1)\"'" |
35 | 35 | }, |
36 | 36 | { |
37 | | - "Argument": "-NonInteractive -NoProfile -NoLogo -Command 'New-Item \"$env:TEMP\\$(Get-Date -UFormat .%s.2)\"'", |
38 | | - "Execute": "powershell" |
| 37 | + "Execute": "powershell", |
| 38 | + "Argument": "-NonInteractive -NoProfile -NoLogo -Command 'New-Item \"$env:TEMP\\$(Get-Date -UFormat .%s-1-2)\"'" |
39 | 39 | } |
40 | 40 | ], |
41 | | - "TaskPath": "\\MyTaskFolder\\" |
| 41 | + "TaskName": "MyTaskName1" |
42 | 42 | }, |
43 | 43 | { |
| 44 | + "TaskPath": "\\MyTaskFolder\\", |
| 45 | + "Principal": { |
| 46 | + "LogonType": "S4U", |
| 47 | + "RunLevel": "Limited", |
| 48 | + "UserId": "NT AUTHORITY\\SYSTEM" |
| 49 | + }, |
44 | 50 | "Settings": { |
| 51 | + "Disable": false, |
45 | 52 | "AllowStartIfOnBatteries": true, |
46 | | - "DontStopIfGoingOnBatteries": true, |
47 | | - "Disable": false |
| 53 | + "DontStopIfGoingOnBatteries": true |
48 | 54 | }, |
49 | 55 | "Trigger": [ |
50 | 56 | { |
51 | 57 | "At": { |
| 58 | + "Hour": 14, |
52 | 59 | "Minute": 0, |
53 | | - "Month": 11, |
| 60 | + "Second": 0, |
54 | 61 | "Day": 30, |
55 | 62 | "Year": 1999, |
56 | | - "Hour": 14, |
57 | | - "Second": 0 |
| 63 | + "Month": 11 |
58 | 64 | }, |
| 65 | + "Once": true, |
59 | 66 | "RepetitionInterval": { |
60 | | - "Minute": 0, |
61 | 67 | "Hour": 12, |
| 68 | + "Minute": 0, |
62 | 69 | "Second": 0 |
63 | | - }, |
64 | | - "Once": true |
| 70 | + } |
65 | 71 | } |
66 | 72 | ], |
67 | | - "TaskName": "MyTaskName2", |
68 | | - "Principal": { |
69 | | - "UserId": "NT AUTHORITY\\SYSTEM", |
70 | | - "LogonType": "S4U", |
71 | | - "RunLevel": "Limited" |
72 | | - }, |
73 | 73 | "Action": [ |
74 | 74 | { |
75 | | - "Argument": "-NonInteractive -NoProfile -NoLogo -Command 'New-Item \"$env:TEMP\\$(Get-Date -UFormat .%s.1)\"'", |
76 | | - "Execute": "powershell" |
| 75 | + "Execute": "powershell", |
| 76 | + "Argument": "-NonInteractive -NoProfile -NoLogo -Command 'New-Item \"$env:TEMP\\$(Get-Date -UFormat .%s-2-1)\"'" |
77 | 77 | }, |
78 | 78 | { |
79 | | - "Argument": "-NonInteractive -NoProfile -NoLogo -Command 'New-Item \"$env:TEMP\\$(Get-Date -UFormat .%s.2)\"'", |
80 | | - "Execute": "powershell" |
| 79 | + "Execute": "powershell", |
| 80 | + "Argument": "-NonInteractive -NoProfile -NoLogo -Command 'New-Item \"$env:TEMP\\$(Get-Date -UFormat .%s-2-2)\"'" |
81 | 81 | } |
82 | 82 | ], |
83 | | - "TaskPath": "\\MyTaskFolder\\" |
| 83 | + "TaskName": "MyTaskName2" |
84 | 84 | }, |
85 | 85 | { |
| 86 | + "TaskPath": "\\MyTaskFolder\\", |
| 87 | + "Principal": { |
| 88 | + "LogonType": "S4U", |
| 89 | + "RunLevel": "Highest", |
| 90 | + "UserId": "myusername" |
| 91 | + }, |
86 | 92 | "Settings": { |
| 93 | + "Disable": false, |
87 | 94 | "AllowStartIfOnBatteries": true, |
88 | | - "DontStopIfGoingOnBatteries": true, |
89 | | - "Disable": false |
| 95 | + "DontStopIfGoingOnBatteries": true |
90 | 96 | }, |
91 | 97 | "Trigger": [ |
92 | 98 | { |
93 | | - "DaysInterval": 1, |
94 | 99 | "At": { |
| 100 | + "Hour": 10, |
95 | 101 | "Minute": 0, |
96 | | - "Month": 11, |
| 102 | + "Second": 0, |
97 | 103 | "Day": 30, |
98 | 104 | "Year": 1999, |
99 | | - "Hour": 10, |
100 | | - "Second": 0 |
| 105 | + "Month": 11 |
101 | 106 | }, |
102 | | - "Daily": true |
| 107 | + "Daily": true, |
| 108 | + "DaysInterval": 1 |
103 | 109 | }, |
104 | 110 | { |
105 | | - "DaysInterval": 1, |
106 | 111 | "At": { |
| 112 | + "Hour": 14, |
107 | 113 | "Minute": 0, |
108 | | - "Month": 11, |
| 114 | + "Second": 0, |
109 | 115 | "Day": 30, |
110 | 116 | "Year": 1999, |
111 | | - "Hour": 14, |
112 | | - "Second": 0 |
| 117 | + "Month": 11 |
113 | 118 | }, |
114 | | - "Daily": true |
| 119 | + "Daily": true, |
| 120 | + "DaysInterval": 1 |
115 | 121 | }, |
116 | 122 | { |
117 | | - "DaysInterval": 1, |
118 | 123 | "At": { |
| 124 | + "Hour": 18, |
119 | 125 | "Minute": 0, |
120 | | - "Month": 11, |
| 126 | + "Second": 0, |
121 | 127 | "Day": 30, |
122 | 128 | "Year": 1999, |
123 | | - "Hour": 18, |
124 | | - "Second": 0 |
| 129 | + "Month": 11 |
125 | 130 | }, |
126 | | - "Daily": true |
| 131 | + "Daily": true, |
| 132 | + "DaysInterval": 1 |
127 | 133 | }, |
128 | 134 | { |
129 | | - "DaysInterval": 1, |
130 | 135 | "At": { |
| 136 | + "Hour": 22, |
131 | 137 | "Minute": 0, |
132 | | - "Month": 11, |
| 138 | + "Second": 0, |
133 | 139 | "Day": 30, |
134 | 140 | "Year": 1999, |
135 | | - "Hour": 22, |
136 | | - "Second": 0 |
| 141 | + "Month": 11 |
137 | 142 | }, |
138 | | - "Daily": true |
| 143 | + "Daily": true, |
| 144 | + "DaysInterval": 1 |
139 | 145 | } |
140 | 146 | ], |
141 | | - "TaskName": "MyTaskName3", |
142 | | - "Principal": { |
143 | | - "UserId": "myusername", |
144 | | - "LogonType": "S4U", |
145 | | - "RunLevel": "Highest" |
146 | | - }, |
147 | 147 | "Action": [ |
148 | 148 | { |
149 | | - "Argument": "-NonInteractive -NoProfile -NoLogo -Command 'New-Item \"$env:TEMP\\$(Get-Date -UFormat .%s.1)\"'", |
150 | | - "Execute": "powershell" |
| 149 | + "Execute": "powershell", |
| 150 | + "Argument": "-NonInteractive -NoProfile -NoLogo -Command 'New-Item \"$env:TEMP\\$(Get-Date -UFormat .%s-3-1)\"'" |
151 | 151 | }, |
152 | 152 | { |
153 | | - "Argument": "-NonInteractive -NoProfile -NoLogo -Command 'New-Item \"$env:TEMP\\$(Get-Date -UFormat .%s.2)\"'", |
154 | | - "Execute": "powershell" |
| 153 | + "Execute": "powershell", |
| 154 | + "Argument": "-NonInteractive -NoProfile -NoLogo -Command 'New-Item \"$env:TEMP\\$(Get-Date -UFormat .%s-3-2)\"'" |
155 | 155 | }, |
156 | 156 | { |
157 | | - "Argument": "-NonInteractive -NoProfile -NoLogo -Command 'New-Item \"$env:TEMP\\$(Get-Date -UFormat .%s.3)\"'", |
158 | | - "Execute": "powershell" |
| 157 | + "Execute": "powershell", |
| 158 | + "Argument": "-NonInteractive -NoProfile -NoLogo -Command 'New-Item \"$env:TEMP\\$(Get-Date -UFormat .%s-3-3)\"'" |
159 | 159 | } |
160 | 160 | ], |
161 | | - "TaskPath": "\\MyTaskFolder\\" |
| 161 | + "TaskName": "MyTaskName3" |
162 | 162 | } |
163 | 163 | ] |
0 commit comments