ReverentCreature Posted December 15, 2017 Posted December 15, 2017 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?
FN-GM Posted December 16, 2017 Posted December 16, 2017 Same problem I have found. I was looking at getting it to automatically run on login. 1
snagrat Posted December 16, 2017 Posted December 16, 2017 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 1
snagrat Posted December 16, 2017 Posted December 16, 2017 $FilePath = Get-ChildItem -Path C:\Program Files\Google Drive -Recurse -Filter Drive.exe Start-Process $FilePath Would that work?
Arthur Posted December 16, 2017 Posted December 16, 2017 (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 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') ^ This works regardless of how many version number subfolders there are and will always run the latest version. Edited December 16, 2017 by Arthur 2
Arthur Posted December 16, 2017 Posted December 16, 2017 (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 February 22, 2018 by ZeroHour 1
ReverentCreature Posted December 18, 2017 Author Posted December 18, 2017 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.
Arthur Posted December 18, 2017 Posted December 18, 2017 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.
FN-GM Posted January 19, 2018 Posted January 19, 2018 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
Arthur Posted January 19, 2018 Posted January 19, 2018 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.
FN-GM Posted January 19, 2018 Posted January 19, 2018 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
FN-GM Posted January 30, 2018 Posted January 30, 2018 Hello @Arthur - I was wondering if you made any progress with this please?
Arthur Posted January 30, 2018 Posted January 30, 2018 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. 1
FN-GM Posted January 30, 2018 Posted January 30, 2018 Cheers, thanks very much for your help. It is much appreciated,
Popular Post Arthur Posted February 4, 2018 Popular Post Posted February 4, 2018 @FN-GM / @ReverentCreature. I think I have cracked it! New version attached which works with standard user accounts. This was converted into an EXE using PS2EXE-GUI... '.\ps2exe.ps1' -inputFile "$env:USERPROFILE\Desktop\RunFS.ps1" -outputFile "$env:USERPROFILE\Desktop\RunFS.exe" -iconFile "$env:USERPROFILE\Desktop\RunFS.ico" -runtime40 -x64 -noConsole -product 'Drive File Stream Launcher' -version '1.1.0.0'Google Drive File Stream Launcher v1.1.zip 6
FN-GM Posted February 5, 2018 Posted February 5, 2018 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.
fiza Posted February 21, 2018 Posted February 21, 2018 @Arthur - Excuse my ignorance but how do I utilise this launcher? I have downloaded it and tried to run "RunFS.exe" but nothing happened.
FN-GM Posted February 21, 2018 Posted February 21, 2018 @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?
fiza Posted February 21, 2018 Posted February 21, 2018 Have you already got FileStream running? I have it installed but not currently running.
Arthur Posted February 21, 2018 Posted February 21, 2018 @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?
fiza Posted February 21, 2018 Posted February 21, 2018 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?
Arthur Posted February 21, 2018 Posted February 21, 2018 (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 February 21, 2018 by Arthur
FN-GM Posted February 21, 2018 Posted February 21, 2018 Im using the one under post 15 and it works great. Got it on a few thousand machines.
Simcfc73 Posted February 21, 2018 Posted February 21, 2018 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?
FN-GM Posted February 21, 2018 Posted February 21, 2018 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
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now