Enable Enter-PSSession

Welcome Forums General PowerShell Q&A Enable Enter-PSSession

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

 
Keymaster
3 years, 10 months ago.

  • Author
    Posts
  • #21181

    Participant
    Points: 0
    Rank: Member

    Hello All
    Love the site. Thank you for all the learning material, It has been very helpful.
    I wanted to share this. It is what I have been doing and I am wondering if there s another way. I do not have access to GPO policies , the remote machines do not have Winrm configured and I do not have physical access o them..

    I first test connection with

    Test-WsMan computername

    If successful I am ok to connect, If it errors I then proceed below

    Then I use

    .\PsExec.exe \\computername -u localAdmin cmd "winrm quickconfig -q"

    From the remote command prompt I type the command

    winrm quickconfig

    and 'Y" to accept configuration and I am in.

    Enter-PSSession -ComputerName computername

    Any suggestions?

  • #21187

    Keymaster
    Points: 3
    Rank: Member

    WinRm quickconfig doesn't do as much as Enable-PSRemoting; you might consider running powershell.exe and having it run Enable-PSRemoting.

The topic ‘Enable Enter-PSSession’ is closed to new replies.