Start dropbox as logged on user with Execute-ProcessAsUser


Im wondering if anyone got any sugestions on how to emulate this CMD command with the Execute-ProcessAsUser command to run it as the logged-on user:

start "" "%programfiles%\dropbox\Dropbox.exe"

Or if someone has any other method to achieve the same result


Is this what you want?
Execute-ProcessAsUser -Path "$envProgramFiles\Dropbox\Dropbox.exe"
or (if placed in C:\Program Files (x86)
Execute-ProcessAsUser -Path "$envProgramFilesX86\Dropbox\Dropbox.exe"

Thanks for the answer!

That did the trick! I overcomplicated things when i tried to get this working earlier :slight_smile:

Regards Patrik