I created a VM using the windows server 2019 datacenter. After I created it, I added a metadata item with key and value like this to test it:
key1: windows-startup-script-cmd
value1:
dir
pause
The problem is that I don't see the cmd window run with the "dir" command using Windows RDP to log in. Is there anything wrong with my setting?
What I want to do is to run commands to open a URL and a program every time it starts up without me logging in.
The setting I followed: Using startup scripts on Windows VMs