r/PowerShell • • Jan 26 '21

PowerShell Remoting: The Ultimate Guide

Hey guys,

u/ /r/ps_tyler just wrote a shiny new blog post you may enjoy.

"PowerShell Remoting: The Ultimate Guide"

Summary: How does PowerShell Remoting (PSRemoting) work? What authentication options are available? Learn this and more in this ultimate guide.

https://adamtheautomator.com/psremoting/

138 Upvotes

21 comments sorted by

15

u/BlackV Jan 26 '21

I like this but, what happened at the bottom you run out of space?

**Implicit vs. “Explicit” Remoting**

If you’ve used PSRemoting before, you’re probably familiar with commands like Invoke-Command, New-PSSession, Enter-PSSession, etc.    
When you run these commands, it’s clear you’re connecting to a remote computer somehow. You’re explicitly using PSRemoting.

When you run PSRemoting-specific commands, you’re explicitly running those commands but did you know there’s another way?    
Instead of invoking Invoke-Command and other cmdlets directly, you can leverage PSRemoting by using implicit PSRemoting.

you then dont go into in any way shape or for what implicit remoting is, the article just ends

10

u/adbertram Jan 26 '21

Excellent feedback. The content came from one huge article that we had to split up. I’ll work with Tyler to fix this.

1

u/BlackV Jan 26 '21

Good as gold

1

u/ps_tyler Jan 26 '21

That totally got lost in the shuffle. Thanks for bringing that up and it should be fixed soon!

3

u/Swarfega Jan 26 '21

I thought that. I even clicked the Invoke-Command link thinking it was in there. Would be nice to see that last section.

1

u/BlackV Jan 26 '21

It'll be fixed soon it seems

5

u/32178932123 Jan 26 '21

Hey Adam, just a small comment but I don't think this line is correct:

There’s one catch to using CredSSP though. The user credential stored on the first remote server is stored in plain-text thus introducing an obvious security concern.

According to this article that may have been fixed? It says:

Update: This testing was done using Windows Server 2012. Microsoft has made changes to Windows Server 2012R2 and Windows 8.1 to eliminate clear-text credentials from being stored in memory. This means that an attacker who runs Mimikatz will no longer see your clear-text credentials. An attacker will still see your NT password hash and your Kerberos TGT, both of which are password equivalent and can be used to authenticate as you over the network.

I could be wrong though - I was trying to find out how big a security risk opening up CredSSP is (and still not sure) so if anyone has any knowledge I'd be grateful!

3

u/adbertram Jan 26 '21

Thanks for that. I’ll work with Tyler to look into that.

3

u/ps_tyler Jan 26 '21

That is correct. We will get the article updated momentarily. There is still a security risk and it is only slightly less than having the plain-text password in memory, but it is good to point out. Thanks!

2

u/Cladex Jan 26 '21

Another awesome article Adam. As someone who is learning power shell I find your articles very well written and easy to follow.

Keep it up your making me look good at my job! LoL

1

u/adbertram Jan 26 '21

That's what I like to hear. I spend a lot of time with the writers helping them craft the content for everyone. I'm glad you're noticing!

2

u/soxfan3247 Jan 27 '21

Was this article pulled temporarily? I saved this to read later and now the link above redirects to https://adamtheautomator.com/psremoting-linux/ instead of the PSRemoting Ultimate Guide

2

u/adbertram Jan 27 '21

I'm not sure what happened there. This link still points to the PowerShell remoting Ultimate guide --> https://adamtheautomator.com/psremoting/

Tyler did publish one on PSRemoting with Linux recently too though.

2

u/soxfan3247 Jan 28 '21 edited Jan 28 '21

Yeah, that points to psremoting, but takes you to the psremoting-linux article. I can't get to the original article anymore :(

Edit: browsing to that link still redirects to psremoting-linux for some reason, but I found the article linked as a related article and that worked!

3

u/adbertram Jan 28 '21

Weird. I’ll fix this.

1

u/scotepi Jan 26 '21

In one of the next parts can you go over auto reconnect on session expiration? ExchangeOnline module will auto reconnect when you try and run one of the modules methods but I can’t seam to replicate that when connecting to Exchange OnPrem.

1

u/adbertram Jan 26 '21

I’ll ask Tyler if he’d like to add that.

3

u/_Dron_ Jan 26 '21

Nice job. Thanks for the article, which has an added-value in getting to know you and your pages ;-)

3

u/holding3 Jan 26 '21

Great article. Relearned some things I have long forgotten from lack of use. Hoping I can implement some of this at work

-1

u/Akami_Channel Jan 26 '21

I made it easier on myself and installed wsl. And then switched to linux.

0

u/[deleted] Jan 26 '21

[deleted]

4

u/adbertram Jan 26 '21

Stay tuned because that’s just the start of PSremoting topics. We’ve got another three coming up that goes into the nuts and bolts. This one was just an overview.