Тёмный
No video :(

PowerShell Master Class - PowerShell Remoting 

John Savill's Technical Training
Подписаться 277 тыс.
Просмотров 83 тыс.
50% 1

The remoting module in the PowerShell Master Class showing how to unleash the power of PowerShell across many systems including cross-platform.
This is a multi-part class that should be viewed as part of its playlist, • PowerShell Master Class
Materials for the class available at github.com/johnthebrit/PowerS...
0:00:00 Introduction
0:00:40 Remote management basics
0:01:50 No RPC
0:02:39 WinRM introduction
0:04:35 Enabling WinRM
0:07:14 Invoke-Command
0:20:16 Sessions and Enter-PSSession
0:36:52 Compatibility with PowerShell Core
0:41:39 Alternate endpoints
0:45:35 Robust connections
0:48:20 Authentication
0:58:18 Connection outside trusted domain and trusted hosts
0:59:04 Troubleshooting
1:00:53 HTTPS with SSL
1:05:30 Connecting using SSL
1:08:00 Non-Windows and SSH
1:15:54 Coming up next

Опубликовано:

 

6 авг 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 58   
@kumarang9610
@kumarang9610 Год назад
Awesome video. No one has covered RM in depth and in a simple manner so that everyone can understand. Greatly appreciated.
@lakhdeepsingh1983
@lakhdeepsingh1983 5 лет назад
I would not mind paying for such an amazing stuff. Thank you John \m/
@MrMattcze
@MrMattcze 2 года назад
Thanks John! You exhaust the subject with every video! Cannot express how grateful I am. Cheers!
@NTFAQGuy
@NTFAQGuy 2 года назад
Glad you enjoy it!
@pauldelasaux5756
@pauldelasaux5756 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.
@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.
@didierfolly
@didierfolly 4 года назад
Thanks for this video. It is super useful. Keep teaching us!
@ghdbdeeeeeaqqq
@ghdbdeeeeeaqqq 5 лет назад
Exceptional tutorials ... really! Thank you very very much for sharing!!!
@NTFAQGuy
@NTFAQGuy 5 лет назад
Thanks!
@patrikkeusch7343
@patrikkeusch7343 4 года назад
Thank you very much john so far! you are killin it
@iamdedlok
@iamdedlok 3 года назад
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!!
@NTFAQGuy
@NTFAQGuy 3 года назад
Glad it helped!
@ymsalem
@ymsalem 5 лет назад
Very good informative material. Thanks for sharing.
@NTFAQGuy
@NTFAQGuy 5 лет назад
Pleasure. Good luck!
@suneethnazer9217
@suneethnazer9217 Год назад
Thanks so much John - much appreciated for your great effort...
@muthupandi8714
@muthupandi8714 4 года назад
Thanks for valuable tutorials
@soheilamiri968
@soheilamiri968 10 месяцев назад
hi John, very nice tutorial about powershell.
@balramchatria
@balramchatria 4 года назад
Thanks you so much for your help.
@ibrahimabdeltawab6418
@ibrahimabdeltawab6418 Год назад
So informative! Thanks so much ❤
@tomcruiseiscoming
@tomcruiseiscoming 2 года назад
Many thx 🙏❤🌹 for sharing your knowledge....
@JackassGaming91
@JackassGaming91 3 года назад
Thank you! Superb detail tutorial
@NTFAQGuy
@NTFAQGuy 3 года назад
Thanks!
@chrismcgourty1756
@chrismcgourty1756 3 года назад
Outstanding sir, thank you lots.
@NTFAQGuy
@NTFAQGuy 3 года назад
You are very welcome.
@eXsoR65
@eXsoR65 3 года назад
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
@NTFAQGuy
@NTFAQGuy 3 года назад
Great tip!
@ornealm
@ornealm 5 лет назад
Awesome...I am more confident.
@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?
@prajganesh
@prajganesh 5 лет назад
Great course! Are you planning on any other courses?
@tracert3663
@tracert3663 3 года назад
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 3 года назад
Glad you like the presentation.
@IBITZEE
@IBITZEE 4 года назад
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
@JC-hd3jn
@JC-hd3jn 2 года назад
1:15:10 this is fucking amazing!
@freshmaker4o
@freshmaker4o 4 месяца назад
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?
@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
@dwelfusius
@dwelfusius 3 года назад
You are amazing! Do you have like a tip jar?
@NTFAQGuy
@NTFAQGuy 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.
@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
@TranquilSoulQuest
@TranquilSoulQuest 4 года назад
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
@yvanthepcgamer7993
@yvanthepcgamer7993 3 года назад
Why use invoke-command when I can just do the commands directly in a pssession of the target computer?
@NTFAQGuy
@NTFAQGuy 3 года назад
Invoke-command doesn’t use a persistent session so good if just need to runs command on one or more.
@yvanthepcgamer7993
@yvanthepcgamer7993 3 года назад
@@NTFAQGuy Hmm, ok thank you.
@NicMG
@NicMG 4 года назад
Richard Ayoade before he was famous
@phanireddy6367
@phanireddy6367 4 года назад
John please provide online training for azure
@NTFAQGuy
@NTFAQGuy 4 года назад
Keep watching ;-) About to start releasing a new series.
@10001000ist
@10001000ist 5 лет назад
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!
@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.
Далее
Getting Ready for DevOps with PowerShell and VS Code
40:28
PowerShell Master Class - Connecting Commands Together
1:06:50
ПОМОГЛА НАЗЫВАЕТСЯ😂
00:20
Просмотров 2 млн
PORTAL SPAMMER🤬🤬🤬| Doge Gaming
00:19
Просмотров 1,7 млн
PowerShell Master Class - Desired State Configuration
36:32
PowerShell Master Class - Automation
46:06
Просмотров 28 тыс.
PowerShell Master Class - Data and Objects
46:10
Просмотров 25 тыс.
PowerShell Remoting
37:12
Просмотров 70 тыс.
PowerShell 7 Overview
28:52
Просмотров 24 тыс.
Disable These 3 Windows Settings Now! (For Security)
12:26
The Tragedy of systemd
47:18
Просмотров 1,1 млн