通过SSM上传日志到cloudwatch 重启 SSM失败
Restart-Service : Service 'Amazon SSM Agent (AmazonSSMAgent)' cannot be stopped due to the following error: Cannot
open AmazonSSMAgent service on computer '.'.
At line:1 char:1
+ Restart-Service AmazonSSMAgent
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : CloseError: (System.ServiceProcess.ServiceController:ServiceController) [Restart-Service
], ServiceCommandException
+ FullyQualifiedErrorId : CouldNotStopService,Microsoft.PowerShell.Commands.RestartServiceCommand
怎么配置?