Quantcast
Channel: Azure Virtual Machines forum
Viewing all articles
Browse latest Browse all 12545

execute batch file when vm startup

$
0
0

Hi, I wanted to run a batch file with the following commands on the vm's startup, but seems not running. I have to logon, double clicked to run the batch file then it works. I plan to automate the startup and shutdown of vm during office hours. Any advice? thanks!

cmdkey /add:appsfileshare.file.core.windows.net /user:username /pass:4CRYzJY...

net use z:......


Viewing all articles
Browse latest Browse all 12545

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>