PowerShell Master Class - PowerShell Remoting

Поділитися
Вставка
  • Опубліковано 13 жов 2024

КОМЕНТАРІ • 57

  • @pauldelasaux5756
    @pauldelasaux5756 2 роки тому +2

    Next Level Mr S. Even though the PS Core is a little outdated it's all applicable. Thank you for sharing your knowledge and making all of us better.

  • @MrMattcze
    @MrMattcze 3 роки тому +2

    Thanks John! You exhaust the subject with every video!
    Cannot express how grateful I am. Cheers!

    • @NTFAQGuy
      @NTFAQGuy  3 роки тому +1

      Glad you enjoy it!

  • @ul7987
    @ul7987 Рік тому

    Hey John, thanks for the time and effort on these walkthroughs.
    I think these courses are pretty amazing because you're giving foundational coverage.
    It's our proactivity in projects and use cases to evolve separate specialization skills in our own time.
    Keep up the great work! Really appreciate this quality of teaching.

  • @lakhdeepsingh1983
    @lakhdeepsingh1983 5 років тому +18

    I would not mind paying for such an amazing stuff. Thank you John \m/

  • @eXsoR65
    @eXsoR65 3 роки тому +1

    John thank you for this, very helpful. One thing you can do instead of telnet for troubleshooting. You can use PowerShell = Test-NetConnection "HostName" -Port 5985

  • @didier_lu
    @didier_lu 5 років тому +5

    Exceptional tutorials ... really! Thank you very very much for sharing!!!

  • @suneethnazer9217
    @suneethnazer9217 Рік тому

    Thanks so much John - much appreciated for your great effort...

  • @iamdedlok
    @iamdedlok 3 роки тому +1

    Thanks John! What a Gem of a video! Have to manage lot of Windows Server Firewall rules across many servers, and this might just help me out in the short term!!

  • @soheilamiri968
    @soheilamiri968 Рік тому

    hi John, very nice tutorial about powershell.

  • @ymsalem
    @ymsalem 5 років тому +3

    Very good informative material. Thanks for sharing.

    • @NTFAQGuy
      @NTFAQGuy  5 років тому

      Pleasure. Good luck!

  • @didierfolly
    @didierfolly 4 роки тому +2

    Thanks for this video. It is super useful. Keep teaching us!

  • @tomcruiseiscoming
    @tomcruiseiscoming 2 роки тому

    Many thx 🙏❤🌹 for sharing your knowledge....

  • @patrikkeusch7343
    @patrikkeusch7343 4 роки тому +1

    Thank you very much john so far! you are killin it

  • @ibrahimabdeltawab6418
    @ibrahimabdeltawab6418 Рік тому

    So informative! Thanks so much ❤

  • @muthupandi8714
    @muthupandi8714 4 роки тому +1

    Thanks for valuable tutorials

  • @freshmaker4o
    @freshmaker4o 6 місяців тому

    Thank you for the fantastic tutorial! Somehow I am able to do a double-hop without using Credssp, I am just creating a session from computer A to computer B and another session from computer B to computer C. On all 3 machines, I have WinRM enabled and they all have each other added to Trusted hosts. All machines are on the same subnet, not in a domain, but in the same group. The firewall is also on. Why would I be able to do that? Also, it seems that I can only use Credssp in a domain, is that correct?

  • @tracert3663
    @tracert3663 4 роки тому

    I am grateful to you for your videos. It helps me a lot to know PowerShell. Your presentation is absolutely awesome though your accent makes me a bit upset in some parts of the videos.

    • @NTFAQGuy
      @NTFAQGuy  4 роки тому

      Glad you like the presentation.

  • @JackassGaming91
    @JackassGaming91 3 роки тому

    Thank you! Superb detail tutorial

  • @chrismcgourty1756
    @chrismcgourty1756 3 роки тому

    Outstanding sir, thank you lots.

    • @NTFAQGuy
      @NTFAQGuy  3 роки тому

      You are very welcome.

  • @prajganesh
    @prajganesh 5 років тому +1

    Great course! Are you planning on any other courses?

  • @ornealm
    @ornealm 5 років тому +1

    Awesome...I am more confident.

  • @IBITZEE
    @IBITZEE 5 років тому

    been trying to install MS-PSRP in OSX (last version Mojave/10.14.6)...
    and access via OMI/WBEM...
    and also via SSH...
    The Powershell version I use is Core 6.2.3
    (and tested with 7.0preview4)...
    but no luck... just cant "Enter-PSSession"...
    1) remote OSX machine is accessible via ping (or VNC, or...)
    2) no firewall in the remote machine
    3) credentials are created for the user
    4) can connect via SSH with noo problem (even forward -X for X-Eyes)
    ?what else can I do...
    ?can you provide-me a link for some guide/tutorial/video
    Thanks for this great presentation!
    ZEE

  • @mohitarora1701
    @mohitarora1701 3 роки тому

    I have to configure the client machine for this remoting?

  • @patrikkeusch7343
    @patrikkeusch7343 4 роки тому

    A question dear powershell friendz and students of this course, who are maybe further tham me. Should I do the extrawork of creating VMs with an domaincontroller etc. for continueing this course? Will it get kind of mandatory? Because I really want to type in all of that commands myself but in this video I was't able do do so anymore at some points. Thanks

  • @balramchatria
    @balramchatria 5 років тому

    Thanks you so much for your help.

  • @JC-hd3jn
    @JC-hd3jn 2 роки тому

    1:15:10 this is fucking amazing!

  • @dwelfusius
    @dwelfusius 3 роки тому +1

    You are amazing! Do you have like a tip jar?

    • @NTFAQGuy
      @NTFAQGuy  3 роки тому +3

      Hehe thanks but no. Pay it forward 🤙

    • @dwelfusius
      @dwelfusius 3 роки тому

      @@NTFAQGuy It's really great because I'm at that level where I'm probably one of the most proficient (in PS )people in my company, but..I'm not sure if I understand certain concepts enough to ask for the "scripting and toolmaking" course (the microsoft one).And this covers a lot of the things I felt I was not-knowledgable enough about that are used in that course.Super well done, also the fact that you don't just explain what and how , but why it needs to be done or not done like that -> it helps to make it stick for me.

    • @NTFAQGuy
      @NTFAQGuy  3 роки тому

      Awesome! Keep at it and glad this useful.

  • @yvanthepcgamer7993
    @yvanthepcgamer7993 4 роки тому

    Why use invoke-command when I can just do the commands directly in a pssession of the target computer?

    • @NTFAQGuy
      @NTFAQGuy  4 роки тому

      Invoke-command doesn’t use a persistent session so good if just need to runs command on one or more.

    • @yvanthepcgamer7993
      @yvanthepcgamer7993 4 роки тому

      @@NTFAQGuy Hmm, ok thank you.

  • @manikantaguthula5711
    @manikantaguthula5711 3 роки тому

    Hi Sir,
    I have 3 servers, vm01--domain controller, vm02 and vm03 normal servers.
    I have added those servers in to the domain(vm02 and vm03)
    Now able to connect to the vm02 and vm03 through powershell remoting from vm01(dc), but not able to connect vice versa and also between vm02 and vm03.
    I am able to connect to the dc and between vm02 and vm03 from anyone by using credential with domain admin.
    I want to know why I am not able to connnect to the dc from vm02 and vm03 through remote ps without credentials.
    You told in the lecture, if we want to run against dc, we need to add our account in the builtin admin groups, now what can I add into it, I did not understand that point, like shall I need to add dc into admin groups or vm02 and vm03 into the admin groups?
    Please clarify this sir

    • @NTFAQGuy
      @NTFAQGuy  3 роки тому

      I would start with docs.microsoft.com/en-us/powershell/module/microsoft.powershell.core/about/about_remote_troubleshooting?view=powershell-7.1

  • @50PullUps
    @50PullUps 5 років тому

    Is anyone else having trouble using CredSSP when remoting into a Server Core 2016 host? I can confirm that on the host the two cmdlets have been executed:
    Enable-PSRemoting -force
    Set-Item WSMan:\localhost\Service\Auth\CredSSP -value $True
    and the correct GPO is enabled, set appropriately (*.MyDomainName.local) and linked. Is there an additional step if the remote host is running Server Core?

  • @alanspicertelecom
    @alanspicertelecom 5 років тому

    Trying to remote between 2 Windows 10 PC's on same LAN. Had troubles. Had to "$s = New-PSSession -ComputerName "User-PC" -Credential(Get-Credential)" then run commands like "Invoke-Command -Session $s -ScriptBlock { $env:COMPUTERNAME }"

    • @alanspicertelecom
      @alanspicertelecom 5 років тому

      Get into an interactive session "Enter-PsSession -Session $s" this works too !!!!

    • @alanspicertelecom
      @alanspicertelecom 5 років тому

      PS C:\WINDOWS\system32> Invoke-Command -Session $s -ScriptBlock { $psversiontable }
      Name Value
      ---- -----
      PSRemotingProtocolVersion 2.3
      BuildVersion 10.0.18922.1000
      PSVersion 5.1.18922.1000
      PSCompatibleVersions {1.0, 2.0, 3.0, 4.0...}
      PSEdition Desktop
      CLRVersion 4.0.30319.42000
      WSManStackVersion 3.0
      SerializationVersion 1.1.0.1

    • @alanspicertelecom
      @alanspicertelecom 5 років тому

      PS C:\WINDOWS\system32> Invoke-Command -ComputerName User-PC {$env:COMPUTERNAME} -Credential(Get-Credential)
      cmdlet Get-Credential at command pipeline position 1
      Supply values for the following parameters: (Popup comes up ... fill in Username and Password)
      USER-PC

  • @phanireddy6367
    @phanireddy6367 4 роки тому +1

    John please provide online training for azure

    • @NTFAQGuy
      @NTFAQGuy  4 роки тому

      Keep watching ;-) About to start releasing a new series.

  • @TranquilSoulQuest
    @TranquilSoulQuest 5 років тому

    i got this problem can you help me figuring out the problem invoke-command -computername " " {$var=10}
    [" "] Connecting to remote server " " failed with the following error message : WinRM cannot process the request. The following error with errorcode 0x8009030e occurred while using Negotiate
    authentication: A specified logon session does not exist. It may already have been terminated.
    Possible causes are:
    -The user name or password specified are invalid.
    -Kerberos is used when no authentication method and no user name are specified.
    -Kerberos accepts domain user names, but not local user names.
    -The Service Principal Name (SPN) for the remote computer name and port does not exist.
    -The client and remote computers are in different domains and there is no trust between the two domains.
    After checking for the above issues, try the following:
    -Check the Event Viewer for events related to authentication.
    -Change the authentication method; add the destination computer to the WinRM TrustedHosts configuration setting or use HTTPS transport.
    Note that computers in the TrustedHosts list might not be authenticated.
    -For more information about WinRM configuration, run the following command: winrm help config. For more information, see the about_Remote_Troubleshooting Help topic.
    + CategoryInfo : OpenError: (" ":String) [], PSRemotingTransportException
    + FullyQualifiedErrorId : 1312,PSSessionStateBroken

  • @10001000ist
    @10001000ist 5 років тому +1

    I am running into an issue. Error Message after running "Invoke-Command -ComputerName mypcname {$var = 10}".
    Error Message: Connecting to remote server mypcname failed with the following error message : The WinRM client cannot process the request. If the authentication scheme is different from Kerberos, or if the client computer is not joined to a domain, then HTTPS transport must be used or the destination machine must be added to the TrustedHosts configuration setting. Use winrm.cmd to configure TrustedHosts. Note that computers in the TrustedHosts list might not be authenticated. You can get more information about that by running the following command: winrm help config. For more information, see the about_Remote_Troubleshooting Help topic.
    Any pointers with the error?

    • @NTFAQGuy
      @NTFAQGuy  5 років тому

      Seems like maybe the machine is not in the domain so Kerberos cannot work. You could try adding to trusted hosts. The nice thing about the error is its giving you the most common causes and a next step. Run:
      get-help about_remote_troubleshooting
      for more detail. Also in the class materials I link to a free eBook on remote PowerShell that has a great troubleshooting section. Good luck!

  • @NicMG
    @NicMG 4 роки тому

    Richard Ayoade before he was famous

  • @BalvinderSingh-uh3my
    @BalvinderSingh-uh3my 3 роки тому

    Oi you Big Unit, I can't get
    invoke-command -Scriptblock {get-winevent -logname security} | select-object -first 10
    working PSVersion 7.1.3 winevent as PS 7
    Local machine.
    I have installed. Install-Module -Name WindowsCompatibility -Scope CurrentUser
    Many thanks you King of Nerds You.

    • @NTFAQGuy
      @NTFAQGuy  3 роки тому

      run in elevated window if accessing winevent

    • @BalvinderSingh-uh3my
      @BalvinderSingh-uh3my 3 роки тому

      @@NTFAQGuy I'm so stupid sorry for wasting your valuable time. I thought I did more than once it's working fine now. You Sir are a credit to your nation.