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.
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!!
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
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.
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?
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
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 }"
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
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
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?
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
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
@@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.
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?
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!
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 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.
Amazing. That bit at the end was great (simultaneous WSMan and SSH control). Thanks John.
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.
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.
Thanks John! You exhaust the subject with every video!
Cannot express how grateful I am. Cheers!
Glad you enjoy it!
Thanks so much John - much appreciated for your great effort...
I would not mind paying for such an amazing stuff. Thank you John \m/
hi John, very nice tutorial about powershell.
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!!
Glad it helped!
Exceptional tutorials ... really! Thank you very very much for sharing!!!
Thanks!
Very good informative material. Thanks for sharing.
Pleasure. Good luck!
Thanks for this video. It is super useful. Keep teaching us!
Thank you very much john so far! you are killin it
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
Great tip!
Thanks for valuable tutorials
So informative! Thanks so much ❤
Many thx 🙏❤🌹 for sharing your knowledge....
A Big Thanks for this Video
Outstanding sir, thank you lots.
You are very welcome.
Thank you! Superb detail tutorial
Thanks!
I have to configure the client machine for this remoting?
Awesome...I am more confident.
Thanks you so much for your help.
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.
Glad you like the presentation.
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?
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
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 }"
Get into an interactive session "Enter-PsSession -Session $s" this works too !!!!
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
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
Why use invoke-command when I can just do the commands directly in a pssession of the target computer?
Invoke-command doesn’t use a persistent session so good if just need to runs command on one or more.
@@NTFAQGuy Hmm, ok thank you.
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
I would start with docs.microsoft.com/en-us/powershell/module/microsoft.powershell.core/about/about_remote_troubleshooting?view=powershell-7.1
Great course! Are you planning on any other courses?
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?
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
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
You are amazing! Do you have like a tip jar?
Hehe thanks but no. Pay it forward 🤙
@@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.
Awesome! Keep at it and glad this useful.
1:15:10 this is fucking amazing!
John please provide online training for azure
Keep watching ;-) About to start releasing a new series.
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?
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!
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.
run in elevated window if accessing winevent
@@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.
Richard Ayoade before he was famous