Skip to content

Instantly share code, notes, and snippets.

@krabs-github
Last active December 20, 2021 11:45
Show Gist options
  • Save krabs-github/ecd033ad8653f9e2e953264919625262 to your computer and use it in GitHub Desktop.
Save krabs-github/ecd033ad8653f9e2e953264919625262 to your computer and use it in GitHub Desktop.
[VBS - Set VBScript to Run at Startup] VBS - Set VBScript to Run at Startup #VBScript
schtasks /create /sc ONLOGON /tn "name" /tr "cscript.exe C:\path\to\your.vbs"
schtasks /create /sc onstart /tn "name" /tr "cscript.exe C:\path\to\your.vbs" /ru SYSTEM
https://docs.microsoft.com/en-us/windows-server/administration/windows-commands/schtasks-create
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment