introduction to powershell remoting - hofferle.com€™t we already ... powershell remoting ....
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](https://reader034.vdocuments.net/reader034/viewer/2022050807/5ae3712a7f8b9a5d648ded92/html5/thumbnails/1.jpg)
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](https://reader034.vdocuments.net/reader034/viewer/2022050807/5ae3712a7f8b9a5d648ded92/html5/thumbnails/2.jpg)
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](https://reader034.vdocuments.net/reader034/viewer/2022050807/5ae3712a7f8b9a5d648ded92/html5/thumbnails/3.jpg)
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](https://reader034.vdocuments.net/reader034/viewer/2022050807/5ae3712a7f8b9a5d648ded92/html5/thumbnails/4.jpg)
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](https://reader034.vdocuments.net/reader034/viewer/2022050807/5ae3712a7f8b9a5d648ded92/html5/thumbnails/5.jpg)
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](https://reader034.vdocuments.net/reader034/viewer/2022050807/5ae3712a7f8b9a5d648ded92/html5/thumbnails/6.jpg)
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](https://reader034.vdocuments.net/reader034/viewer/2022050807/5ae3712a7f8b9a5d648ded92/html5/thumbnails/7.jpg)
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](https://reader034.vdocuments.net/reader034/viewer/2022050807/5ae3712a7f8b9a5d648ded92/html5/thumbnails/8.jpg)
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](https://reader034.vdocuments.net/reader034/viewer/2022050807/5ae3712a7f8b9a5d648ded92/html5/thumbnails/9.jpg)
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](https://reader034.vdocuments.net/reader034/viewer/2022050807/5ae3712a7f8b9a5d648ded92/html5/thumbnails/10.jpg)
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](https://reader034.vdocuments.net/reader034/viewer/2022050807/5ae3712a7f8b9a5d648ded92/html5/thumbnails/11.jpg)
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](https://reader034.vdocuments.net/reader034/viewer/2022050807/5ae3712a7f8b9a5d648ded92/html5/thumbnails/12.jpg)
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](https://reader034.vdocuments.net/reader034/viewer/2022050807/5ae3712a7f8b9a5d648ded92/html5/thumbnails/13.jpg)
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](https://reader034.vdocuments.net/reader034/viewer/2022050807/5ae3712a7f8b9a5d648ded92/html5/thumbnails/14.jpg)
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](https://reader034.vdocuments.net/reader034/viewer/2022050807/5ae3712a7f8b9a5d648ded92/html5/thumbnails/15.jpg)
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](https://reader034.vdocuments.net/reader034/viewer/2022050807/5ae3712a7f8b9a5d648ded92/html5/thumbnails/16.jpg)
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](https://reader034.vdocuments.net/reader034/viewer/2022050807/5ae3712a7f8b9a5d648ded92/html5/thumbnails/17.jpg)
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](https://reader034.vdocuments.net/reader034/viewer/2022050807/5ae3712a7f8b9a5d648ded92/html5/thumbnails/18.jpg)
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](https://reader034.vdocuments.net/reader034/viewer/2022050807/5ae3712a7f8b9a5d648ded92/html5/thumbnails/19.jpg)
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](https://reader034.vdocuments.net/reader034/viewer/2022050807/5ae3712a7f8b9a5d648ded92/html5/thumbnails/20.jpg)
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](https://reader034.vdocuments.net/reader034/viewer/2022050807/5ae3712a7f8b9a5d648ded92/html5/thumbnails/21.jpg)
Questions?