community.spiceworks.com
Open in
urlscan Pro
45.60.13.212
Public Scan
URL:
https://community.spiceworks.com/topic/2268821-winrm-cannot-process-the-request
Submission: On March 22 via manual from US — Scanned from DE
Submission: On March 22 via manual from US — Scanned from DE
Form analysis
1 forms found in the DOM<form>
<i class="1679502438463 mag-glass"></i>
<input class="1679502438463 search-input" autocomplete="off" placeholder="Search Spiceworks">
<i class="clean-icon"></i>
<div class="1679502438463 trending-topics"></div>
<div class="1679502438463 search-box-results"></div>
</form>
Text Content
Home * News & Insights * News & Insights Home * Innovation * IT Careers & Skills * Cloud * Cyber Security * Future of Work * All Categories * Marketing * HR * Finance * Community * Ask question * Community Home * Spiceworks Originals * Cloud * Collaboration * Networking * Water Cooler * Windows * All forums * How-Tos * Scripts * Vendors * Meetups * Reviews * Online Events Login Join Login Join * Home * Windows * Windows Server WINRM CANNOT PROCESS THE REQUEST Posted by Glenn Maxwell on Apr 18th, 2020 at 8:55 PM Solved Windows Server PowerShell General Windows Hi Experts I am getting the below error when i am trying to execute a powershell script. i am trying to install a software on 20 servers and on all 20 servers i have local admin rights. Invoke-command -ComputerName (get-content c:\list.txt) -filepath C:\soft.ps1 Connecting to remote server server01 failed with the following error message : WinRM cannot process the request. I am executing the powershell script from myjumpserver01 i have local admin rights on this server. list.txt file contains server names in the below format server01.contoso.com server02.contoso.com Experts guide me on this Spice (10) Reply (3) flagReport Glenn Maxwell jalapeno POPULAR TOPICS IN WINDOWS SERVER Anyone else have issues with last week's patch Tuesday updates? 2 DCs running Server 2016 can I spinup a 2022 as a third DC and rep... Cumulative Update for Microsoft server operating system version 21H... Windows auth failure when accessed by IP, but ok when accessed by Name Porting Cisco ASA VPN Session Data to Windows Syslog Server View all topics check Best Answer GerardBeekmans This person is a verified professional. Verify your account to enable IT peers to see that you are a professional. datil Apr 20th, 2020 at 3:06 PM checkBest Answer Can you post the full error message from WinRM? Depending on your setup, you may also need to add the remote hosts to your TrustedHosts especially if the computer you are connecting from, and connecting to, aren't in the same AD domain or you haven't setup PowerShell Remoting and WinRM using a GPO. Does your full error message look something like this? The WinRM client cannot process the request. If the authentication scheme is different from Kerberos, or if the client computer is not joined to a domain, then HTTPS transport must be used or the destination machine must be added to the TrustedHosts configuration setting. Use winrm.cmd to configure TrustedHosts. Note that computers in the TrustedHosts list might not be authenticated. You can get more information about that by running the following command: winrm help config. For more information, see the about_Remote_Troubleshooting Help topic. If you need to add the host to your TrustedHosts list you can do so with a command such as: Powershell set-item wsman:\localhost\client\trustedhosts -Concatenate -value 'hostname' Spice (1) flagReport 2 found this helpful thumb_up thumb_down View Best Answer in replies below 3 REPLIES * tobor This person is a verified professional. Verify your account to enable IT peers to see that you are a professional. chipotle Apr 19th, 2020 at 4:00 AM PSRemoting needs to be enabled on the remote hosts as well as a firewall allowing traffic over winrm. Also IP addresses use NtLM for authentication and hostnames will use Kerberos for authentication. You may also need to define the subnets allowed to communicate over winrm. flagReport Was this post helpful? thumb_up thumb_down * JohnnyCola This person is a verified professional. Verify your account to enable IT peers to see that you are a professional. poblano Apr 20th, 2020 at 6:52 AM Hello, it can be because the WinRM service isn't iniciated. If you want to start the service remotely, you can do this: Open a PS console Enter: Powershell $cred = Get-Credential Enter the server local credentials. Now, you must start the service WinRM with WMI: I made a function to do this: Powershell function StartWinRM { Param([string] $Computer, [System.Management.Automation.PSCredential] $Credential) $service = Get-WmiObject -ComputerName $Computer -Credential $Credential -Class Win32_Service -Filter "Name='WinRM'" $service.StartService() } Run this function: Powershell StartWinRM -Computer <server_you_want> -Credential $cred With this, you now can do a remote session: Powershell Enter-PSSession -ComputerName <server_you_want> -Credential $cred Spice (2) flagReport 3 found this helpful thumb_up thumb_down * GerardBeekmans This person is a verified professional. Verify your account to enable IT peers to see that you are a professional. datil Apr 20th, 2020 at 3:06 PM checkBest Answer Can you post the full error message from WinRM? Depending on your setup, you may also need to add the remote hosts to your TrustedHosts especially if the computer you are connecting from, and connecting to, aren't in the same AD domain or you haven't setup PowerShell Remoting and WinRM using a GPO. Does your full error message look something like this? The WinRM client cannot process the request. If the authentication scheme is different from Kerberos, or if the client computer is not joined to a domain, then HTTPS transport must be used or the destination machine must be added to the TrustedHosts configuration setting. Use winrm.cmd to configure TrustedHosts. Note that computers in the TrustedHosts list might not be authenticated. You can get more information about that by running the following command: winrm help config. For more information, see the about_Remote_Troubleshooting Help topic. If you need to add the host to your TrustedHosts list you can do so with a command such as: Powershell set-item wsman:\localhost\client\trustedhosts -Concatenate -value 'hostname' Spice (1) flagReport 2 found this helpful thumb_up thumb_down lock This topic has been locked by an administrator and is no longer open for commenting. To continue this discussion, please ask a new question. READ THESE NEXT... * I AM RETIRING, ORGANIZATION IS TRANISTIONING TO MANAGED SERVICES. IT & Tech Careers Hi!As I mentioned, I am retiring mid April. The companies that we have chosen through an RFP process have all said they would like me to stay involved longer than April 14. The final decision will probably be made late next week, March30 or 31. My questi... * * HOW DO YOU ALL ADDRESS SHADOW IT? (ASIDE FROM RULES/RESTRICTIONS, MORE CULTURE) IT & Tech Careers Hey Spicey peeps,I don't think I look at IT the same as many other IT leaders do, but I also don't believe most IT leaders think alike. I read all sorts of interesting perspectives and opinions, so I wanted to get maybe some more perspectives on "Shadow ... * SPARK! PRO SERIES - 22ND MARCH 2023 Spiceworks Originals Today in History: 2010 NASA's rover 'Spirit' gets caught in a sand trap on Mars and ceases communications with EarthThe Spirit and Opportunity rovers together represented NASA's Mars Exploration Rover Mission (MER), part of the Mars Exploration Program. L... * HOW DO I FIX MY SCRIPT? Programming & Development Current script is:cmdkey /add:(name of my NAS) /user:network\(username on NAS) /pass:(password for username on NAS)New-PSDrive -Name "E" -Root "\\(name of my NAS)\(name of shared folder)" -Persist -PSProvider "FileSystem"This will map one of the share... * HANDLING A LARGE EXCEL SPREADSHEET Cloud Computing & SaaS I've got a rather large excel workbook. The first sheet is a search sheet, using xlookups, to search and return data from all the others.EG:The name box is a search box Name Lisa Lyons ... * About * Contact * Support * Press / Media * Careers * SpiceWorld * Blog * * * * * * Sitemap * Privacy Policy * Terms of Use * Guidelines * Accessibility Statement * Do Not Sell My Personal Information * © Copyright 2006 - 2023 Spiceworks Inc. WE CARE ABOUT YOUR PRIVACY If you consent, we and our partners can store and access personal information on your device to provide a more personalised browsing experience. This is accomplished through processing personal data collected from browsing data stored in cookies. You can provide/withdraw consent and object to processing based on a legitimate interest at any time by clicking on the ‘Manage Preferences’ button.Our Privacy Policy WE AND OUR PARTNERS PROCESS DATA TO: Store and/or access information on a device. Personalised ads and content, ad and content measurement, audience insights and product development. Our Partners Reject All I Accept More Options