The Core Technologies Blog

Professional Software for Windows Services / 24×7 Operation


Q&A: Why isn’t Google Drive For Desktop Working with AlwaysUp?

Why isn't Google Drive For Desktop Working with AlwaysUp?
  I installed AlwaysUp on August 8 and set up Google Drive for desktop which has been working well until last Friday. It is now displaying an error message: “Unable to restart the application: “C:\Windows\sysnative\cmd.exe” /c “”C:\Program Files\Google\Drive File Stream\Launch.bat”” exited immediately after it was started”.

I stopped the service and was able to run Google Drive for desktop manually and have it catch up on synchronization. I then quit the application, opened AlwaysUp, deleted the Google Drive and recreated it but still get the error.

Do you have any idea what could be causing this?

— Allen

Hi Allen. Sorry to hear of the trouble!

To investigate, we jumped onto our Windows Server 2025 machine and installed Google Drive for desktop (using the Application Advisor). When we launched Google Drive, we saw exactly what you did. Drive exited quickly after AlwaysUp started it:

Google Drive for desktop keeps exiting

We’d never seen that fruitless “flapping” with Google Drive before! It was time to roll up our sleeves…


The problem: Google Drive uses WebView2, which has issues

Our investigation continued with Microsoft’s superb Process Explorer. That free utility allowed us to examine how Google Drive works — both inside and out — when it’s started normally on your desktop.

True to form, Process Explorer quickly showed us that Google Drive isn’t a simple application. Instead of comprising of a single process (like a regular program), Google Drive launches a tree of 10 processes to do its work:

Google Drive for desktop in Process Explorer

What’s unusual is that some of the applications started by Drive are not created by Google. And even stranger yet, msedgewebview2.exe is from Microsoft — a component of their Edge web browser:

Microsoft Edge WebView2 process

Why does a Google product rely on Microsoft Edge — a direct competitor to its ubiquitous Chrome web browser? These are some strange bedfellows indeed!

According to the release notes, Google Drive for desktop introduced Microsoft’s WebView2 framework in the August 18, 2025 release (version 113.0):

Google Drive for desktop release notes

That’s very suspicious. Apparently WebView2 came into the picture right around the time you started having trouble running Google Drive in the background. Could that new component be the culprit?

Anyway, curiosity piqued, we switched back to running Google Drive with AlwaysUp. In that setup, we consistently observed the following disappointing pattern:

  1. AlwaysUp starts launch.bat (the batch file that starts Google Drive for desktop).

  2. The batch file spawns GoogleDriveFS.exe, the main Google Drive executable.

  3. GoogleDriveFS.exe launches msedgewebview2.exe.

  4. msedgewebview2.exe starts 5 more copies of itself, lingers for a couple of seconds then exits.

  5. GoogleDriveFS.exe restarts msedgewebview2.exe up to 5 times, each time ending in failure.

  6. GoogleDriveFS.exe eventually gives up and closes.

It seemed that the Microsoft Edge WebView2 application had trouble staying alive when run as a Windows Service with AlwaysUp. And WebView2 must be a critical component because once it closed, the main Google Drive executable did the same.

It was time to dig into WebView2…

What’s Microsoft Edge WebView2 anyway?

One of our AI overlords (Gemini) puts it this way:

 Microsoft Edge WebView2 is a component that allows developers to embed web content (like HTML, CSS, and JavaScript) into native [Windows] applications, using the Microsoft Edge (Chromium) rendering engine.

Developers use the WebView2 control to display web content directly within a native app, whether it’s a Win32, .NET, WinRT, or other application.

Many desktop applications use WebView2 to display web-based content, such as in-app browsers, ads, or rich text.

With that description in mind, it’s clear that Drive is using WebView2 to render its modern, web-based user interface. You can see WebView2 at work here:

Google Drive's web-based user interface

What’s wrong with using WebView2?

It’s all well and good to build a product atop WebView2, but our research across many articles and forum posts turned up a troubling restriction. WebView2 may not be able to run elevated.

If so, that’s a big deal for Windows Services, which typically operate with full rights. Could that be why WebView2 exits immediately after Google Drive launches it?

To test the theory, we decided to run Google Drive as an administrator. If we’re on the right track, Google Drive would fail when WebView2 protests the excessive rights:

Run Google Drive for desktop as an administrator

Yet WebView2 didn’t complain. Google Drive (and WebView2) started and synchronized files as normal.

So WebView2 can run elevated. But then why did a Microsoft employee say the opposite?

We believe he’s mostly right, but the situation is nuanced. Here’s why.

Of the 6 processes that WebView2 launched, 3 of them were created with full admin rights:

WebView2 processes started with admin rights

But 2 of them were launched without admin rights. One was even run at the lowest level possible — untrusted:

WebView2 processes started without admin rights

So, as part of normal operation, the security-conscious WebView2 launches some sub-components with maximum rights and others with minimal or zero rights.

And for some reason, particularly in the context of a Windows Service, WebView2 cannot start those limited, sandboxed sub-processes with minimal powers.

We think the problem has to do with the deeply technical subject of UAC and split tokens. But since there’s no good way to confirm our suspicions without peeking into WebView2 and Microsoft isn’t about to share the code, we decided to leave the mystery there. Our conclusion is that WebView2 can’t run as an administrator from a Windows Service.

Time to focus on potential workarounds instead.


The solution: Run Google Drive in a standard Windows account

If WebView2 is truly allergic to administrator rights, why not have AlwaysUp launch it with limited permissions? Wouldn’t that solve the problem? We tried that by checking the Launch the application without admin rights box on the Logon tab:

Have AlwaysUp launch Google Drive without admin rights

But to our dismay, that change made no difference. Google Drive still refused to run. We think it’s because WebView2 doesn’t run with a restricted token, and that’s what AlwaysUp creates as it strips away admin permissions. More technical weeds and another dead end.

What about running Google Drive in a “true” non-admin account?

To test that approach, we created a brand new standard account for “Hazel Jones”. As you can see she isn’t an administrator on the computer:

We created a new standard Windows account

Next, we logged in as Hazel, installed Google Drive for desktop and ensured that it worked well for Hazel.

Finally, we returned to AlwaysUp and switched the account on the Logon tab to Hazel:

Setup AlwaysUp to run Google Drive in the standard account

Lo and behold, once we started Google Drive in AlwaysUp, it stayed running! WebView2 was finally happy. You can see the entire process tree running happily in Session 0 here:

Google Drive running in Session 0 as a standard user

Furthermore, the “G” drive (where Google Drive mounts its cloud file system) was accessible to Hazel. We confirmed that from a standard command prompt:

The G drive is accessible

So there you have it, Allen. If you’re still unable to run Google Drive as a Windows Service with AlwaysUp, setup a regular, non-admin account and configure AlwaysUp to run Google Drive as that user. You’ll have access to your cloud files in that setup.

Posted in AlwaysUp | Tagged , , , , | Leave a comment

Leave a Reply

Your email address will not be published. Required fields are marked *