question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

WinRM container not accessible via Enter-PSSession

See original GitHub issue

I am trying without success to access the container via this command:

Enter-PSSession -ComputerName  <IP ADDRESS> -Credential User03

and then inserting the password Passw0rd in the prompt windows.

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:6

github_iconTop GitHub Comments

1reaction
Peco602commented, Jun 25, 2022

Please checkout my new repository where I have published a WinRM Windows Docker image accessible via the PowerShell command Enter-PSSession.

0reactions
rleap-mcommented, Jun 8, 2022

I was able to use the -ContainerId parameter (from the container host) to enter into a session. Probably not what you are after, but that did in fact work:

PS C:\Users\Administrator\Documents> hostname
EC2AMAZ-9I75KV2
PS C:\Users\Administrator\Documents> Enter-PSSession -ContainerId cbe0be0147d191136339d86b537189292b8eadb96915114473340ace213fca30
[cbe0be0147d1...]: PS C:\Users\ContainerUser\Documents> hostname
cbe0be0147d1
[cbe0be0147d1...]: PS C:\Users\ContainerUser\Documents> whoami
user manager\containeruser
Read more comments on GitHub >

github_iconTop Results From Across the Web

Enter-PSSession does not work from Container to ... - GitHub
Intention I want to connect from one Windows container to another Windows container using Enter-PSSession -ContainerId ... like I can when ...
Read more >
New-PSSession from docker image returns Access is denied
I am trying to write a docker for running PowerShell script remotely. In the docker I am trying create a new session using...
Read more >
Establish PSSession to Windows docker container from ...
So, I have to use the -ComputerName option. But then Credentials are needed, and even if I provide them, an access denied is...
Read more >
Enter-PSSession : Connecting to Remote Server Failed
The error message means that your user account does not have access to create a remote PowerShell session from system A to system...
Read more >
Understanding and troubleshooting WinRM connection and ...
This is usually not an issue if you are on a windows machine and using a native windows API like powershell remoting or...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found