Beginner-friendly tutorial on PowerShell remoting

  Рет қаралды 14,626

Mike in the Cloud

Mike in the Cloud

Күн бұрын

Пікірлер: 53
@binaryblog
@binaryblog 10 ай бұрын
Very well explained. Kudos for explaining why you have to put get-credential into brackets.
@mwcloud
@mwcloud 9 ай бұрын
Thank for taking the time to watch
@nishantrapate
@nishantrapate 2 ай бұрын
He has put get-credentials into the brackets so that it will prompt first to supply your credentials and then once the variable has your credentials value it will execute the entire command with your credentials later, this way the entire command will get executed without any errors especially related to credentials, hope this will help.
@lukaspechar
@lukaspechar 8 минут бұрын
Fantastic tutorial, subbed!
@pranilraut6525
@pranilraut6525 5 ай бұрын
Very clear explanation. Shared this video with my teammates who are struggling to get started with PowerShell
@mwcloud
@mwcloud 5 ай бұрын
Thank you. I will do more eventually, just been busy with other work
@brusslee1814
@brusslee1814 Ай бұрын
best teacher EVER
@mwcloud
@mwcloud Ай бұрын
@@brusslee1814 thank you very much, please feel free to subscribe and check out my other tutorials
@KL2GW
@KL2GW Жыл бұрын
OH MAN!!!! Thank You, Thank You, Thank You!!! I was getting stuck and kept getting Access Denied. WoW This Really Helped me!! KUDOS
@mwcloud
@mwcloud Жыл бұрын
You are welcome!
@alejandroparrello6493
@alejandroparrello6493 2 ай бұрын
Awesome video, Mike! I'd like to add a little tip: If you have a firewall on, remember to open and restrict TCP port 5985 to only the few PCs used as 'jump stations.' Also, if you're outside the domain, you need to add the target as a trusted host on your local PC. Regards from Argentina 👋🫡
@zeeshandilawar2886
@zeeshandilawar2886 19 күн бұрын
wow thank you soo soo much!!!!! love from Pakistan
@luisevidal
@luisevidal 7 ай бұрын
Outstanding explanation, mate. Thanks!
@Abhi_ThePrOblemSOlver
@Abhi_ThePrOblemSOlver 3 ай бұрын
Explanation is too good.💯
@mwcloud
@mwcloud 3 ай бұрын
Thank you. Remember to sub and watch my other content too
@Abhi_ThePrOblemSOlver
@Abhi_ThePrOblemSOlver 3 ай бұрын
​@@mwcloudYes i already did that.
@mwcloud
@mwcloud 3 ай бұрын
@@Abhi_ThePrOblemSOlver Thank you, I appreciate it.
@Matthew__Hawk
@Matthew__Hawk 8 ай бұрын
Very helpful! Broke it down for me and fully understood on the first go around!
@mwcloud
@mwcloud 8 ай бұрын
No problem, check out some of my other content too. Every sub is more encouragement to make more
@kafkakos3618
@kafkakos3618 4 ай бұрын
Cheers Mike. - keep them coming .
@mwcloud
@mwcloud 3 ай бұрын
Thanks
@patrick__007
@patrick__007 Жыл бұрын
Love your content. Keep up doing this🎉
@mwcloud
@mwcloud Жыл бұрын
Thank you. I’m trying to improve the editing each time
@trestenpool9045
@trestenpool9045 Ай бұрын
Has the advanced part to this video came out yet? Also Love the content!
@mwcloud
@mwcloud Ай бұрын
not yet, I should proabably get around to that
@DeepakSharma-dp8si
@DeepakSharma-dp8si 2 ай бұрын
Hi Mike, Your video was great. I need help running the session in admin mode in those remote computers. I am already admin in those computers. Is it possible to do it?
@srinivas1623
@srinivas1623 3 ай бұрын
Thanks Mike
@mwcloud
@mwcloud 3 ай бұрын
Any time
@prasadnetke
@prasadnetke Жыл бұрын
Thank you that was the most Simplest and detailed one ,perfectly explained. I have one query though when I try using invoke command in my prod environment it gives me an error stating WINRM can not connect via Http/Https. I am not allowed to make any changes to existing setup can you tell me a work around for this?
@mwcloud
@mwcloud Жыл бұрын
There isn’t one. If remote access is blocked in your environment by a higher admin. Then it’s blocked.
@nishantrapate
@nishantrapate 2 ай бұрын
Could you please explain how I can use hash table for creating pssession
@mwcloud
@mwcloud 2 ай бұрын
do you mean for storing credentials that you pass to a pssession?
@hulstie
@hulstie 8 ай бұрын
Getting the following error. I have proper creds/perms, same domain, winRM configured properly. Any suggestions? PSRemotingTransportException + FullyQualifiedErrorId : ServerNotTrusted,PSSessionStateBroken
@mwcloud
@mwcloud 8 ай бұрын
You need to set trusted hosts on the thing you are connecting from
@UzairAli001
@UzairAli001 Жыл бұрын
Love it ❤
@mwcloud
@mwcloud Жыл бұрын
Thanky you!
@pimenjc
@pimenjc 3 ай бұрын
MUITO OBRIGADO.
@mwcloud
@mwcloud 3 ай бұрын
De nada
@grachit999
@grachit999 8 ай бұрын
How do I set a computer name here (like you're setting up DC). There must be some way to set it up so that local machine will recognize the machine running behind DC. Got below error: Invoke-Command -ComputerName DC -ScriptBlock {get-date} [DC] Connecting to remote server DC failed with the following error message : WinRM cannot process the request. + CategoryInfo : OpenError: (DC:String) [], PSRemotingTransportException + FullyQualifiedErrorId : NetworkPathNotFound,PSSessionStateBroken
@mwcloud
@mwcloud 8 ай бұрын
Just use the name of the computer you are trying to connect to in your domain
@procc.
@procc. 8 ай бұрын
Is there any tutorial how to enable remote powershell in remote pc's?
@mwcloud
@mwcloud 8 ай бұрын
Enable it remotely so you can then remote to them with powershell ?
@EfecTivo187
@EfecTivo187 2 ай бұрын
Rockstar!
@alainsabum
@alainsabum 4 ай бұрын
Do You have a course
@mwcloud
@mwcloud 4 ай бұрын
Yes I do, i offer them privately and they are 5 days long, remotely or in person, you can contact me on my website should you want to enquire
@alainsabum
@alainsabum 4 ай бұрын
@@mwcloud what’s your site
@mwcloud
@mwcloud 4 ай бұрын
@@alainsabumits on the channel homepage
@deadjoke
@deadjoke Жыл бұрын
Yet, the SOC teams says it’s a security risk to enable windows remote management
@michaelxz1305
@michaelxz1305 3 ай бұрын
this is light years ahead of a thick Indian accent (common on IT videos but so distracting)
@mwcloud
@mwcloud 3 ай бұрын
Thanks
@emrelabarjr6803
@emrelabarjr6803 6 ай бұрын
I liked the video, but i could not seem to get what's in the brackets after the scriptBlock to work.... $cn = $env:computername $un = $env:username $date = (Get-Date).ToString("yyyy-MM-dd") Invoke-Command -ComputerName Laptop -ScriptBlock {powercfg -batteryreport -output \\computer\d$\PowercfgFiles\${date}\${cn}_${un}_battery_report.html /duration 14} this works but puts the file on the local machine. i was trying to get the output to a different PC Invoke-Command -ComputerName Laptop -ScriptBlock {powercfg /Batteryreport}
@mwcloud
@mwcloud 6 ай бұрын
you have run into what is called the "powershell double hop problem" your session cannot pass the creds you used to another session, that other session in this case is the SMB share connection. It is too much to explain here, but google 'powershell double hop problem' and it will put you on the right track. You need to re-authenticate the SMB connection
@emrelabarjr6803
@emrelabarjr6803 6 ай бұрын
@@mwcloud Thanks! i will look into that tomorrow.
Windows Server 2025 Pay as You Go and Azure ARC
21:49
Mike in the Cloud
Рет қаралды 523
Noodles Eating Challenge, So Magical! So Much Fun#Funnyfamily #Partygames #Funny
00:33
Человек паук уже не тот
00:32
Miracle
Рет қаралды 4,4 МЛН
Who's spending her birthday with Harley Quinn on halloween?#Harley Quinn #joker
01:00
Harley Quinn with the Joker
Рет қаралды 27 МЛН
Getting started with PnP PowerShell - Installation and app registration
26:28
Microsoft Community Learning
Рет қаралды 6 М.
PowerShell Remoting
37:12
TechThoughts
Рет қаралды 73 М.
Running PowerShell code  as background tasks with PowerShell jobs
15:30
Mike in the Cloud
Рет қаралды 2,6 М.
Learn PowerShell: Episode 1, The Basics
26:43
ABMedia
Рет қаралды 98 М.
From PowerShell to Pretty: A GUI for Your Commands
6:51
Mike in the Cloud
Рет қаралды 821
Top PowerShell Commands Every Sysadmin Needs to Know!
28:07
James on IT
Рет қаралды 4,4 М.
PowerShell 7 Tutorials for Intermediates #4 : Remoting
26:54
JackedProgrammer
Рет қаралды 3,9 М.
5 Tips to Help You Learn Windows PowerShell
18:34
Gary Explains
Рет қаралды 44 М.
Noodles Eating Challenge, So Magical! So Much Fun#Funnyfamily #Partygames #Funny
00:33