This does not work for me -
%WINDIR%\System32\WindowsPowerShell\v1.0\powershell.exe -NoProfile -Noninteractive -command "& Invoke-Command -ComputerName "Spider_LT_86" -ScriptBlock { msiexec.exe /i "D:\3PDInstallers\ETLBackgroundWorkerSetup.msi" /qn /l*vx "D:\3PDInstallers\logs" }"
all i need to do is run msiexec on the remote machine. I assume that the user running the script will get the necessary access to the remote computer.
the script does not work, even if the name Computername points to the local computer (and msiexec works with the same login, which works fine, so it does not look like a permission issue). I guaranteed that WinRM Service was running and I was also disabled for the firewall to check if this is the cause of the problem, but so far no luck. What am I missing here?
This is a complete mistake, but it lists all the features -
Connecting to remote server failed with the following error message : WinRM cannot process the request. The following error occured while using Kerberos authentication: The network path was not found. Possible causes are: -The user name or password specified are invalid. -Kerberos is used when no authentication method and no user name are specified. -Kerberos accepts domain user names, but not local user names. -The Service Principal Name (SPN) for the remote computer name and port does not exist. -The client and remote computers are in different domains and there is no trust between the two domains. After checking for the above issues, try the following: -Check the Event Viewer for events related to authentication. -Change the authentication method; add the destination computer to the WinRM TrustedHosts configuration setting or use HTTPS transport. Note that computers in the TrustedHosts list might not be authenticated. -For more information about WinRM configuration, run the following command: winrm help config. For more information, see the about_Remote_Troubleshooting He lp topic. + CategoryInfo : OpenError: (:) [], PSRemotingTransportException + FullyQualifiedErrorId : PSSessionStateBroken
UPDATE:
When I use -Credentials only with a username, it opens a login window to get my password, and then when I enter it, it gives the following error: the user has access to the admin, so I donβt know what happened.
[spider_lt_86] Error connecting to the remote server with the following error message: access denied. For more information, see the help topic about_Remote_Troubleshooting. + CategoryInfo: OpenError: (:) [], PSRemotingTransportException + FullyQualifiedErrorId: PSSessionStateBroken
Roopesh shenoy
source share