web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / permissions issue with...
Power Automate
Unanswered

permissions issue with stopping services for PA Desktop

(0) ShareShare
ReportReport
Posted on by 2

Hi - 

My goal is to create the following desktop flow that will allow me to back up data to a new location:

  1. Turns off services (for a program)
  2. removes index files (created by program)
  3. copies files to new location (backs up program data)
  4. deletes files from original location
  5. restart services (re initiates indexing)

My flow currently looks like:

  1. stop service
  2. wait for service
  3. delete file
  4. copy file
  5. wait for window content
  6. delete file
  7. wait for window content
  8. start service

 

I'm receiving a runtime error at step 1 when trying to turn off services.

The "access" denied makes me think it's a permissions issue- is there way around this?

 

error details below:

Microsoft.Flow.RPA.Desktop.Modules.SDK.ActionException: Can't stop service 'MD.AnalysisService' ---> System.InvalidOperationException: Cannot open MD.AnalysisService service on computer '.'. ---> System.ComponentModel.Win32Exception: Access is denied
--- End of inner exception stack trace ---
at System.ServiceProcess.ServiceController.GetServiceHandle(Int32 desiredAccess)
at System.ServiceProcess.ServiceController.Stop()
at Microsoft.Flow.RPA.Desktop.Modules.Services.Actions.ServicesActions.StopService(Object serviceName)
--- End of inner exception stack trace ---
at Microsoft.Flow.RPA.Desktop.Modules.Services.Actions.StopService.Execute(ActionContext context)
at Microsoft.Flow.RPA.Desktop.Robin.Engine.Execution.ActionRunner.Run(IActionStatement statement, Dictionary`2 inputArguments, Dictionary`2 outputArguments)

I have the same question (0)
  • ObsessiveCoder Profile Picture
    2 on at

    Did you ever figure this out? I've tried a few things regarding permissions, but no luck

  • RP5 Profile Picture
    2 on at

    I did - my IT finally admitted they were blocking me, and gave my system permissions 😛

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
David_MA Profile Picture

David_MA 312 Super User 2026 Season 2

#2
11manish Profile Picture

11manish 154 Super User 2026 Season 2

#3
trice602 Profile Picture

trice602 143 Super User 2026 Season 2

Last 30 days Overall leaderboard