How to disable Hybrid Shutdown in Windows with a Command Line.
I am using a ramdisk (with imdisk software), after the upgrade from Windows 8.1 pro into Windows 10 pro - The Computer does Save automatic My Ramdisk to My Hard Disk everytime if i Shutdown my Windows, i do not want that. (The ramdisk Size is to Big [2GB] and i want to use it with a clean ramdisk).
Is it Maybe possible that i have Two msdos commanding scripts On my Desktop.(Other Languages like autohotkey or Python is for me also ok.)
The Scripts must can do this.
1 - Disable Hybrid and then Shutdown Windows.
2 - Enable Hybrid and then Shutdown Windows.
You can use these msdos bat files:
1 - HybridOn_ShutDown.bat
This will save the Whole Ram memory to your HardDisk (MemoryFile), and then it will ShutDown Windows. The next time that you will start up your Computer, it Will Load your (MemoryFile) into the Ram Memory - The Pros are:The Computer will Startup Faster and it will remember all your data + Including the Ramdisk data.
@echo off
powercfg /h on
shutdown /h
2 - HybridOff_ShutDown.bat
This Will Shutdown Windows Without Saving The Ram Memory to your HardDisk. The next time that you will start up your Computer, it will do a Clean/Fresh Windows Start up + With a Clean/Fresh Ramdisk Start up.
@echo off
powercfg /h off
shutdown /p /f
note - This works only if you run the bat files (as administrator)
And If you want to run it direct you can use:
Method 2: Converting the .BAT files into .EXE files with Admin Manifest added.
Click Here and Read Method 2: