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!

Introducing the Splunk Community Dashboard Challenge!

Welcome to Splunk Community Dashboard Challenge! This is your chance to showcase your skills in creating ...

Get the T-shirt to Prove You Survived Splunk University Bootcamp

As if Splunk University, in Las Vegas, in-person, with three days of bootcamps and labs weren’t enough, now ...

Wondering How to Build Resiliency in the Cloud?

IT leaders are choosing Splunk Cloud as an ideal cloud transformation platform to drive business resilience,  ...