Powershell Script at startup RRS feed

  • Question

  • How I can run powershell script at startup of the VM where My server is not accessible for RDP. (offline server)

    I have created .bat file and put it in C:\ProgramData\Microsoft\Windows\Start Menu\Programs\StartUp\

    PowerShell.exe -Command "C:\startup.ps1"

    I have put my code in C:\startup.ps1 file. I wan't to know is there any simplest way to achieve this. 

    Thursday, February 27, 2020 9:36 AM

All replies

  • Your question is not a scripting question; it is a question about how to use the Windows operating system.

    You can post basic OS "how to" questions in the Windows General forum.

    As a hint I recommend learning about how the OS works and look into Group Policy and the Task Scheduler.

    You can also just search for "how to run a script on windows startup".


    Thursday, February 27, 2020 3:27 PM