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

7 lines
200 B
PowerShell
Raw Normal View History

[CmdletBinding()]
Param(
# No parameters
)
# Create scheduled task
& schtasks.exe /Create /TN 'OVF-Properties' /SC ONSTART /RU SYSTEM /TR "powershell.exe -file C:\Payload\Apply-OVFProperties.ps1"