Prerequisites
Before setting up autostart, ensure:- WinFsp is installed on your system
- WinFsp-MemFs-Extended is properly installed
- You have the WinFsp Launcher Service component installed (available during installation)
Using Task Scheduler
The recommended method for autostart is to create a scheduled task that launches the RAM disk on logon.Open Task Scheduler
Press
Win + R, type taskschd.msc, and press Enter to open the Windows Task Scheduler.Create a new scheduled task
In Task Scheduler, click “Create Task” (not “Create Basic Task”) in the Actions pane on the right.
Configure general settings
In the “General” tab:
- Enter a name for your task (e.g., “Launch RAM Disk”)
- Select “Run whether user is logged on or not” (optional)
- Check “Run with highest privileges”
- Ensure “Configure for” matches your Windows version
- Set the user account to your account
Add a logon trigger
Switch to the “Triggers” tab:
- Click “New”
- Set “Begin the task” to “At log on”
- Select “Specific user” and choose your user account
- Click “OK”
Configure the action
Switch to the “Actions” tab and click “New”:Program/Script:Add arguments:Replace
R: with your desired drive letter. The arguments are:start- Command to start a serviceMemefs- The WinFsp service name (from installer)ramdisk- Instance name (can be customized)""- Empty UNC prefix (for disk mode)\\.\R:- Mount point (drive letter)
Adjust power settings (optional)
Switch to the “Conditions” tab:
- Uncheck “Start the task only if the computer is on AC power” if you want the RAM disk on battery-powered devices
- Adjust other power-related settings as needed
WinFsp launcher integration
During installation, you can enable the “WinFsp Launcher Service” component. This registers WinFsp-MemFs-Extended with the WinFsp launcher control system.Registry configuration
The installer creates the following registry entries: Location:HKLM\SOFTWARE\WOW6432Node\WinFsp\Services\Memefs
Keys:
Executable: Path tomemefs-x64.exeCommandLine:-i -F NTFS -l Ram -u %1 -m %2Security:D:P(A;;RPWPLC;;;WD)JobControl:1
- Use case-insensitive mode (
-i) - Report as NTFS filesystem (
-F NTFS) - Set volume label to “Ram” (
-l Ram) - Accept UNC prefix and mount point parameters (
%1and%2)
Customizing launcher settings
You can modify theCommandLine value in the registry to change default behavior:
- Add a custom volume label
- Set a default size of 2GB
- Maintain compatibility with launcher parameters
Launcher command syntax
Thelaunchctl-x64.exe utility syntax:
Examples
Mount to R: drive:Stopping the service
To stop a running RAM disk launched via launcher:Troubleshooting
Task doesn’t run on logon
- Verify the task is enabled in Task Scheduler
- Check that “Run with highest privileges” is enabled
- Review the task history for error messages
- Ensure the WinFsp service is running
Drive letter already in use
- Change the mount point in the task arguments
- Use
*to auto-select an available drive letter - Check for conflicting mapped network drives
Permission errors
- Ensure the task runs with your user account
- Verify “Run with highest privileges” is checked
- Check that WinFsp is properly installed
Service fails to start
- Verify the WinFsp Launcher Service component was installed
- Check registry entries at
HKLM\SOFTWARE\WOW6432Node\WinFsp\Services\Memefs - Review Windows Event Viewer for error details