need script for running 3 command line commands on startup

This topic contains 0 replies, has 1 voice, and was last updated by  Forums Archives 6 years, 4 months ago.

  • Author
  • #5479

    by harry289 at 2013-01-28 22:32:07


    I am a newbie to system administration. I need help on writing a powershell script to execute 3 commands that I manually run everytime whenever the server starts up / reboot. I want to automate this process by writing a script. Please help me.

    "C:\Program Files\TrueCrypt\TrueCrypt.exe" /v "\Device\HarddiskVolume1" /l "A" /p "password" /q
    "C:\Program Files\TrueCrypt\TrueCrypt.exe" /v "\Device\HarddiskVolume2" /l "B" /p "password" /q
    "C:\Program Files\TrueCrypt\TrueCrypt.exe" /v "\Device\HarddiskVolume3" /l "C" /p "password" /q

    Thank you.

    by nohandle at 2013-01-29 02:42:30

    Are you familiar with Windows Scheduled Tasks? Create new scheduled task to run on startup and run the script calling -ExecutionPolicy Bypass -File ".ps1"

You must be logged in to reply to this topic.