Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

run powershell script at startup

Creat a cmd script (e.g. script.cmd)

Enter this into the cmd script:
powershell -ExecutionPolicy Bypass -Command "C:path	oscriptscript.ps1"

If you want the script to be hidden add this attribute to the powershell call:
-windowstyle hidden

After this, add the cmd script to the startup folder.
The startup folder can be located by pressing win key + R and type in:
shell:startup

DISCLAMER: 
Not tested in VM machines, only tested by manual logging into an admin account.
Comment

PREVIOUS NEXT
Code Example
Shell :: Clear heroku redis cache 
Shell :: azure ad powershell module install 
Shell :: delete remote git branch 
Shell :: rdp linux ubuntu 
Shell :: linuxbrew 
Shell :: npm ERR! fatal: not a git repository: /home/node/app/../../.git/modules/ 
Shell :: Failed to execute child process “python” (No such file or directory) 
Shell :: install kubectl 
Shell :: remove remote git 
Shell :: tar gz linux command 
Shell :: how to install npm and node js ubuntu 
Shell :: bash sleep milliseconds 
Shell :: linux folder size 
Shell :: react native luxon types 
Shell :: headlessui npm 
Shell :: how to install tensorflow on anaconda 
Shell :: conda install tesseract 
Shell :: git replace with origin branch 
Shell :: conda linux 
Shell :: change master to main git 
Shell :: powershell create symlink 
Shell :: pm2 typescript 
Shell :: git pull upstream 
Shell :: linux webcam command line 
Shell :: how to install pgadmin4 ubuntu 
Shell :: github actions sequential jobs 
Shell :: linux screen list 
Shell :: replace substring in bash 
Shell :: zsh: command not found: julia 
Shell :: install nomad 
ADD CONTENT
Topic
Content
Source link
Name
8+9 =