Packer.Images/scripts/Windows10/Register-ScheduledTask.ps1

7 lines
197 B
PowerShell
Raw Normal View History

2021-04-10 13:32:31 +00:00
[CmdletBinding()]
Param(
# No parameters
)
# Create scheduled task
& schtasks.exe /Create /TN 'FirstBoot' /SC ONSTART /RU SYSTEM /TR "powershell.exe -file C:\Payload\Apply-FirstBootConfig.ps1"