+ All Categories
Home > Documents > Introduction To PowerShell Remoting - hofferle.com€™t we already ... PowerShell Remoting ....

Introduction To PowerShell Remoting - hofferle.com€™t we already ... PowerShell Remoting ....

Date post: 28-Apr-2018
Category:
Upload: ngodiep
View: 242 times
Download: 4 times
Share this document with a friend
21
PowerShell Remoting Introduction To Jason Hofferle www.hofferle.com @jhofferle
Transcript
Page 1: Introduction To PowerShell Remoting - hofferle.com€™t we already ... PowerShell Remoting . Client Server ... Don Jones, Dr. Tobias Weltner. Questions? Title: PowerPoint Presentation

PowerShell Remoting Introduction To

Jason Hofferle www.hofferle.com

@jhofferle

Page 2: Introduction To PowerShell Remoting - hofferle.com€™t we already ... PowerShell Remoting . Client Server ... Don Jones, Dr. Tobias Weltner. Questions? Title: PowerPoint Presentation

Don’t we already have remoting?

WMI remote access

Native executables with remote management

PSExec

ComputerName Parameter

Page 3: Introduction To PowerShell Remoting - hofferle.com€™t we already ... PowerShell Remoting . Client Server ... Don Jones, Dr. Tobias Weltner. Questions? Title: PowerPoint Presentation

Problems with current remoting?

No Consistency

DCOM / RPC

Security

Differences between local & remote

Page 4: Introduction To PowerShell Remoting - hofferle.com€™t we already ... PowerShell Remoting . Client Server ... Don Jones, Dr. Tobias Weltner. Questions? Title: PowerPoint Presentation

PowerShell v2 Feature

Built on Web Services for Management ( WSMAN )

Universal Method for Managing Remote Systems

Designed to be Secure and Reliable

PowerShell Remoting

Page 5: Introduction To PowerShell Remoting - hofferle.com€™t we already ... PowerShell Remoting . Client Server ... Don Jones, Dr. Tobias Weltner. Questions? Title: PowerPoint Presentation

Client Server

PowerShell Remoting Protocol Stack

Page 6: Introduction To PowerShell Remoting - hofferle.com€™t we already ... PowerShell Remoting . Client Server ... Don Jones, Dr. Tobias Weltner. Questions? Title: PowerPoint Presentation

Authentication

Basic

Digest

Kerberos

Negotiate

CredSSP

Page 7: Introduction To PowerShell Remoting - hofferle.com€™t we already ... PowerShell Remoting . Client Server ... Don Jones, Dr. Tobias Weltner. Questions? Title: PowerPoint Presentation

Where do I get it?

PowerShell Version 2

Windows 7

Server 2008 R2

Windows Management Framework Core

Page 8: Introduction To PowerShell Remoting - hofferle.com€™t we already ... PowerShell Remoting . Client Server ... Don Jones, Dr. Tobias Weltner. Questions? Title: PowerPoint Presentation

Enabling Remoting

WinRM Service

Listener

Firewall

Page 9: Introduction To PowerShell Remoting - hofferle.com€™t we already ... PowerShell Remoting . Client Server ... Don Jones, Dr. Tobias Weltner. Questions? Title: PowerPoint Presentation

Domain Remoting

Configure with Group Policy

Rely on Kerberos Authentication

CredSSP for Multiple Hops

LocalAccountTokenFilterPolicy ( Cross-Domain )

Page 10: Introduction To PowerShell Remoting - hofferle.com€™t we already ... PowerShell Remoting . Client Server ... Don Jones, Dr. Tobias Weltner. Questions? Title: PowerPoint Presentation

Workgroup Remoting

HTTPS or TrustedHosts on client

Enable-PSRemoting

Winrm.vbs

Get-Help about_remote_troubleshooting

Page 11: Introduction To PowerShell Remoting - hofferle.com€™t we already ... PowerShell Remoting . Client Server ... Don Jones, Dr. Tobias Weltner. Questions? Title: PowerPoint Presentation

Interactive Remoting

Page 12: Introduction To PowerShell Remoting - hofferle.com€™t we already ... PowerShell Remoting . Client Server ... Don Jones, Dr. Tobias Weltner. Questions? Title: PowerPoint Presentation

Fan-out Remoting out Remoting

Page 13: Introduction To PowerShell Remoting - hofferle.com€™t we already ... PowerShell Remoting . Client Server ... Don Jones, Dr. Tobias Weltner. Questions? Title: PowerPoint Presentation

Without Remoting

$computers | foreach {

Get-WinEvent -FilterHashTable @{

logname="security";id=4624}

-MaxEvents 20 -ComputerName $_

}

Page 14: Introduction To PowerShell Remoting - hofferle.com€™t we already ... PowerShell Remoting . Client Server ... Don Jones, Dr. Tobias Weltner. Questions? Title: PowerPoint Presentation

Without Remoting

6.23 Hours

0 1 2 3 4 5 6 7

100 Computers

Page 15: Introduction To PowerShell Remoting - hofferle.com€™t we already ... PowerShell Remoting . Client Server ... Don Jones, Dr. Tobias Weltner. Questions? Title: PowerPoint Presentation

With PowerShell Remoting

Invoke-Command

-ComputerName $computers

-ScriptBlock {

Get-WinEvent -FilterHashTable @{

logname="security";id=4624}

-MaxEvents 20

}

-ThrottleLimit 50

Page 16: Introduction To PowerShell Remoting - hofferle.com€™t we already ... PowerShell Remoting . Client Server ... Don Jones, Dr. Tobias Weltner. Questions? Title: PowerPoint Presentation

With vs Without Remoting

0 50 100 150 200 250 300 350 400

No Remoting

Remoting

Minutes

100 Computers

15 Seconds

6.23 Hours

Page 17: Introduction To PowerShell Remoting - hofferle.com€™t we already ... PowerShell Remoting . Client Server ... Don Jones, Dr. Tobias Weltner. Questions? Title: PowerPoint Presentation

6.23 Hours

Page 18: Introduction To PowerShell Remoting - hofferle.com€™t we already ... PowerShell Remoting . Client Server ... Don Jones, Dr. Tobias Weltner. Questions? Title: PowerPoint Presentation

15 Seconds

Page 19: Introduction To PowerShell Remoting - hofferle.com€™t we already ... PowerShell Remoting . Client Server ... Don Jones, Dr. Tobias Weltner. Questions? Title: PowerPoint Presentation

Remoting Performance

15

20

53

131

0 20 40 60 80 100 120 140

100

200

400

1000

Seconds

Co

mp

ute

rs

Page 20: Introduction To PowerShell Remoting - hofferle.com€™t we already ... PowerShell Remoting . Client Server ... Don Jones, Dr. Tobias Weltner. Questions? Title: PowerPoint Presentation

Free Resources

A layman’s guide to PowerShell 2.0 remoting

Ravikanth Chaganti

Administrator’s Guide to Windows PowerShell Remoting

Dr. Tobias Weltner, Aleksandar Nikolic & Richard Giles

Secrets of PowerShell Remoting

Don Jones, Dr. Tobias Weltner

Page 21: Introduction To PowerShell Remoting - hofferle.com€™t we already ... PowerShell Remoting . Client Server ... Don Jones, Dr. Tobias Weltner. Questions? Title: PowerPoint Presentation

Questions?


Recommended