Getting Data In

How to install splunk universal forwarder on multiple windows system with powershell script?

vinod94
Contributor

I want to install universal forwarder on multiple windows machine.

I tried using this command

Invoke-Command -ComputerName "Desktopname" -Scriptblock {msiexec /i path of forwarder(.msi) file} . 

Without desktopname ,I am able to install the file but when i specify the desktopname iam getting this error

Connecting to remote server desktopname failed with the following error message : Access is
denied. For more information, see the about_Remote_Troubleshooting Help topic.
   + CategoryInfo          : OpenError: (desktopname:String) [], PSRemotingTransportException
   + FullyQualifiedErrorId : AccessDenied,PSSessionStateBroken

Any suggestions would be helpful.

Get Updates on the Splunk Community!

Adoption of RUM and APM at Splunk

    Unleash the power of Splunk Observability   Watch Now In this can't miss Tech Talk! The Splunk Growth ...

Routing logs with Splunk OTel Collector for Kubernetes

The Splunk Distribution of the OpenTelemetry (OTel) Collector is a product that provides a way to ingest ...

Welcome to the Splunk Community!

(view in My Videos) We're so glad you're here! The Splunk Community is place to connect, learn, give back, and ...