I m sorry team, did some formatting / tag mistake. Its looks bit wired for error messages. Only single line placed under pre tag. I m really sorry.
Have you looked at Secrets of PowerShell Remoting?
[quote quote=142911]Have you looked at Secrets of PowerShell Remoting?
[/quote]
Thanks for the reference, I ll definitely read that. For now could you plz suggest me where should I check without referring entire book.
This is an environmental thing on your side, and since we are not in your environment, we’d be guessing.
There are many things that can cause Access Denied. This is not specific to PS.
How do you enable PSRemoting, on the destination?
What account are you trying to use for this remoting session?
What exactly are you trying to do? (many cmdlets / actions require you be a local admin on the target.)
Adding something to trusted host is a PSRemoting workgroup confit, not domain. Even so there are settings, when in workgroup mode the you must set for it to work.
In a domain model, there should be little reason to do this. Which means you have a misunderstanding about what PSRemoting should work. Thus the suggestion of reading the eBook, or one like it is prudent so that can approach this as defined.
Windows authentication boundaries will prevent removing as well as the dreaded double hop Auth issues.
Resolve Double-Hop Issue in PowerShell Remoting
https://www.codeproject.com/Tips/847119/Resolve-Double-Hop-Issue-in-PowerShell-Remoting
Enabling Multihop Remoting
Enable PowerShell Double-Hop Remoting
PowerShell Remoting Kerberos Double Hop Solved Securely
Windows firewalls or other security gateways between source and destination can choke out what thigs as well.
What port does PowerShell remoting use?
[quote quote=143015]This is an environmental thing on your side, and since we are not in your environment, we’d be guessing.
There are many things that can cause Access Denied. This is not specific to PS.
How do you enable PSRemoting, on the destination?
What account are you trying to use for this remoting session?
What exactly are you trying to do? (many cmdlets / actions require you be a local admin on the target.)
Adding something to trusted host is a PSRemoting workgroup confit, not domain. Even so there are settings, when in workgroup mode the you must set for it to work.
In a domain model, there should be little reason to do this. Which means you have a misunderstanding about what PSRemoting should work. Thus the suggestion of reading the eBook, or one like it is prudent so that can approach this as defined.
Windows authentication boundaries will prevent removing as well as the dreaded double hop Auth issues.
Resolve Double-Hop Issue in PowerShell Remoting
https://www.codeproject.com/Tips/847119/Resolve-Double-Hop-Issue-in-PowerShell-Remoting
Enabling Multihop Remoting
Enabling Multihop Remoting<iframe class="wp-embedded-content" title="" src="https://devblogs.microsoft.com/scripting/enabling-multihop-remoting/embed/#?secret=D9hCAnVaJe" width="600" height="649" frameborder="0" marginwidth="0" marginheight="0" scrolling="no" sandbox="allow-scripts" data-secret="D9hCAnVaJe" data-mce-fragment="1"></iframe>
Enable PowerShell Double-Hop Remoting
https://www.travisgan.com/2014/03/enable-powershell-double-hop-remoting.html
PowerShell Remoting Kerberos Double Hop Solved Securely
Windows firewalls or other security gateways between source and destination can choke out what thigs as well.
What port does PowerShell remoting use?
https://blogs.technet.microsoft.com/christwe/2012/06/20/what-port-does-powershell-remoting-use
[/quote]
Thanks for detail guide. I know its a env issue. But for now I was unable to think where to start.
As I mentioned earlier, if I mstsc to site1 server and then do psremote to site2 server, its working. But when I m doing psremoting from parent domain using trusted host, where trust is not available, there I get the access denied issue.
If its account level issue it should block everytime. Thats why I m suspecting trusted host. I already start reading the book, I hope I’ll manage something. In the mean time, if you think I should check … areas, plz let me know.
In trusted host list I added *.childdomain.parentdomain.com. Plz confirm me that should allow me to psremote all the servers under same namespace, Or I have to add each server.
Thanks again.
Roy.
Don’t use mstsc as any indicator of relevance of what you are seeing / using in PowerShell. Both have their own port/protocol/Comms requirements.
mstsc (uses RDP) and PSRemoting (uses WinRM/WMI/DCOM/CIM) are two entirely different things.
If you cannot to basic WMI / DCOM / CIM calls to that target, then you are being blocked by something, in upstream, or it’s a configuration issue on the target(s).
Secondly, don’t do this… *.childdomain.parentdomain.com —
Put the specific host name, into TrustedHosts. Configure the remote machine to have an HTTPS listener - the SSL certificate you’ll install will make the mutual authentication happen.
See also: