Jump to content

Recommended Posts

Posted

Hit another Snag with File Stream. The path to the program seems to change regularly! For example its currently C:\Program Files\Google\Drive File Stream\25.102.133.409

But the version number changes so I cant deploy a shortcut as it wont show if the path does not match!

 

How could I create a shortcut that will run the exe in the above location no matter what the version number is. Search and run the exe somehow? PowerShell scrip if that's allowed for users?

Posted

I don’t use File Stream so is it a single exe within the directory or is there other files as well?

 

You could try a PowerShell script that finds all exe within directory and runs them. Obviously only works if only one exe exists

  • Thanks 1
Posted (edited)
$FilePath = Get-ChildItem -Path C:\Program Files\Google Drive -Recurse -Filter Drive.exe

Start-Process $FilePath

 

Would that work?

Nope! :)

 

Even with the correct path there are multiple versions of the EXEs...

 

Get-ChildItem -Path "${env:ProgramFiles}\Google\Drive File Stream" -Recurse -Filter GoogleDriveFS.exe

 

W0SPYYc.png

 

You'll therefore need to do something like this to run the latest GoogleDriveFS.exe...

 

$FS = Get-ChildItem -Path "${env:ProgramFiles}\Google\Drive File Stream" -Directory | Where-Object { $_.Name -match '\d+\.\d+\.\d+\.\d+' } | 
Sort-Object -Property { [Version]$_.Name } | Select-Object -Last 1 -ExpandProperty FullName

Start-Process -FilePath ('{0}\{1}' -f $FS,'GoogleDriveFS.exe')

 

iehFRbQ.png

 

prVKX7d.png

 

^ This works regardless of how many version number subfolders there are and will always run the latest version.

Edited by Arthur
  • Thanks 2
Posted (edited)

If you want to turn the PowerShell code above into an EXE with the same icon as GoogleDriveFS.exe an easy way to do this is to download ISESteroids (Install-Module ISESteroids; Start-Steroids) and use its PS to EXE function.

 

I have attached an EXE I made earlier should anyone need it...

 

MOD NOTE: THIS VERSION DID NOT WORK ANYMORE, FOR AN UPDATE VERSION SEE THIS POST DOWN THE PAGE FOR ATTACHMENT.

Edited by ZeroHour
  • Thanks 1
Posted
That's amazing thank you. I was at the point of giving up, with no easy way of withdrawing the old Google Drive software and GDFS not saving credentials into the users roaming profile I was ready to give up with this software. ive had words with Google as this is definitely not suitable for schools and enterprisess.
Posted
I've had words with Google as this is definitely not suitable for schools and enterprisess.

Perhaps the File Stream team should speak to the Chrome team to find out how to do enterprise deployment properly! :)

 

It's definitely not ideal at the moment.

  • 1 month later...
Posted

Hello @Arthur

 

Thanks for making the .exe. It works fine when run as an admin user. However when I try as a standard user nothing happens. Any tips please?

 

Thanks

Posted
It works fine when run as an admin user. However when I try as a standard user nothing happens. Any tips please?

The only thing that comes to mind are AppLocker and/or PowerShell-related restrictions preventing the EXE from running. Where are you running the EXE from and which OS version are you using?

 

IIRC, I don't think I had any problems running it under a standard account back in December.

 

I will do a bit more testing to see if I can replicate the issue.

Posted

We are using Windows 10 LTSB 2016. App Locker isn't deployed. We do block .exe from being run, but I have put your .exe in an area that is excluded from this.

 

Might it be a restriction on the Powershell file?

 

Thanks

  • 2 weeks later...
Posted
Hello @Arthur - I was wondering if you made any progress with this please?

I have managed to replicate the issue but haven't had much luck fixing it unfortunately.

 

I will do some more testing today. :)

  • Thanks 1
Posted

Works great now thanks.

 

Would be great if you could get it to populate the email address in the program with the email address in AD. :p

  • 3 weeks later...
Posted
@Arthur - Excuse my ignorance but how do I utilise this launcher? I have downloaded it and tried to run "RunFS.exe" but nothing happened.

 

Have you already got FileStream running?

Posted
@Arthur - Excuse my ignorance but how do I utilise this launcher? I have downloaded it and tried to run "RunFS.exe" but nothing happened.

Where is it running from? It's own folder in Program Files or the same folder as File Stream?

Posted
Where is it running from? It's own folder in Program Files or the same folder as File Stream?

In its own folder at the moment. Does it need to be in the file stream folder?

Posted (edited)
In its own folder at the moment. Does it need to be in the file stream folder?

It shouldn't need to be in the same folder.

 

Did you download the .zip from post #6 or post #15. The latter is what you need since v1.0 does work under standard user accounts. :)

Edited by Arthur
Posted
Im using the one under post 15 and it works great. Got it on a few thousand machines.

 

Have you got round the auto logon issue or are you still asking users to log onto File Stream when it pops up?

Posted
Have you got round the auto logon issue or are you still asking users to log onto File Stream when it pops up?

 

No auto login yet I am afraid :(

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now



×
×
  • Create New...