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.