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!

What You Read The Most: Splunk Lantern’s Most Popular Articles!

Splunk Lantern is a Splunk customer success center that provides advice from Splunk experts on valuable data ...

See your relevant APM services, dashboards, and alerts in one place with the updated ...

As a Splunk Observability user, you have a lot of data you have to manage, prioritize, and troubleshoot on a ...

Index This | What goes away as soon as you talk about it?

May 2025 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with this month’s ...