11Configuration xScheduledTaskOnceAdd
22{
33 Import-DscResource - ModuleName xComputerManagement
4- node " localhost"
4+ node ' localhost'
55 {
66 xScheduledTask xScheduledTaskOnceAdd
77 {
8- TaskName = " Test task once"
9- TaskPath = " \xComputerManagement\"
10- ActionExecutable = " C:\windows\system32\WindowsPowerShell\v1.0\powershell.exe"
8+ TaskName = ' Test task once'
9+ TaskPath = ' \xComputerManagement\'
10+ ActionExecutable = ' C:\windows\system32\WindowsPowerShell\v1.0\powershell.exe'
1111 ScheduleType = ' Once'
1212 RepeatInterval = [datetime ]::Today.AddMinutes(15 )
1313 RepetitionDuration = [datetime ]::Today.AddHours(8 )
@@ -24,13 +24,13 @@ Configuration xScheduledTaskOnceAdd
2424Configuration xScheduledTaskDailyAdd
2525{
2626 Import-DscResource - ModuleName xComputerManagement
27- node " localhost"
27+ node ' localhost'
2828 {
2929 xScheduledTask xScheduledTaskDailyAdd
3030 {
31- TaskName = " Test task Daily"
32- TaskPath = " \xComputerManagement\"
33- ActionExecutable = " C:\windows\system32\WindowsPowerShell\v1.0\powershell.exe"
31+ TaskName = ' Test task Daily'
32+ TaskPath = ' \xComputerManagement\'
33+ ActionExecutable = ' C:\windows\system32\WindowsPowerShell\v1.0\powershell.exe'
3434 ScheduleType = ' Daily'
3535 DaysInterval = 1
3636 RepeatInterval = [datetime ]::Today.AddMinutes(15 )
@@ -46,19 +46,19 @@ Configuration xScheduledTaskDailyAdd
4646Configuration xScheduledTaskWeeklyAdd
4747{
4848 Import-DscResource - ModuleName xComputerManagement
49- node " localhost"
49+ node ' localhost'
5050 {
5151 xScheduledTask xScheduledTaskWeeklyAdd
5252 {
53- TaskName = " Test task Weekly"
54- TaskPath = " \xComputerManagement\"
55- ActionExecutable = " C:\windows\system32\WindowsPowerShell\v1.0\powershell.exe"
53+ TaskName = ' Test task Weekly'
54+ TaskPath = ' \xComputerManagement\'
55+ ActionExecutable = ' C:\windows\system32\WindowsPowerShell\v1.0\powershell.exe'
5656 ScheduleType = ' Weekly'
5757 WeeksInterval = 1
58- DaysOfWeek = ' Monday' , ' Wednesday' , ' Saturday'
58+ DaysOfWeek = ' Monday' , ' Wednesday' , ' Saturday'
5959 RepeatInterval = [datetime ]::Today.AddMinutes(15 )
6060 RepetitionDuration = [datetime ]::Today.AddHours(8 )
61- AllowStartIfOnBatteries = $true
61+ AllowStartIfOnBatteries = $true
6262 Compatibility = ' Win8'
6363 Hidden = $true
6464 }
@@ -68,13 +68,13 @@ Configuration xScheduledTaskWeeklyAdd
6868Configuration xScheduledTaskLogonAdd
6969{
7070 Import-DscResource - ModuleName xComputerManagement
71- node " localhost"
71+ node ' localhost'
7272 {
7373 xScheduledTask xScheduledTaskOnceAdd
7474 {
75- TaskName = " Test task Logon"
76- TaskPath = " \xComputerManagement\"
77- ActionExecutable = " C:\windows\system32\WindowsPowerShell\v1.0\powershell.exe"
75+ TaskName = ' Test task Logon'
76+ TaskPath = ' \xComputerManagement\'
77+ ActionExecutable = ' C:\windows\system32\WindowsPowerShell\v1.0\powershell.exe'
7878 ScheduleType = ' AtLogOn'
7979 RepeatInterval = [datetime ]::Today.AddMinutes(15 )
8080 RepetitionDuration = [datetime ]::Today.AddHours(8 )
@@ -85,13 +85,13 @@ Configuration xScheduledTaskLogonAdd
8585Configuration xScheduledTaskStartupAdd
8686{
8787 Import-DscResource - ModuleName xComputerManagement
88- node " localhost"
88+ node ' localhost'
8989 {
9090 xScheduledTask xScheduledTaskOnceAdd
9191 {
92- TaskName = " Test task Startup"
93- TaskPath = " \xComputerManagement\"
94- ActionExecutable = " C:\windows\system32\WindowsPowerShell\v1.0\powershell.exe"
92+ TaskName = ' Test task Startup'
93+ TaskPath = ' \xComputerManagement\'
94+ ActionExecutable = ' C:\windows\system32\WindowsPowerShell\v1.0\powershell.exe'
9595 ScheduleType = ' AtStartup'
9696 RepeatInterval = [datetime ]::Today.AddMinutes(15 )
9797 RepetitionDuration = [datetime ]::Today.AddHours(8 )
@@ -102,13 +102,13 @@ Configuration xScheduledTaskStartupAdd
102102Configuration xScheduledTaskOnceMod
103103{
104104 Import-DscResource - ModuleName xComputerManagement
105- node " localhost"
105+ node ' localhost'
106106 {
107107 xScheduledTask xScheduledTaskOnceMod
108108 {
109- TaskName = " Test task once"
110- TaskPath = " \xComputerManagement\"
111- ActionExecutable = " C:\windows\system32\WindowsPowerShell\v1.0\powershell.exe"
109+ TaskName = ' Test task once'
110+ TaskPath = ' \xComputerManagement\'
111+ ActionExecutable = ' C:\windows\system32\WindowsPowerShell\v1.0\powershell.exe'
112112 ScheduleType = ' Once'
113113 RepeatInterval = [datetime ]::Today.AddMinutes(20 )
114114 RepetitionDuration = [datetime ]::Today.AddHours(8 )
@@ -120,13 +120,13 @@ Configuration xScheduledTaskOnceMod
120120Configuration xScheduledTaskDailyMod
121121{
122122 Import-DscResource - ModuleName xComputerManagement
123- node " localhost"
123+ node ' localhost'
124124 {
125125 xScheduledTask xScheduledTaskDailyMod
126126 {
127- TaskName = " Test task Daily"
128- TaskPath = " \xComputerManagement\"
129- ActionExecutable = " C:\windows\system32\WindowsPowerShell\v1.0\powershell.exe"
127+ TaskName = ' Test task Daily'
128+ TaskPath = ' \xComputerManagement\'
129+ ActionExecutable = ' C:\windows\system32\WindowsPowerShell\v1.0\powershell.exe'
130130 ScheduleType = ' Daily'
131131 DaysInterval = 2
132132 RepeatInterval = [datetime ]::Today.AddMinutes(30 )
@@ -139,16 +139,16 @@ Configuration xScheduledTaskDailyMod
139139Configuration xScheduledTaskWeeklyMod
140140{
141141 Import-DscResource - ModuleName xComputerManagement
142- node " localhost"
142+ node ' localhost'
143143 {
144144 xScheduledTask xScheduledTaskWeeklyMod
145145 {
146- TaskName = " Test task Weekly"
147- TaskPath = " \xComputerManagement\"
148- ActionExecutable = " C:\windows\system32\WindowsPowerShell\v1.0\powershell.exe"
146+ TaskName = ' Test task Weekly'
147+ TaskPath = ' \xComputerManagement\'
148+ ActionExecutable = ' C:\windows\system32\WindowsPowerShell\v1.0\powershell.exe'
149149 ScheduleType = ' Weekly'
150150 WeeksInterval = 1
151- DaysOfWeek = ' Monday' , ' Thursday' , ' Saturday'
151+ DaysOfWeek = ' Monday' , ' Thursday' , ' Saturday'
152152 RepeatInterval = [datetime ]::Today.AddMinutes(40 )
153153 RepetitionDuration = [datetime ]::Today.AddHours(8 )
154154 }
@@ -158,13 +158,13 @@ Configuration xScheduledTaskWeeklyMod
158158Configuration xScheduledTaskLogonMod
159159{
160160 Import-DscResource - ModuleName xComputerManagement
161- node " localhost"
161+ node ' localhost'
162162 {
163163 xScheduledTask xScheduledTaskOnceMod
164164 {
165- TaskName = " Test task Logon"
166- TaskPath = " \xComputerManagement\"
167- ActionExecutable = " C:\windows\system32\WindowsPowerShell\v1.0\powershell.exe"
165+ TaskName = ' Test task Logon'
166+ TaskPath = ' \xComputerManagement\'
167+ ActionExecutable = ' C:\windows\system32\WindowsPowerShell\v1.0\powershell.exe'
168168 ScheduleType = ' AtStartup'
169169 RepeatInterval = [datetime ]::Today.AddMinutes(12 )
170170 RepetitionDuration = [datetime ]::Today.AddHours(8 )
@@ -175,13 +175,13 @@ Configuration xScheduledTaskLogonMod
175175Configuration xScheduledTaskStartupMod
176176{
177177 Import-DscResource - ModuleName xComputerManagement
178- node " localhost"
178+ node ' localhost'
179179 {
180180 xScheduledTask xScheduledTaskOnceMod
181181 {
182- TaskName = " Test task Startup"
183- TaskPath = " \xComputerManagement\"
184- ActionExecutable = " C:\windows\system32\WindowsPowerShell\v1.0\powershell.exe"
182+ TaskName = ' Test task Startup'
183+ TaskPath = ' \xComputerManagement\'
184+ ActionExecutable = ' C:\windows\system32\WindowsPowerShell\v1.0\powershell.exe'
185185 ScheduleType = ' AtLogOn'
186186 RepeatInterval = [datetime ]::Today.AddMinutes(10 )
187187 RepetitionDuration = [datetime ]::Today.AddHours(8 )
@@ -192,13 +192,13 @@ Configuration xScheduledTaskStartupMod
192192Configuration xScheduledTaskOnceDel
193193{
194194 Import-DscResource - ModuleName xComputerManagement
195- node " localhost"
195+ node ' localhost'
196196 {
197197 xScheduledTask xScheduledTaskOnceDel
198198 {
199- TaskName = " Test task once"
200- TaskPath = " \xComputerManagement\"
201- ActionExecutable = " C:\windows\system32\WindowsPowerShell\v1.0\powershell.exe"
199+ TaskName = ' Test task once'
200+ TaskPath = ' \xComputerManagement\'
201+ ActionExecutable = ' C:\windows\system32\WindowsPowerShell\v1.0\powershell.exe'
202202 ScheduleType = ' Once'
203203 RepeatInterval = [datetime ]::Today.AddMinutes(20 )
204204 RepetitionDuration = [datetime ]::Today.AddHours(8 )
@@ -211,13 +211,13 @@ Configuration xScheduledTaskOnceDel
211211Configuration xScheduledTaskDailyDel
212212{
213213 Import-DscResource - ModuleName xComputerManagement
214- node " localhost"
214+ node ' localhost'
215215 {
216216 xScheduledTask xScheduledTaskDailyDel
217217 {
218- TaskName = " Test task Daily"
219- TaskPath = " \xComputerManagement\"
220- ActionExecutable = " C:\windows\system32\WindowsPowerShell\v1.0\powershell.exe"
218+ TaskName = ' Test task Daily'
219+ TaskPath = ' \xComputerManagement\'
220+ ActionExecutable = ' C:\windows\system32\WindowsPowerShell\v1.0\powershell.exe'
221221 ScheduleType = ' Daily'
222222 DaysInterval = 2
223223 RepeatInterval = [datetime ]::Today.AddMinutes(30 )
@@ -231,16 +231,16 @@ Configuration xScheduledTaskDailyDel
231231Configuration xScheduledTaskWeeklyDel
232232{
233233 Import-DscResource - ModuleName xComputerManagement
234- node " localhost"
234+ node ' localhost'
235235 {
236236 xScheduledTask xScheduledTaskWeeklyDel
237237 {
238- TaskName = " Test task Weekly"
239- TaskPath = " \xComputerManagement\"
240- ActionExecutable = " C:\windows\system32\WindowsPowerShell\v1.0\powershell.exe"
238+ TaskName = ' Test task Weekly'
239+ TaskPath = ' \xComputerManagement\'
240+ ActionExecutable = ' C:\windows\system32\WindowsPowerShell\v1.0\powershell.exe'
241241 ScheduleType = ' Weekly'
242242 WeeksInterval = 1
243- DaysOfWeek = ' Monday' , ' Thursday' , ' Saturday'
243+ DaysOfWeek = ' Monday' , ' Thursday' , ' Saturday'
244244 RepeatInterval = [datetime ]::Today.AddMinutes(40 )
245245 RepetitionDuration = [datetime ]::Today.AddHours(8 )
246246 Ensure = ' Absent'
@@ -251,13 +251,13 @@ Configuration xScheduledTaskWeeklyDel
251251Configuration xScheduledTaskLogonDel
252252{
253253 Import-DscResource - ModuleName xComputerManagement
254- node " localhost"
254+ node ' localhost'
255255 {
256256 xScheduledTask xScheduledTaskLogonDel
257257 {
258- TaskName = " Test task Logon"
259- TaskPath = " \xComputerManagement\"
260- ActionExecutable = " C:\windows\system32\WindowsPowerShell\v1.0\powershell.exe"
258+ TaskName = ' Test task Logon'
259+ TaskPath = ' \xComputerManagement\'
260+ ActionExecutable = ' C:\windows\system32\WindowsPowerShell\v1.0\powershell.exe'
261261 ScheduleType = ' AtStartup'
262262 RepeatInterval = [datetime ]::Today.AddMinutes(12 )
263263 RepetitionDuration = [datetime ]::Today.AddHours(8 )
@@ -269,13 +269,13 @@ Configuration xScheduledTaskLogonDel
269269Configuration xScheduledTaskStartupDel
270270{
271271 Import-DscResource - ModuleName xComputerManagement
272- node " localhost"
272+ node ' localhost'
273273 {
274274 xScheduledTask xScheduledTaskStartupDel
275275 {
276- TaskName = " Test task Startup"
277- TaskPath = " \xComputerManagement\"
278- ActionExecutable = " C:\windows\system32\WindowsPowerShell\v1.0\powershell.exe"
276+ TaskName = ' Test task Startup'
277+ TaskPath = ' \xComputerManagement\'
278+ ActionExecutable = ' C:\windows\system32\WindowsPowerShell\v1.0\powershell.exe'
279279 ScheduleType = ' AtLogOn'
280280 RepeatInterval = [datetime ]::Today.AddMinutes(10 )
281281 RepetitionDuration = [datetime ]::Today.AddHours(8 )
0 commit comments