Powershell remoting between 2 Laptops

Welcome Forums General PowerShell Q&A Powershell remoting between 2 Laptops

This topic contains 1 reply, has 2 voices, and was last updated by

 
Keymaster
6 months ago.

  • Author
    Posts
  • #100656

    Participant
    Points: 0
    Rank: Member

    Hello everyone,
    I'm breaking my head over this..

    I have a laptop with Windows 10 and Powershell 5.1 from this laptop I want to be able to remotely controll (and eventually use DSC) on a few other laptops in my workspace here, all Windows 10 with Powershell 5.1, though they are part of a Linux Samba DC, but I'm trying to connect to the local accounts. Which are logged in right now.

    I did Enable-PSRemoting -Force
    changed the TrustedHosts to "*"
    And that worked.
    Test-WSMan -Compuetername Laptop1625
    Returns info what I presume the right info.

    Now when I'm trying to invoke a command or try to start a PSSession it says Access Denied.
    Even with the right Credentials and such.. What am I doing wrong..

    I hope anyone can help. I'm sorry it's a mess of an explanation.. But It's hard for me to explain it well and understand the whole Powershell stuff.

    Thanks in advance!

  • #100657

    Keymaster
    Points: 1,624
    Helping HandTeam Member
    Rank: Community Hero

    You're likely not asserting an account that the remote run space can use. Have you read “Secrets of PowerShell Remoting?” It's free on our ebooks Page. Outside of an AD domain it can be tricky.

The topic ‘Powershell remoting between 2 Laptops’ is closed to new replies.