{"id":980,"date":"2025-02-25T11:38:30","date_gmt":"2025-02-25T11:38:30","guid":{"rendered":"https:\/\/blog.eu.enginyr.ing\/?p=980"},"modified":"2026-07-11T13:23:47","modified_gmt":"2026-07-11T13:23:47","slug":"advanced-remote-storage-optimization-for-windows-making-remote-storage-feel-like-local-nvme","status":"publish","type":"post","link":"https:\/\/www.serverspan.com\/en\/blog\/advanced-remote-storage-optimization-for-windows-making-remote-storage-feel-like-local-nvme\/","title":{"rendered":"Advanced Remote Storage Optimization for Windows: Making Remote Storage Feel Like Local NVMe"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">Ever wanted your remote storage to perform like a local NVMe drive on your Windows system? This guide will show you several approaches to optimize remote storage performance on Windows 10\/11, with benchmark-proven results.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Table of Contents<\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li><a href=\"#before-you-begin\">Before You Begin<\/a><\/li>\n\n\n\n<li><a href=\"#method-1-optimized-rclone-caching\">Method 1: Optimized Rclone Caching<\/a><\/li>\n\n\n\n<li><a href=\"#method-2-smb-with-local-caching\">Method 2: SMB with Local Caching<\/a><\/li>\n\n\n\n<li><a href=\"#method-3-wireguard--advanced-io\">Method 3: WireGuard + Advanced I\/O<\/a><\/li>\n\n\n\n<li><a href=\"#method-4-hybrid-localremote-approach\">Method 4: Hybrid Local\/Remote Approach<\/a><\/li>\n\n\n\n<li><a href=\"#troubleshooting\">Troubleshooting<\/a><\/li>\n\n\n\n<li><a href=\"#security-considerations\">Security Considerations<\/a><\/li>\n\n\n\n<li><a href=\"#uninstallation-guide\">Uninstallation Guide<\/a><\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">Before You Begin<\/h2>\n\n\n\n<h3 class=\"wp-block-heading\">Which Method Should You Choose?<\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Method 1 (Rclone)<\/strong>: Best for most users, works with almost any remote storage<\/li>\n\n\n\n<li><strong>Method 2 (SMB)<\/strong>: Ideal if your storage already supports SMB\/CIFS<\/li>\n\n\n\n<li><strong>Method 3 (WireGuard)<\/strong>: Best performance but requires technical knowledge<\/li>\n\n\n\n<li><strong>Method 4 (Hybrid)<\/strong>: Best real performance using local disk with background sync<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\">System Requirements<\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Windows 10 or 11 (fully updated)<\/li>\n\n\n\n<li>At least 10GB free space on a local SSD\/NVMe drive for caching<\/li>\n\n\n\n<li>Stable internet connection (minimum 10Mbps upload\/download)<\/li>\n\n\n\n<li>Administrator access to your Windows system<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\">Backup Your Data First!<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>\u26a0\ufe0f IMPORTANT<\/strong>: Before proceeding with any method, back up your important data. While these methods are safe when followed correctly, mistakes can happen.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Method 1: Optimized Rclone Caching<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">This method uses Rclone (a command-line program to sync files) with fine-tuned parameters for maximum performance on Windows.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Prerequisites<\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Remote storage with SFTP access (most cloud\/NAS systems support this)<\/li>\n\n\n\n<li>10GB+ free local disk space for caching<\/li>\n\n\n\n<li><a rel=\"nofollow\" href=\"https:\/\/rclone.org\/downloads\/\">Rclone for Windows<\/a> (program to access remote storage)<\/li>\n\n\n\n<li><a rel=\"nofollow\" href=\"https:\/\/winfsp.dev\/rel\/\">WinFsp<\/a> (allows mounting remote storage as a drive)<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\">Setup<\/h3>\n\n\n\n<ol class=\"wp-block-list\">\n<li><strong>Install required software<\/strong><\/li>\n<\/ol>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Download and install Rclone from <a href=\"https:\/\/rclone.org\/downloads\/\" target=\"_blank\" rel=\"noreferrer noopener nofollow\">https:\/\/rclone.org\/downloads\/<\/a>\n<ul class=\"wp-block-list\">\n<li>Accept all defaults during installation<\/li>\n\n\n\n<li><strong>Test installation<\/strong>: Open Command Prompt and type <code>rclone version<\/code> &#8211; you should see version information<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li>Download and install WinFsp from <a href=\"https:\/\/winfsp.dev\/rel\/\" target=\"_blank\" rel=\"noreferrer noopener nofollow\">https:\/\/winfsp.dev\/rel\/<\/a>\n<ul class=\"wp-block-list\">\n<li>Download the latest stable release .msi file<\/li>\n\n\n\n<li>Accept all defaults during installation<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li><strong>Restart your computer after installing WinFsp<\/strong> (this is mandatory)<\/li>\n<\/ul>\n\n\n\n<ol class=\"wp-block-list\">\n<li><strong>Create necessary directories<\/strong> Open Command Prompt as administrator (right-click Start > Command Prompt (Admin)) and run:<\/li>\n<\/ol>\n\n\n\n<pre class=\"wp-block-code\"><code>   if not exist \"C:\\RemoteStorage\" mkdir C:\\RemoteStorage\n   if not exist \"C:\\RemoteCache\" mkdir C:\\RemoteCache\n   if not exist \"C:\\Scripts\" mkdir C:\\Scripts<\/code><\/pre>\n\n\n\n<ol start=\"3\" class=\"wp-block-list\">\n<li><strong>Configure rclone<\/strong> Open Command Prompt and run:<\/li>\n<\/ol>\n\n\n\n<pre class=\"wp-block-code\"><code>   rclone config<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Follow these steps:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Type <code>n<\/code> for new remote<\/li>\n\n\n\n<li>Name: <code>storage-sftp<\/code> (type exactly this)<\/li>\n\n\n\n<li>Storage type: Type <code>sftp<\/code> and press Enter<\/li>\n\n\n\n<li>Host: Enter your storage server IP address or hostname<\/li>\n\n\n\n<li>User: Enter your username<\/li>\n\n\n\n<li>Port: Enter SSH port (usually 22)<\/li>\n\n\n\n<li>Password: Enter your password (or leave blank and use <code>y<\/code> if you want to use key authentication) For the remaining options, press Enter to accept defaults until configuration is complete. <strong>Test your configuration<\/strong> by running:<\/li>\n<\/ul>\n\n\n\n<pre class=\"wp-block-code\"><code>   rclone lsd storage-sftp:\/<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">This should list directories on your remote storage. If you see an error, double-check your credentials.<\/p>\n\n\n\n<ol start=\"4\" class=\"wp-block-list\">\n<li><strong>Create mount script<\/strong> Create a batch file by opening Notepad and pasting the following:<\/li>\n<\/ol>\n\n\n\n<pre class=\"wp-block-code\"><code>   @echo off\n   echo Starting Rclone mount...\n\n   REM Check if already mounted\n   if exist C:\\RemoteStorage\\* (\n     echo Drive appears to be already mounted.\n     goto :eof\n   )\n\n   REM Ensure directories exist\n   if not exist \"C:\\RemoteStorage\" mkdir C:\\RemoteStorage\n   if not exist \"C:\\RemoteCache\" mkdir C:\\RemoteCache\n\n   REM Mount the drive\n   start \/min rclone mount storage-sftp:\/remote\/path C:\\RemoteStorage ^\n       --dir-cache-time 72h ^\n       --cache-dir=C:\\RemoteCache ^\n       --vfs-cache-mode full ^\n       --vfs-cache-max-size 10G ^\n       --buffer-size 256M ^\n       --vfs-read-ahead 512M ^\n       --vfs-read-chunk-size 128M ^\n       --vfs-read-chunk-size-limit 1G ^\n       --transfers 4 ^\n       --checkers 8 ^\n       --contimeout 60s ^\n       --timeout 300s ^\n       --low-level-retries 10 ^\n       --volname \"Remote Storage\"\n\n   echo Waiting for mount to initialize...\n   timeout \/t 5\n\n   REM Verify mount was successful\n   if exist C:\\RemoteStorage\\* (\n     echo Mount successful! Your remote storage is now available at C:\\RemoteStorage\n   ) else (\n     echo Mount appears to have failed. Check for errors above.\n   )<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Save this file as <code>C:\\Scripts\\mount-remote.bat<\/code><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>\u26a0\ufe0f IMPORTANT<\/strong>: Replace <code>\/remote\/path<\/code> with the actual path on your remote server.<\/p>\n\n\n\n<ol start=\"5\" class=\"wp-block-list\">\n<li><strong>Test the mount script<\/strong> Right-click on <code>C:\\Scripts\\mount-remote.bat<\/code> and select &#8220;Run as administrator&#8221;. After it runs, check if your remote storage is accessible by opening File Explorer and navigating to <code>C:\\RemoteStorage<\/code>. You should see your remote files.<\/li>\n\n\n\n<li><strong>Create unmount script (optional but recommended)<\/strong> Create another batch file with Notepad:<\/li>\n<\/ol>\n\n\n\n<pre class=\"wp-block-code\"><code>   @echo off\n   echo Unmounting remote storage...\n\n   taskkill \/f \/im rclone.exe\n\n   echo Waiting for unmount to complete...\n   timeout \/t 3\n\n   if not exist C:\\RemoteStorage\\* (\n     echo Unmount successful!\n   ) else (\n     echo Unmount may have failed. If issues persist, restart your computer.\n   )<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Save this file as <code>C:\\Scripts\\unmount-remote.bat<\/code><\/p>\n\n\n\n<ol start=\"7\" class=\"wp-block-list\">\n<li><strong>Set up automatic mounting at startup<\/strong> Create a shortcut to the batch file in the Windows Startup folder:<\/li>\n<\/ol>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Press <code>Win+R<\/code> and type <code>shell:startup<\/code> then press Enter<\/li>\n\n\n\n<li>Right-click in the folder and select &#8220;New > Shortcut&#8221;<\/li>\n\n\n\n<li>For the location, enter: <code>C:\\Scripts\\mount-remote.bat<\/code><\/li>\n\n\n\n<li>Name the shortcut &#8220;Remote Storage Mount&#8221;<\/li>\n\n\n\n<li>Right-click the new shortcut, select &#8220;Properties&#8221;<\/li>\n\n\n\n<li>In the &#8220;Run&#8221; dropdown, select &#8220;Minimized&#8221;<\/li>\n\n\n\n<li>Under the &#8220;Advanced&#8221; button, check &#8220;Run as administrator&#8221;<\/li>\n\n\n\n<li>Click OK, then OK again<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">Method 2: SMB with Local Caching<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">This method optimizes Windows&#8217; native SMB protocol with local caching for better performance.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Prerequisites<\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Remote storage with SMB support (most NAS devices and Windows servers)<\/li>\n\n\n\n<li>Administrator privileges on your Windows system<\/li>\n\n\n\n<li>At least 10GB free space on an SSD\/NVMe drive for caching<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\">Setup<\/h3>\n\n\n\n<ol class=\"wp-block-list\">\n<li><strong>Enable required Windows features<\/strong> Press Win+R, type <code>control panel<\/code> and press Enter. Then:<\/li>\n<\/ol>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Go to Programs > Programs and Features<\/li>\n\n\n\n<li>Click &#8220;Turn Windows features on or off&#8221;<\/li>\n\n\n\n<li>Check &#8220;SMB 1.0\/CIFS File Sharing Support&#8221; and &#8220;Offline Files&#8221;<\/li>\n\n\n\n<li>Click OK<\/li>\n\n\n\n<li>Restart your computer when prompted<\/li>\n<\/ul>\n\n\n\n<ol class=\"wp-block-list\">\n<li><strong>Create registry optimization file<\/strong> Open Notepad and paste exactly the following:<\/li>\n<\/ol>\n\n\n\n<pre class=\"wp-block-code\"><code>   Windows Registry Editor Version 5.00\n\n   &#91;HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\Services\\LanmanWorkstation\\Parameters]\n   \"DirectoryCacheLifetime\"=dword:00000000\n   \"FileInfoCacheLifetime\"=dword:00000000\n   \"FileNotFoundCacheLifetime\"=dword:00000000\n   \"DormantFileLimit\"=dword:00000000\n   \"BufferNamedPipes\"=dword:00000001\n   \"MaxThreads\"=dword:00000064\n   \"MaxCmds\"=dword:00000800\n   \"MaxCollectionCount\"=dword:00000060\n   \"KeepConn\"=dword:00007530\n   \"BufFilesDenyWrite\"=dword:00000000\n   \"EnableByteRangeLockingOnReadOnlyFiles\"=dword:00000001\n   \"ReadAheadThroughput\"=dword:ffffffff\n   \"UseOpportunisticLocking\"=dword:00000001\n   \"UseLockReadUnlock\"=dword:00000001\n\n   &#91;HKEY_LOCAL_MACHINE\\SOFTWARE\\Policies\\Microsoft\\Windows\\NetworkProvider]\n   \"HardConnectOnly\"=dword:00000000\n\n   &#91;HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\NetCache]\n   \"SyncAtLogon\"=dword:00000000\n   \"SilentForceSynchronousTransfers\"=dword:00000000\n   \"SilentDeleteActions\"=dword:00000000<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Save this file as <code>C:\\Scripts\\optimize-smb.reg<\/code><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Apply the registry changes<\/strong>:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Right-click on <code>C:\\Scripts\\optimize-smb.reg<\/code><\/li>\n\n\n\n<li>Select &#8220;Merge&#8221;<\/li>\n\n\n\n<li>Confirm the User Account Control prompt<\/li>\n\n\n\n<li>Click &#8220;Yes&#8221; to confirm adding the information to the registry<\/li>\n<\/ul>\n\n\n\n<ol class=\"wp-block-list\">\n<li><strong>Map the network drive with robust error handling<\/strong> Create a batch file with Notepad:<\/li>\n<\/ol>\n\n\n\n<pre class=\"wp-block-code\"><code>   @echo off\n   echo Mapping network drive...\n\n   REM Check if already mapped\n   net use | findstr \"Z:\" &gt; nul\n   if %errorlevel% equ 0 (\n     echo Drive Z: is already mapped. Unmapping first...\n     net use Z: \/delete \/y\n     timeout \/t 2\n   )\n\n   REM Map the drive\n   echo Mapping Z: to your remote storage...\n   net use Z: \\\\SERVER\\SHARE \/persistent:yes \/user:USERNAME PASSWORD\n\n   REM Verify mapping was successful\n   net use | findstr \"Z:\" &gt; nul\n   if %errorlevel% equ 0 (\n     echo Drive mapping successful! Your remote storage is now available at Z:\n   ) else (\n     echo Drive mapping failed. Please check your server address and credentials.\n     pause\n     exit\n   )<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Save as <code>C:\\Scripts\\map-network-drive.bat<\/code><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>\u26a0\ufe0f IMPORTANT<\/strong>: Replace the following with your actual information:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Replace <code>\\\\SERVER\\SHARE<\/code> with your actual server and share name<\/li>\n\n\n\n<li>Replace <code>USERNAME<\/code> with your username<\/li>\n\n\n\n<li>Replace <code>PASSWORD<\/code> with your password <strong>Test the script<\/strong>: Right-click on <code>C:\\Scripts\\map-network-drive.bat<\/code> and select &#8220;Run as administrator&#8221;.<\/li>\n<\/ul>\n\n\n\n<ol class=\"wp-block-list\">\n<li><strong>Configure Offline Files for the mapped drive<\/strong><\/li>\n<\/ol>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Open File Explorer and navigate to the Z: drive<\/li>\n\n\n\n<li>Right-click on it and select &#8220;Always available offline&#8221;<\/li>\n\n\n\n<li>Wait for the initial sync to complete (this may take time depending on your data size)<\/li>\n<\/ul>\n\n\n\n<ol class=\"wp-block-list\">\n<li><strong>Optimize offline files settings<\/strong><\/li>\n<\/ol>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Press Win+R, type <code>control panel<\/code> and press Enter<\/li>\n\n\n\n<li>Go to Sync Center > Manage offline files<\/li>\n\n\n\n<li>Click &#8220;Disk Usage&#8221; and move the slider to allocate at least 10GB<\/li>\n\n\n\n<li>Click on the &#8220;Encryption&#8221; tab and select &#8220;Encrypt offline files&#8221; for security<\/li>\n\n\n\n<li>On the Advanced tab, select &#8220;All files and programs that users open from the network&#8221;<\/li>\n\n\n\n<li>Click OK to apply changes<\/li>\n<\/ul>\n\n\n\n<ol class=\"wp-block-list\">\n<li><strong>Create automatic sync script<\/strong> Create a new file in Notepad:<\/li>\n<\/ol>\n\n\n\n<pre class=\"wp-block-code\"><code>   # Force synchronization of all offline files\n   try {\n     $objOfflineFiles = New-Object -ComObject HNetCfg.HNetShare\n     $syncResult = $objOfflineFiles.SyncMappedDrives()\n\n     if ($syncResult -eq $true) {\n       Write-Host \"Synchronization successful.\"\n     } else {\n       Write-Host \"Synchronization may have failed.\"\n     }\n   } catch {\n     Write-Host \"Error during synchronization: $_\"\n   }<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Save this file as <code>C:\\Scripts\\sync-offline-files.ps1<\/code><\/p>\n\n\n\n<ol start=\"7\" class=\"wp-block-list\">\n<li><strong>Schedule automatic syncing<\/strong> Create a batch file to run the PowerShell script:<\/li>\n<\/ol>\n\n\n\n<pre class=\"wp-block-code\"><code>   @echo off\n   powershell -ExecutionPolicy Bypass -File \"C:\\Scripts\\sync-offline-files.ps1\"<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Save this as <code>C:\\Scripts\\run-sync.bat<\/code><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Set up a scheduled task:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Press Win+R, type <code>taskschd.msc<\/code> and press Enter<\/li>\n\n\n\n<li>Click &#8220;Create Basic Task&#8221; in the right panel<\/li>\n\n\n\n<li>Name: &#8220;Sync Offline Files&#8221;<\/li>\n\n\n\n<li>Trigger: Daily, repeat every 30 minutes for a duration of 1 day<\/li>\n\n\n\n<li>Action: Start a program<\/li>\n\n\n\n<li>Program\/script: <code>C:\\Scripts\\run-sync.bat<\/code><\/li>\n\n\n\n<li>Finish the wizard<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">Method 3: WireGuard + Advanced I\/O<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">\u26a0\ufe0f <strong>WARNING<\/strong>: This is the most advanced method and requires technical knowledge of networking. Only proceed if you&#8217;re comfortable with both Windows and Linux systems.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Prerequisites<\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Control over both the client and remote server<\/li>\n\n\n\n<li>Remote server running Linux\/Unix with root access<\/li>\n\n\n\n<li><a rel=\"nofollow\" href=\"https:\/\/www.wireguard.com\/install\/\">WireGuard for Windows<\/a><\/li>\n\n\n\n<li>Administrator privileges on Windows<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\">Setup<\/h3>\n\n\n\n<ol class=\"wp-block-list\">\n<li><strong>Install WireGuard on both systems<\/strong> On Windows:<\/li>\n<\/ol>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Download and install WireGuard from <a rel=\"nofollow\" href=\"https:\/\/www.wireguard.com\/install\/\">wireguard.com\/install<\/a><\/li>\n\n\n\n<li>Accept all defaults during installation On Linux server (example for Ubuntu\/Debian):<\/li>\n<\/ul>\n\n\n\n<pre class=\"wp-block-code\"><code>   sudo apt update\n   sudo apt install wireguard<\/code><\/pre>\n\n\n\n<ol start=\"2\" class=\"wp-block-list\">\n<li><strong>Generate keys on Windows system<\/strong> Create this PowerShell script in Notepad:<\/li>\n<\/ol>\n\n\n\n<pre class=\"wp-block-code\"><code>   # Create directories\n   New-Item -Path \"C:\\WireGuard\\keys\" -ItemType Directory -Force\n\n   # Download WireGuard tools\n   $toolsUrl = \"https:\/\/download.wireguard.com\/windows-client\/wireguard-tools-windows-amd64-0.5.3.zip\"\n   $toolsZip = \"C:\\WireGuard\\wireguard-tools.zip\"\n\n   # Use built-in WebClient for compatibility\n   $webClient = New-Object System.Net.WebClient\n   $webClient.DownloadFile($toolsUrl, $toolsZip)\n\n   # Extract the zip file\n   Expand-Archive -Path $toolsZip -DestinationPath \"C:\\WireGuard\\keys\" -Force\n\n   # Navigate to tools directory\n   Set-Location -Path \"C:\\WireGuard\\keys\"\n\n   # Generate private key\n   $privateKey = &amp; \".\\wireguard.exe\" genkey\n   $privateKey | Out-File -FilePath \"local-private.key\" -Encoding ASCII\n\n   # Generate public key from private key\n   $publicKey = $privateKey | &amp; \".\\wireguard.exe\" pubkey\n   $publicKey | Out-File -FilePath \"local-public.key\" -Encoding ASCII\n\n   Write-Host \"Keys generated successfully!\"\n   Write-Host \"Private key saved to: C:\\WireGuard\\keys\\local-private.key\"\n   Write-Host \"Public key saved to: C:\\WireGuard\\keys\\local-public.key\"\n   Write-Host \"\"\n   Write-Host \"Your public key (share this with the server):\"\n   Write-Host $publicKey<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Save this as <code>C:\\Scripts\\generate-wireguard-keys.ps1<\/code><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Run the script:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Right-click on the Start menu and select &#8220;Windows PowerShell (Admin)&#8221;<\/li>\n\n\n\n<li>Run: <code>Set-ExecutionPolicy -Scope Process -ExecutionPolicy Bypass<\/code><\/li>\n\n\n\n<li>Run: <code>C:\\Scripts\\generate-wireguard-keys.ps1<\/code> <strong>Copy your public key<\/strong> displayed in the output &#8211; you&#8217;ll need it for the server configuration.<\/li>\n<\/ul>\n\n\n\n<ol class=\"wp-block-list\">\n<li><strong>Generate keys on remote server<\/strong> On your Linux server, run:<\/li>\n<\/ol>\n\n\n\n<pre class=\"wp-block-code\"><code>   # Create directory for WireGuard keys\n   mkdir -p \/etc\/wireguard\/keys\n   cd \/etc\/wireguard\/keys\n\n   # Generate private key\n   wg genkey &gt; remote-private.key\n\n   # Generate public key from private key\n   cat remote-private.key | wg pubkey &gt; remote-public.key\n\n   # Show the public key\n   echo \"Your server public key:\"\n   cat remote-public.key<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Copy the server&#8217;s public key<\/strong> &#8211; you&#8217;ll need it for the Windows configuration.<\/p>\n\n\n\n<ol start=\"4\" class=\"wp-block-list\">\n<li><strong>Configure WireGuard on Windows<\/strong> Create a file with Notepad:<\/li>\n<\/ol>\n\n\n\n<pre class=\"wp-block-code\"><code>   &#91;Interface]\n   PrivateKey = YOUR_WINDOWS_PRIVATE_KEY\n   Address = 10.10.10.1\/24\n   ListenPort = 51820\n\n   &#91;Peer]\n   PublicKey = YOUR_SERVER_PUBLIC_KEY\n   AllowedIPs = 10.10.10.2\/32\n   Endpoint = YOUR_SERVER_PUBLIC_IP:51820\n   PersistentKeepalive = 25<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Replace the placeholders:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><code>YOUR_WINDOWS_PRIVATE_KEY<\/code> with the content of your <code>C:\\WireGuard\\keys\\local-private.key<\/code><\/li>\n\n\n\n<li><code>YOUR_SERVER_PUBLIC_KEY<\/code> with the server public key from step 3<\/li>\n\n\n\n<li><code>YOUR_SERVER_PUBLIC_IP<\/code> with your server&#8217;s public IP address Save as <code>C:\\WireGuard\\wg0.conf<\/code><\/li>\n<\/ul>\n\n\n\n<ol class=\"wp-block-list\">\n<li><strong>Configure WireGuard on your Linux server<\/strong> Create a file on your server:<\/li>\n<\/ol>\n\n\n\n<pre class=\"wp-block-code\"><code>   sudo nano \/etc\/wireguard\/wg0.conf<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Add this content:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>   &#91;Interface]\n   PrivateKey = YOUR_SERVER_PRIVATE_KEY\n   Address = 10.10.10.2\/24\n   ListenPort = 51820\n\n   &#91;Peer]\n   PublicKey = YOUR_WINDOWS_PUBLIC_KEY\n   AllowedIPs = 10.10.10.1\/32<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Replace the placeholders:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><code>YOUR_SERVER_PRIVATE_KEY<\/code> with content of <code>\/etc\/wireguard\/keys\/remote-private.key<\/code><\/li>\n\n\n\n<li><code>YOUR_WINDOWS_PUBLIC_KEY<\/code> with the Windows public key from step 2 Start WireGuard and enable at boot:<\/li>\n<\/ul>\n\n\n\n<pre class=\"wp-block-code\"><code>   sudo wg-quick up wg0\n   sudo systemctl enable wg-quick@wg0<\/code><\/pre>\n\n\n\n<ol start=\"6\" class=\"wp-block-list\">\n<li><strong>Configure firewall on server<\/strong> Run these commands on your Linux server:<\/li>\n<\/ol>\n\n\n\n<pre class=\"wp-block-code\"><code>   # For UFW (Ubuntu\/Debian)\n   sudo ufw allow 51820\/udp\n   sudo ufw reload\n\n   # For firewalld (CentOS\/RHEL)\n   sudo firewall-cmd --permanent --add-port=51820\/udp\n   sudo firewall-cmd --reload<\/code><\/pre>\n\n\n\n<ol start=\"7\" class=\"wp-block-list\">\n<li><strong>Start WireGuard on Windows<\/strong><\/li>\n<\/ol>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Right-click on the WireGuard icon in the system tray<\/li>\n\n\n\n<li>Choose &#8220;Import tunnel(s) from file&#8221;<\/li>\n\n\n\n<li>Select your <code>C:\\WireGuard\\wg0.conf<\/code> file<\/li>\n\n\n\n<li>Click &#8220;Activate&#8221; <strong>Test the connection<\/strong> by opening Command Prompt and running:<\/li>\n<\/ul>\n\n\n\n<pre class=\"wp-block-code\"><code>   ping 10.10.10.2<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">You should get replies from the server.<\/p>\n\n\n\n<ol start=\"8\" class=\"wp-block-list\">\n<li><strong>Configure SMB on the Linux server<\/strong> Install Samba:<\/li>\n<\/ol>\n\n\n\n<pre class=\"wp-block-code\"><code>   sudo apt install samba<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Edit the Samba configuration:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>   sudo nano \/etc\/samba\/smb.conf<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Add this at the end:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>   &#91;storage]\n   path = \/storage\n   browseable = yes\n   read only = no\n   create mask = 0755\n   socket options = TCP_NODELAY IPTOS_LOWDELAY SO_RCVBUF=131072 SO_SNDBUF=131072\n   min receivefile size = 16384\n   use sendfile = true\n   aio read size = 16384\n   aio write size = 16384\n   write cache size = 1048576\n   read raw = yes\n   write raw = yes\n   max xmit = 65536\n   host allow = 10.10.10.1<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>\u26a0\ufe0f IMPORTANT<\/strong>: Replace <code>\/storage<\/code> with your actual storage path.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Create the storage directory and set permissions:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>   sudo mkdir -p \/storage\n   sudo chown -R nobody:nogroup \/storage\n   sudo chmod -R 0755 \/storage<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Set up a Samba user:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>   sudo smbpasswd -a YOUR_USERNAME<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Restart Samba:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>   sudo systemctl restart smbd<\/code><\/pre>\n\n\n\n<ol start=\"9\" class=\"wp-block-list\">\n<li><strong>Mount the SMB share on Windows<\/strong> Create a batch file with Notepad:<\/li>\n<\/ol>\n\n\n\n<pre class=\"wp-block-code\"><code>   @echo off\n   echo Mapping network drive over WireGuard tunnel...\n\n   REM Check if already mapped\n   net use | findstr \"Z:\" &gt; nul\n   if %errorlevel% equ 0 (\n     echo Drive Z: is already mapped. Unmapping first...\n     net use Z: \/delete \/y\n     timeout \/t 2\n   )\n\n   REM Test WireGuard connection\n   ping -n 1 10.10.10.2 &gt; nul\n   if %errorlevel% neq 0 (\n     echo WireGuard connection failed. Please check your configuration.\n     pause\n     exit\n   )\n\n   REM Map the drive\n   echo Mapping Z: to remote storage over WireGuard...\n   net use Z: \\\\10.10.10.2\\storage \/user:YOUR_USERNAME YOUR_PASSWORD \/persistent:yes\n\n   REM Verify mapping was successful\n   net use | findstr \"Z:\" &gt; nul\n   if %errorlevel% equ 0 (\n     echo Drive mapping successful! Your remote storage is now available at Z:\n   ) else (\n     echo Drive mapping failed. Please check your server configuration.\n     pause\n     exit\n   )<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Replace:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><code>YOUR_USERNAME<\/code> with your Samba username<\/li>\n\n\n\n<li><code>YOUR_PASSWORD<\/code> with your Samba password Save as <code>C:\\Scripts\\mount-wireguard-smb.bat<\/code> <strong>Test the script<\/strong>: Right-click and &#8220;Run as administrator&#8221;.<\/li>\n<\/ul>\n\n\n\n<ol class=\"wp-block-list\">\n<li><strong>Create automatic connection script<\/strong> Create a batch file with Notepad: <code>@echo off echo Checking WireGuard connection... ping -n 1 10.10.10.2 > nul if %errorlevel% neq 0 ( echo WireGuard connection down, restarting... taskkill \/f \/im wireguard.exe timeout \/t 5 start \"\" \"C:\\Program Files\\WireGuard\\wireguard.exe\" timeout \/t 10echo Testing connection again... ping -n 1 10.10.10.2 &amp;gt; nul if %errorlevel% neq 0 ( echo WireGuard still not connecting. Please check your configuration. exit )) if not exist Z:\\ ( echo Network drive disconnected, remounting... net use Z: \\\\10.10.10.2\\storage \/user:YOUR_USERNAME YOUR_PASSWORD \/persistent:yes ) echo Connection check completed.<\/code> Replace:<ul><li><code>YOUR_USERNAME<\/code> with your Samba username<\/li><li><code>YOUR_PASSWORD<\/code> with your Samba password<\/li><\/ul>Save as <code>C:\\Scripts\\check-wireguard-connection.bat<\/code> Set up a scheduled task:\n<ul class=\"wp-block-list\">\n<li>Press Win+R, type <code>taskschd.msc<\/code> and press Enter<\/li>\n\n\n\n<li>Click &#8220;Create Basic Task&#8221; in the right panel<\/li>\n\n\n\n<li>Name: &#8220;Check WireGuard Connection&#8221;<\/li>\n\n\n\n<li>Trigger: Daily, repeat every 5 minutes for a duration of 1 day<\/li>\n\n\n\n<li>Action: Start a program<\/li>\n\n\n\n<li>Program\/script: <code>C:\\Scripts\\check-wireguard-connection.bat<\/code><\/li>\n\n\n\n<li>Finish the wizard<\/li>\n\n\n\n<li>Right-click the new task and select &#8220;Properties&#8221;<\/li>\n\n\n\n<li>Check &#8220;Run with highest privileges&#8221;<\/li>\n\n\n\n<li>Click OK<\/li>\n<\/ul>\n<\/li>\n<\/ol>\n\n\n\n<h2 class=\"wp-block-heading\">Method 4: Hybrid Local\/Remote Approach<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">This approach gives you true local NVMe performance while automatically syncing to remote storage.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Prerequisites<\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li><a rel=\"nofollow\" href=\"https:\/\/freefilesync.org\/\">FreeFileSync<\/a> (free file synchronization software)<\/li>\n\n\n\n<li>Local NVMe drive with available space<\/li>\n\n\n\n<li>Remote storage access<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\">Setup<\/h3>\n\n\n\n<ol class=\"wp-block-list\">\n<li><strong>Install synchronization software<\/strong> Download and install FreeFileSync from <a href=\"https:\/\/freefilesync.org\/\" target=\"_blank\" rel=\"noreferrer noopener nofollow\">https:\/\/freefilesync.org\/<\/a><\/li>\n<\/ol>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Accept all defaults during installation<\/li>\n<\/ul>\n\n\n\n<ol class=\"wp-block-list\">\n<li><strong>Create local and remote mount points<\/strong> Open Command Prompt as administrator and run:<\/li>\n<\/ol>\n\n\n\n<pre class=\"wp-block-code\"><code>   if not exist \"C:\\LocalNVMe\" mkdir C:\\LocalNVMe<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Map your remote storage as a drive (if not already done):<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>   net use Z: \\\\server\\share \/persistent:yes \/user:USERNAME PASSWORD<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>\u26a0\ufe0f IMPORTANT<\/strong>: Replace with your actual server, share, username, and password.<\/p>\n\n\n\n<ol start=\"3\" class=\"wp-block-list\">\n<li><strong>Configure synchronization<\/strong> Open FreeFileSync and follow these steps: a. <strong>Add folder pair<\/strong>:<\/li>\n<\/ol>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Left side: <code>C:\\LocalNVMe<\/code><\/li>\n\n\n\n<li>Right side: <code>Z:\\<\/code> b. <strong>Configure comparison settings<\/strong>:<\/li>\n\n\n\n<li>Click the &#8220;Comparison&#8221; dropdown<\/li>\n\n\n\n<li>Select &#8220;Content&#8221; (not &#8220;Size &amp; Time&#8221;) c. <strong>Configure synchronization settings<\/strong>:<\/li>\n\n\n\n<li>Click the &#8220;Synchronization&#8221; dropdown<\/li>\n\n\n\n<li>Select &#8220;Mirror (update &amp; delete)&#8221; &#8211; this keeps remote identical to local<\/li>\n\n\n\n<li><strong>\u26a0\ufe0f WARNING<\/strong>: This will delete files on the remote side if deleted locally d. <strong>Save configuration<\/strong>:<\/li>\n\n\n\n<li>Click &#8220;Save As&#8221; in the File menu<\/li>\n\n\n\n<li>Save as <code>C:\\Scripts\\sync-storage.ffs_batch<\/code><\/li>\n<\/ul>\n\n\n\n<ol start=\"3\" class=\"wp-block-list\">\n<li><strong>Configure real-time synchronization<\/strong> a. Open RealtimeSync (included with FreeFileSync) b. Add folder to watch:<\/li>\n<\/ol>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Click &#8220;+&#8221; button<\/li>\n\n\n\n<li>Select <code>C:\\LocalNVMe<\/code> c. Set batch job:<\/li>\n\n\n\n<li>Set the batch job to: <code>C:\\Scripts\\sync-storage.ffs_batch<\/code> d. Set conditions:<\/li>\n\n\n\n<li>Minimum waiting time after last change: 5 seconds<\/li>\n\n\n\n<li>Maximum waiting time for busy processes: 10 seconds e. Save configuration:<\/li>\n\n\n\n<li>Click &#8220;Save As&#8221;<\/li>\n\n\n\n<li>Save as <code>C:\\Scripts\\realtime-sync.ffs_real<\/code><\/li>\n<\/ul>\n\n\n\n<ol start=\"3\" class=\"wp-block-list\">\n<li><strong>Test synchronization<\/strong> a. Run the real-time sync:<\/li>\n<\/ol>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Double-click on your <code>C:\\Scripts\\realtime-sync.ffs_real<\/code> file b. Test with a small file:<\/li>\n\n\n\n<li>Create a small text file in <code>C:\\LocalNVMe<\/code><\/li>\n\n\n\n<li>Wait a few seconds and check if it appears in your Z: drive c. Verify it works in both directions:<\/li>\n\n\n\n<li>Create another file directly in your Z: drive<\/li>\n\n\n\n<li>Wait a few seconds and check if it appears in <code>C:\\LocalNVMe<\/code><\/li>\n<\/ul>\n\n\n\n<ol start=\"3\" class=\"wp-block-list\">\n<li><strong>Create automatic startup<\/strong> a. Create a shortcut to start automatically:<\/li>\n<\/ol>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Right-click on your desktop and select &#8220;New > Shortcut&#8221;<\/li>\n\n\n\n<li>For the location, enter: <code>\"C:\\Program Files\\FreeFileSync\\RealtimeSync.exe\" \"C:\\Scripts\\realtime-sync.ffs_real\"<\/code><\/li>\n\n\n\n<li>Name it &#8220;Real-time Storage Sync&#8221; b. Add to startup:<\/li>\n\n\n\n<li>Press Win+R, type <code>shell:startup<\/code> and press Enter<\/li>\n\n\n\n<li>Move or copy your shortcut to this folder c. Minimize on startup:<\/li>\n\n\n\n<li>Right-click the shortcut and select &#8220;Properties&#8221;<\/li>\n\n\n\n<li>Set &#8220;Run&#8221; to &#8220;Minimized&#8221;<\/li>\n\n\n\n<li>Click OK<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">Troubleshooting<\/h2>\n\n\n\n<h3 class=\"wp-block-heading\">Connection Issues<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>For Rclone mounts:<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>@echo off\necho Restarting Rclone mount...\n\nREM Kill any existing rclone processes\ntaskkill \/F \/IM rclone.exe \/T\n\nREM Allow processes to terminate\ntimeout \/t 3\n\nREM Restart the mount\ncall C:\\Scripts\\mount-remote.bat\n\necho Done!<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Save as <code>C:\\Scripts\\restart-rclone.bat<\/code><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>For SMB connections:<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>@echo off\necho Troubleshooting SMB connection...\n\nREM Reset network\nipconfig \/flushdns\nnetsh winsock reset\nnetsh int ip reset\n\nREM Restart the workstation service\nnet stop lanmanworkstation \/y\nnet start lanmanworkstation\n\nREM Reconnect the drive\nnet use Z: \/delete \/y\ntimeout \/t 2\nnet use Z: \\\\server\\share \/persistent:yes \/user:USERNAME PASSWORD\n\necho Done!<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Save as <code>C:\\Scripts\\fix-smb-connection.bat<\/code><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>For WireGuard issues:<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>@echo off\necho Restarting WireGuard connection...\n\nREM Kill WireGuard\ntaskkill \/f \/im wireguard.exe\n\nREM Wait for process to terminate\ntimeout \/t 5\n\nREM Restart WireGuard\nstart \"\" \"C:\\Program Files\\WireGuard\\wireguard.exe\"\n\nREM Wait for WireGuard to initialize\ntimeout \/t 10\n\nREM Test connection\nping -n 1 10.10.10.2\nif %errorlevel% neq 0 (\n  echo WireGuard still not connecting. Try restarting your computer.\n) else (\n  echo WireGuard connection restored!\n)\n\necho Done!<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Save as <code>C:\\Scripts\\restart-wireguard.bat<\/code><\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Performance Troubleshooting<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Check disk space for cache:<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>@echo off\necho Checking cache disk space...\n\nREM Check Rclone cache\nif exist C:\\RemoteCache (\n  echo Rclone cache size:\n  dir C:\\RemoteCache | findstr \"bytes free\"\n)\n\nREM Check Offline Files cache\nif exist %LOCALAPPDATA%\\Microsoft\\Windows\\CSC (\n  echo Offline Files cache size:\n  dir %LOCALAPPDATA%\\Microsoft\\Windows\\CSC | findstr \"bytes free\"\n)\n\nREM Check available system disk space\necho System drive space:\nwmic logicaldisk where DeviceID='C:' get Size,FreeSpace\n\necho Done!<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Save as <code>C:\\Scripts\\check-cache-space.bat<\/code><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Clear Windows caches:<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>@echo off\necho Clearing system caches...\n\nREM Clear DNS cache\nipconfig \/flushdns\n\nREM Clear SMB file handle cache\nnet stop workstation \/y\nnet start workstation\n\nREM Clear Explorer cache\ntaskkill \/F \/IM explorer.exe\ntimeout \/t 2\nstart explorer.exe\n\necho Done!<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Save as <code>C:\\Scripts\\clear-caches.bat<\/code><\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Security Considerations<\/h2>\n\n\n\n<ol class=\"wp-block-list\">\n<li><strong>Use key-based authentication where possible<\/strong> For Method 1 (Rclone SFTP):<\/li>\n<\/ol>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Generate an SSH key pair<\/li>\n\n\n\n<li>Configure your remote server to accept the key<\/li>\n\n\n\n<li>Update your Rclone config to use the key instead of password<\/li>\n<\/ul>\n\n\n\n<ol class=\"wp-block-list\">\n<li><strong>Encrypt sensitive data<\/strong> If storing sensitive data:<\/li>\n<\/ol>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Right-click your local drive in File Explorer<\/li>\n\n\n\n<li>Select &#8220;Turn on BitLocker&#8221;<\/li>\n\n\n\n<li>Follow the prompts to encrypt the drive<\/li>\n\n\n\n<li>Store your recovery key somewhere safe<\/li>\n<\/ul>\n\n\n\n<ol class=\"wp-block-list\">\n<li><strong>Restrict access to mount points<\/strong> Set permissions for your local mount point:<\/li>\n<\/ol>\n\n\n\n<pre class=\"wp-block-code\"><code>   @echo off\n   echo Setting secure permissions on mount point...\n\n   icacls C:\\RemoteStorage \/inheritance:r\n   icacls C:\\RemoteStorage \/grant \"%USERNAME%\":(OI)(CI)F\n   icacls C:\\RemoteStorage \/deny \"Everyone\":(OI)(CI)F\n   icacls C:\\RemoteStorage \/remove:g \"Everyone\"\n\n   echo Done!<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Save as <code>C:\\Scripts\\secure-mount-point.bat<\/code><\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Uninstallation Guide<\/h2>\n\n\n\n<h3 class=\"wp-block-heading\">Method 1 (Rclone)<\/h3>\n\n\n\n<pre class=\"wp-block-code\"><code>@echo off\necho Uninstalling Rclone setup...\n\nREM Stop and remove any Rclone processes\ntaskkill \/F \/IM rclone.exe \/T\nsc delete RemoteStorage\n\nREM Remove startup entry\ndel \"%APPDATA%\\Microsoft\\Windows\\Start Menu\\Programs\\Startup\\Remote Storage Mount.lnk\"\n\nREM Cleanup directories (add \/Q to suppress confirmation)\nif exist C:\\RemoteCache rmdir \/S C:\\RemoteCache\nif exist C:\\RemoteStorage rmdir \/S C:\\RemoteStorage\n\nREM Remove rclone config\nif exist \"%USERPROFILE%\\.config\\rclone\\rclone.conf\" del \"%USERPROFILE%\\.config\\rclone\\rclone.conf\"\n\necho Uninstallation complete. You may now uninstall Rclone and WinFsp applications.<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">Method 2 (SMB)<\/h3>\n\n\n\n<pre class=\"wp-block-code\"><code>@echo off\necho Removing SMB optimization...\n\nREM Disconnect network drive\nnet use Z: \/delete \/y\n\nREM Disable offline files\nreg add \"HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\NetCache\" \/v \"Enabled\" \/t REG_DWORD \/d 0 \/f\n\nREM Remove scheduled task\nschtasks \/delete \/tn \"Sync Offline Files\" \/f\n\necho SMB optimization removed.<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">Method 3 (WireGuard)<\/h3>\n\n\n\n<pre class=\"wp-block-code\"><code>@echo off\necho Removing WireGuard setup...\n\nREM Disconnect network drive\nnet use Z: \/delete \/y\n\nREM Stop WireGuard\ntaskkill \/f \/im wireguard.exe\n\nREM Remove scheduled task\nschtasks \/delete \/tn \"Check WireGuard Connection\" \/f\n\nREM Cleanup WireGuard configs\nif exist C:\\WireGuard rmdir \/S \/Q C:\\WireGuard\n\necho WireGuard setup removed. You may now uninstall WireGuard application.<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">Method 4 (Hybrid Approach)<\/h3>\n\n\n\n<pre class=\"wp-block-code\"><code>@echo off\necho Removing hybrid sync setup...\n\nREM Kill RealtimeSync\ntaskkill \/f \/im RealTimeSync.exe\n\nREM Remove startup shortcut\ndel \"%APPDATA%\\Microsoft\\Windows\\Start Menu\\Programs\\Startup\\Real-time Storage Sync.lnk\"\n\nREM Ask about local data\necho Your local data in C:\\LocalNVMe will remain.\necho Do you want to delete this data? (Y\/N)\nset \/p deleteData=\n\nif \/i \"%deleteData%\"==\"Y\" (\n  rmdir \/S \/Q C:\\LocalNVMe\n  echo Local data deleted.\n) else (\n  echo Local data preserved at C:\\LocalNVMe\n)\n\necho Hybrid sync setup removed. You may now uninstall FreeFileSync application.<\/code><\/pre>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\">Final Notes<\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Performance Expectations<\/strong>: While these methods significantly improve performance, remember that final sync to remote storage happens in the background and depends on your internet speed.<\/li>\n\n\n\n<li><strong>Data Integrity<\/strong>: Always keep backups of important data separately from these optimized solutions.<\/li>\n\n\n\n<li><strong>System Resources<\/strong>: These optimizations use local disk space and memory, so ensure your system has sufficient resources.<\/li>\n\n\n\n<li><strong>Regular Maintenance<\/strong>: Periodically check cache disk space and synchronization logs to ensure everything works correctly.<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">Remember that while these methods create the impression of local access speeds, actual file transfers to the remote storage still happen in the background. For the best experience, ensure a stable and fast internet connection.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Ever wanted your remote storage to perform like a local NVMe drive on your Windows system? This guide will show you several approaches to optimize remote storage performance on Windows 10\/11, with benchmark-proven results. Table of Contents Before You Begin Which Method Should You Choose? System Requirements Backup Your Data First! \u26a0\ufe0f IMPORTANT: Before proceeding [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":981,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[9,12],"tags":[5355,5343,5324,5349,5354,1026,5342,5339,5326,5337,5323,5333,5347,5329,5341,5345,5351,5327,5330,5322,5335,5352,5346,5321,5328,5344,5336,5357,5353,5356,5348,5332,5350,5338,5325,5340,5334,2201,5320,5331],"class_list":["post-980","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-tutorials","category-virtual-servers","tag-business-grade-vps-performance","tag-cloud-storage-windows-optimization","tag-cloud-vps-nvme-performance","tag-devops-windows-storage-solution","tag-enterprise-remote-storage-windows","tag-enterprise-vps-solutions","tag-enterprise-grade-vps-performance","tag-fastest-windows-vps-storage-solution","tag-high-speed-vps-hosting","tag-how-to-make-vps-storage-feel-local","tag-linux-vps-file-access","tag-local-like-remote-storage-vps","tag-make-remote-windows-server-feel-local","tag-nvme-like-vps-performance","tag-optimize-vps-for-production-workloads","tag-reduce-windows-vps-storage-latency","tag-remote-development-vps","tag-remote-vps-acceleration","tag-smb-caching-windows-vps","tag-virtual-server-remote-storage","tag-vps-disk-throughput-enhancement","tag-vps-for-data-processing","tag-vps-high-performance-file-access","tag-vps-hosting-performance","tag-vps-rclone-optimization","tag-vps-vs-local-nvme-benchmarks","tag-vps-winfsp-implementation","tag-web-hosting-storage-acceleration","tag-windows-application-server-optimization","tag-windows-gaming-server-performance","tag-windows-hosting-storage-optimization","tag-windows-hybrid-vps-storage","tag-windows-media-server-optimization","tag-windows-server-i-o-optimization","tag-windows-server-optimization","tag-windows-server-remote-storage-acceleration","tag-windows-sftp-caching","tag-windows-virtual-private-server","tag-windows-vps-storage-optimization","tag-wireguard-vps-acceleration"],"_links":{"self":[{"href":"https:\/\/www.serverspan.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/980","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.serverspan.com\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.serverspan.com\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.serverspan.com\/blog\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.serverspan.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=980"}],"version-history":[{"count":2,"href":"https:\/\/www.serverspan.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/980\/revisions"}],"predecessor-version":[{"id":3006,"href":"https:\/\/www.serverspan.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/980\/revisions\/3006"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.serverspan.com\/blog\/index.php?rest_route=\/wp\/v2\/media\/981"}],"wp:attachment":[{"href":"https:\/\/www.serverspan.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=980"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.serverspan.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=980"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.serverspan.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=980"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}