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!

Splunk Certification Support Alert | Pearson VUE Outage

Splunk Certification holders and candidates!  Please be advised of an upcoming system maintenance period for ...

Enterprise Security Content Update (ESCU) | New Releases

In September, the Splunk Threat Research Team had two releases of new security content via the Enterprise ...

New in Observability - Improvements to Custom Metrics SLOs, Log Observer Connect & ...

The latest enhancements to the Splunk observability portfolio deliver improved SLO management accuracy, better ...