Newbie here. Using Windows Server 2019, I copied over my bat file to "C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Startup" and did a restart. my bat file is supposed to ping another machine. However, the startup scripts are not executed unless I login into the machine.
However, if I add the same file to "GPO -> Computer Configuration" and restart, it is working fine. Is this the only way to do this without anyone logging in? If so, is there any powershell script to do it.
Thanks a Ton