Things used in this project

Software apps and online services:
10
Microsoft Windows 10 IoT Core

Code

StartupScript.ps1Powershell
PowerShell script that is to be run at startup of the Windows IoT Core OS.
# startup script
$logFile = 'C:\startupLog.txt'
get-date >> $logFile
Startup.batPlain text
Batch file that is called from the scheduled task. Executes the PowerShell file.
powershell -command "C:\StartupScript.ps1"
PowerShell Remote Execution PolicyPowershell
Setting the Remote Execution Policy so that PowerShell scripts can be run.
Set-ExecutionPolicy RemoteSigned
(Optional) Permanently Adding System32 to the System PathPlain text
Permanently Adding System32 to the System Path
setx PATH "%PATH%;C:\Windows\System32"
Creating a scheduled startup taskPlain text
Creating a scheduled task on Windows IoT Core to execute a batch file upon startup.
schtasks /create /tn "Startup PowerShell" /tr c:\Startup.bat /sc onstart /ru SYSTEM
Deleting a Scheduled TaskPlain text
Deleting a Scheduled Task
schtasks /Delete /TN "Startup PowerShell"
Running a scheduled taskPlain text
If you want to test out your task, you can run it from the command line
schtasks /Run /tn "Startup PowerShell"

Credits

Photo
Carey Payette

Sr. Software Engineer at Falafel Software

Contact

Replications

Did you replicate this project? Share it!

I made one

Love this project? Think it could be improved? Tell us what you think!

Give feedback

Comments

Similar projects you might like

Human-Following Robot with Kinect
Intermediate
  • 2,153
  • 22

Full instructions

Instead of using single camera and complicated image recognition algorithms we can take advantage of Kinect libraries.

Using Temperature Sensor
Intermediate
  • 272
  • 3

Protip

Using the Temperature Sensor from Adafruit

DIY Vending Machine with Cortana Skills and Bot Framework
Intermediate
  • 851
  • 5

Full instructions

Build your own vending machine by turning any dispenser to accept payments using Cortana Skills and Bot Framework on Raspberry Pi.

Arduino with Vb.net GUI control
Intermediate
  • 74
  • 0

Work in progress

This project is related to Arduino and Vb.net.

Rover (connected to Azure)
Intermediate
  • 277
  • 2

Full instructions

The Rover project used Azure

Rover with LEDs
Intermediate
  • 396
  • 1

Full instructions

A rover project with blinking LEDs.

Add projectSign up / Login