I am running Windows 7 64 bit. When I shut down my computer I have many programs open on the desktop. When I start my computer I want these programs to open automatically. I am aware of SaveMyCache, this requires me to tick boxes every time I shutdown my computer, I want something automatic.
Something that comes close to what you're asking: Enable hibernation in power management and instead of shutting down your PC, use the hibernate option. This does turn off your PC's power and restores your PC to the state you were in when you turned the system off.
Other than that, there's no built-in functionality that does what you are asking. The Windows restart manager was created for situations like this but software needs to support that and this is typically only used when installing new software or when updates are installed.
So I've decided to create this Powershell script.
The actions performed:
Now the script code:
Simpy copy this code and paste it in the file
in this file. Save and close the bat file. You can now move both files to preferred directory. After that you can click with Right Mouse Button on a bat file and create a shortcut to this file. Then click with Right Mouse Button on a shortcut this time and choose Pin to Start Menu. This will add the shortcut to your Start Menu.
Now every time when you want to close the PC and save the running programs for an automatic startup after boot, you can use this shortcut.
Edit - Including Command Line arguments
Since you would like to save the process command line arguments as well, you have to change the Filling Arrays and Creating file sections to those:
The change is with using WMI now instead of get-process. Additionally the quotation marks have to be omitted this time.
In case you have an error when executing the script you probably have incorrect setting for Execution policy for powershell. To change that you have to open powershell console as administrator and type in
Another option is to pull links to software to start into the 'Startup' folder in the Start menu - it is Slow, but works. It doesn't open the 'previously' open programs though, just a preset set.