How to interact with OneDrive sync app from a background service

Copper Contributor

When we run our exe from any service or through any background process, it won't interact with the applications running in the foreground, I mean launched when the user is logged in or in GUI mode.

 

Let's say, the onedrive sync app can't be detected from the exe we created and running it in background.

 

I tried both options below.

 

1111.PNG.64aa7aa06749cc7d63143e050af6dbf6.PNG

Any Idea how to interact with foreground processes.

1 Reply

Present as a temporary solution I kept my exe in the windows startup.
As the startup won't work till the user is logged in, I have enabled AutoLogon.
But AutoLogon is not acceptable with the security team, so I need to search for other solution.