r/PowerShell • u/Any-Victory-1906 • Apr 14 '26
Question WINRM on Entra Device
Hi,
I'm trying to use WinRM (HTTPS) from a domain-joined machine to an Entra-joined device (which appears as a workgroup machine).
Current setup:
- Source machine: domain-joined
- Target machine: Entra-joined (not in AD)
- HTTPS (5986) is open
- A certificate is deployed on the remote device
- WinRM listener is configured for HTTPS
However, WinRM does not work.
When I run:
Test-WSMan -ComputerName "xxx" -UseSSL -ErrorAction Stop
I get:
"The WinRM client cannot complete the operation. Verify that the specified computer name is valid, that the computer is accessible over the network, and that a firewall exception for the WinRM service is enabled..."
Important observations:
- This works fine with domain-joined machines using Kerberos
- The Entra device is NOT registered in our DNS (which seems expected)
- Name resolution fails unless using IP
Questions:
- Is there any limitation when using WinRM from a domain device to an Entra-joined (workgroup) device?
- What is the recommended authentication method in this scenario? (NTLM? Basic over HTTPS? Certificate?)
- Is DNS registration required or should I rely on IP / hosts file?
- Are there specific WinRM configurations required for Entra-only devices?
I feel like I'm missing something fundamental in how WinRM authentication works outside of AD/Kerberos.
Thanks!
3
u/St0nywall Apr 14 '26
Use the FQDN of the machine, make sure you can ping it and it resolves in DNS as it is required.
Cert authorities have to exist on both client and destination computers.
Make sure the firewall allows WinRM. Test by disabling the firewall completely for all 3 zones.
2
u/Adam_Kearn Apr 14 '26 edited Apr 14 '26
You said the name resolution fails.
This is the first thing you need to resolve before looking at anything else.
Are you using FQDN? Do you have the correct DNS servers set?
The DNS servers should be set by DHCP but if you have the device in a different scope you might need to adjust the DHCP options to use the correct DNS servers for name resolution.
Once this is working you can then continue troubleshooting.
If you are doing self signed certs make sure you are also importing the correct authority into this image.
Looking at the output of nslookup and ipconfig should point you in the right direction.
Compare it with a working computer and see what the differences are. Could be something simple as having the wrong subnet.
1
u/ExceptionEX Apr 14 '26
I don't have a productive answer for you.
With that said, We've all but given up on winRm as about have the windows update will totally disable your ability to communicate with it and you will have to reconfigure.
We were using windows admin center for a time and it became useless to us because of this issue.
1
u/raip Apr 14 '26
Without the Authentication parameter, you'll utilize the default (which is typically Kerberos) even with UseSSL. After validating name resolution is functional and you're connecting to the correct machine, try with CredSSP.
Ideally, if you haven't set it up already (which it sounds like you haven't), setup Cloud Kerberos Trust. This allows Entra logins to utilize Kerberos, assuming you're using WHfB/WSI.
2
u/purplemonkeymad Apr 14 '26
You said that you deployed a cert. Is that cert trusted by your client?
You'll have to add it to you trusted devices on the client if not.
Since you are not using Kerberos, you'll also have to provide a credential and set the authentication type to basic.