SlideShare a Scribd company logo
Introduction to PowerShell Remoting, Part 1Matt Johnson, GSEC, MCSEmatt@michiganpowershell.com
What we are going to cover?An simple intro to remotingRemoting PrerequisitesBasic Remoting using –ComputerNameSetting up Remoting
A simple intro to remoting
In Version 1.0In version 1.0, the only command available with –ComputerName was Get-WMIObjectThis made managing a remote PC complicated.
New in V2!Some cmdlets were updated with the –ComputerName parameter.Get-ProcessGet-ServiceGetWinEventGetEventLogRestart-ComputerStop-ComputerTest-Connection
New in V2! Cont….Remote console via PS Sessions.Kinda like SSH but much cooler (since it is PowerShell)You can run ANY command on the remote PC.Can run interactively or via jobs
Remoting Prerequisites
What you needWindows 7 and Windows Server 2008 R2 has the necessary bitsWindows Vista, XP, Server 2003 and Server 2008 you will need the Windows Management FrameworkWindows PowerShell 2.0, Windows Remote Management (WinRM) 2.0, and Background Intelligent Transfer Service (BITS) 4.0
What version am I using?To check your PowerShell version, use the variable $PSVersionTable
Things to remember beforehandYou MUST be in the Administrators group on the remote PC.Both the remote and local computers must be configured to use remoting. You must have PowerShell and the related bits installed on all machines
Things to remember Cont…On current versions of windows. The network type must be work or home. Public will not work. Any policies, ie group policies, on the remote pc are in effect in remote PowerShell sessions. Keep that in mind if something isn’t working as expected.
Basic Remoting using 	–ComputerName
Commands with -ComputerNameGet-ProcessGet-ServiceGetWinEventGetEventLogRestart-ComputerStop-ComputerTest-Connection
Demo Time!Get-EventLogGet-Process
Setting Up Remoting
Enabling PowerShell RemotingRemember to be an Administrator!Open a PowerShell Prompt on the machine and type Enable-PSRemoting.
What is it doing?Runs the Set-WSManQuickConfigcmdlet, which performs the following tasks: Starts the WinRM service. Sets the startup type on the WinRM service to Automatic. Creates a listener to accept requests on any IP address. Enables a firewall exception for WS-Management communications. Enables all registered Windows PowerShell session configurations to receive instructions from a remote computer. Registers the "Microsoft.PowerShell" session configuration, if it is not already registered. Registers the "Microsoft.PowerShell32" session configuration on 64-bit computers, if it is not already registered. Removes the "Deny Everyone" setting from the security descriptor for all the registered session configurations. Restarts the WinRM service to make the preceding changes effective.
Running x64?On x64 hardware, a 32-bit listener is installed.
Firewall Exception
Remoting is now enabled!What do you do next?Configure PSRemotingRun Scripts / Commands Remotely
In Two Months!Running Interactively with PS RemotingRunning Jobs with PS RemotingWS-MAN Configuration
Questions?
Contact InfoMatt JohnsonPhone: +1 (734) 931-0323Web: http://www.mwjcomputing.com/Blog: http://www.mwjcomputing.com/blog/Twitter: http://twitter.com/mwjcomputingEmail: matt@michiganpowershell.com
Thanks!

More Related Content

What's hot (20)

PDF
NSClient++ Workshop: 06 Scripting
Michael Medin
 
PDF
Configuration of BIND DNS Server On CentOS 8
Kaan Aslandağ
 
PDF
Configuration Firewalld On CentOS 8
Kaan Aslandağ
 
PPT
Replica Sets (NYC NoSQL Meetup)
MongoDB
 
PDF
Zimbra Troubleshooting - Mails not being Delivered or Deferred or Connection ...
VCP Muthukrishna
 
PDF
Talk about Ansible and Infrastructure as Code
SATOSHI TAGOMORI
 
PPTX
Install PostgreSQL on CentOS
Rangson Sangboonruang
 
PDF
Plesk CLI Wrapper
Alexei Yuzhakov
 
PDF
How to Fix Duplicate Packages in YUM on CentOS 7
VCP Muthukrishna
 
PDF
How To Configure Nginx Load Balancer on CentOS 7
VCP Muthukrishna
 
PDF
How To Configure VNC Server on CentOS 7
VCP Muthukrishna
 
DOCX
3PAR: HOW TO CHANGE THE IP ADDRESS OF HP 3PAR SAN
Saroj Sahu
 
PDF
Firewalld LAB
Kaan Aslandağ
 
PPS
Slow system troubleshooting
Prem Sahu
 
ODP
Deploying systemd at scale
Davide Cavalca
 
PDF
How To Install and Configure Screen on CentOS 7
VCP Muthukrishna
 
PDF
Configuration of NTP Server on CentOS 8
Kaan Aslandağ
 
PDF
GCP Deployment Manager Demo
Vijayananda Mohire
 
PDF
OSDC 2014: Jan-Piet Mens - Configuration Management with Ansible
NETWAYS
 
PDF
Install Active Directory PowerShell Module on Windows 10
VCP Muthukrishna
 
NSClient++ Workshop: 06 Scripting
Michael Medin
 
Configuration of BIND DNS Server On CentOS 8
Kaan Aslandağ
 
Configuration Firewalld On CentOS 8
Kaan Aslandağ
 
Replica Sets (NYC NoSQL Meetup)
MongoDB
 
Zimbra Troubleshooting - Mails not being Delivered or Deferred or Connection ...
VCP Muthukrishna
 
Talk about Ansible and Infrastructure as Code
SATOSHI TAGOMORI
 
Install PostgreSQL on CentOS
Rangson Sangboonruang
 
Plesk CLI Wrapper
Alexei Yuzhakov
 
How to Fix Duplicate Packages in YUM on CentOS 7
VCP Muthukrishna
 
How To Configure Nginx Load Balancer on CentOS 7
VCP Muthukrishna
 
How To Configure VNC Server on CentOS 7
VCP Muthukrishna
 
3PAR: HOW TO CHANGE THE IP ADDRESS OF HP 3PAR SAN
Saroj Sahu
 
Firewalld LAB
Kaan Aslandağ
 
Slow system troubleshooting
Prem Sahu
 
Deploying systemd at scale
Davide Cavalca
 
How To Install and Configure Screen on CentOS 7
VCP Muthukrishna
 
Configuration of NTP Server on CentOS 8
Kaan Aslandağ
 
GCP Deployment Manager Demo
Vijayananda Mohire
 
OSDC 2014: Jan-Piet Mens - Configuration Management with Ansible
NETWAYS
 
Install Active Directory PowerShell Module on Windows 10
VCP Muthukrishna
 

Viewers also liked (20)

PDF
dotnet_remoting
OPENLANE
 
PPTX
14 Programación Web con .NET y C#
guidotic
 
PPT
Session 9
LiquidHub
 
PPT
Top 9 Features Of a Successful Android Application
Grey Matter India Technologies PVT LTD
 
DOC
Serialization in .NET
Abhi Arya
 
PPT
Session 6
LiquidHub
 
PPT
Dot NET Remoting
Nikhil Palyekar
 
PPTX
Net remoting
eduardojunior78
 
PPTX
The .net remote systems
Raghu nath
 
PDF
Overview of Microsoft .Net Remoting technology
Peter R. Egli
 
PPT
C sharp
Satish Verma
 
PPTX
.Net framework
Gracia Marcom
 
PPT
Net remoting
Đại Phan Văn
 
PPT
Nakov - .NET Framework Overview - English
Svetlin Nakov
 
PPTX
Evolution of wcf
Sunny Sharma
 
PDF
Using Docker for Testing
Carlos Sanchez
 
PDF
Seminari practic modelnegoci_ajsfl2003
Oscar Arnau Palacios
 
PDF
Press Release 4 Q02 Tele Nordeste Celular En
TIM RI
 
PDF
Binder20aceh
epaper
 
PPTX
2011 Fort Lauderdale 4th Annual Surety Presentation
jreedcpa
 
dotnet_remoting
OPENLANE
 
14 Programación Web con .NET y C#
guidotic
 
Session 9
LiquidHub
 
Top 9 Features Of a Successful Android Application
Grey Matter India Technologies PVT LTD
 
Serialization in .NET
Abhi Arya
 
Session 6
LiquidHub
 
Dot NET Remoting
Nikhil Palyekar
 
Net remoting
eduardojunior78
 
The .net remote systems
Raghu nath
 
Overview of Microsoft .Net Remoting technology
Peter R. Egli
 
C sharp
Satish Verma
 
.Net framework
Gracia Marcom
 
Net remoting
Đại Phan Văn
 
Nakov - .NET Framework Overview - English
Svetlin Nakov
 
Evolution of wcf
Sunny Sharma
 
Using Docker for Testing
Carlos Sanchez
 
Seminari practic modelnegoci_ajsfl2003
Oscar Arnau Palacios
 
Press Release 4 Q02 Tele Nordeste Celular En
TIM RI
 
Binder20aceh
epaper
 
2011 Fort Lauderdale 4th Annual Surety Presentation
jreedcpa
 
Ad

Similar to Feb 2010 Intro To Remoteing Part1 (20)

PPT
PowerShell Remoting
Concentrated Technology
 
PDF
Windows PowerShell Remoting Presentation.pdf
Syahri Ramadhan
 
PPT
PowerShell Remoting and Jobs (TechMentor Fall 2011)
Concentrated Technology
 
PPTX
Managing enterprise with PowerShell remoting
Concentrated Technology
 
PPTX
PowerShell 2.0 remoting
Ravikanth Chaganti
 
PPTX
Enterprise PowerShell for Remote Security Assessments
EnclaveSecurity
 
PPTX
Горизонтальные перемещения в инфраструктуре Windows
Positive Hack Days
 
PPTX
Kheirkhabarov24052017_phdays7
Teymur Kheirkhabarov
 
PPTX
Windows Command Line Tools
love4upratik
 
PPTX
DFIR Austin Training (Feb 2020): Remote Access & Deploying Agents
Christopher Gerritz
 
PPTX
07 the power in the shell - remoting
Shubham Atkare
 
PPTX
Microsoft Exchange Server 2019 Messagerie Electronique
amouwawa
 
PPTX
Powering up on power shell avengercon - 2018
Fernando Tomlinson, CISSP, MBA
 
PPTX
Powering up on PowerShell - BSides Greenville 2019
Fernando Tomlinson, CISSP, MBA
 
PDF
InSecure Remote Operations - NullCon 2023 by Yossi Sassi
Yossi Sassi
 
PPSX
Sunil phani's take on windows powershell
Sunil Phani
 
PDF
Hunting Lateral Movement in Windows Infrastructure
Sergey Soldatov
 
PDF
The Dark Side of PowerShell by George Dobrea
EC-Council
 
PPTX
Inventory your network and clients with PowerShell
Concentrated Technology
 
PDF
Powering up on PowerShell - BSides Charleston - Nov 2018
Fernando Tomlinson, CISSP, MBA
 
PowerShell Remoting
Concentrated Technology
 
Windows PowerShell Remoting Presentation.pdf
Syahri Ramadhan
 
PowerShell Remoting and Jobs (TechMentor Fall 2011)
Concentrated Technology
 
Managing enterprise with PowerShell remoting
Concentrated Technology
 
PowerShell 2.0 remoting
Ravikanth Chaganti
 
Enterprise PowerShell for Remote Security Assessments
EnclaveSecurity
 
Горизонтальные перемещения в инфраструктуре Windows
Positive Hack Days
 
Kheirkhabarov24052017_phdays7
Teymur Kheirkhabarov
 
Windows Command Line Tools
love4upratik
 
DFIR Austin Training (Feb 2020): Remote Access & Deploying Agents
Christopher Gerritz
 
07 the power in the shell - remoting
Shubham Atkare
 
Microsoft Exchange Server 2019 Messagerie Electronique
amouwawa
 
Powering up on power shell avengercon - 2018
Fernando Tomlinson, CISSP, MBA
 
Powering up on PowerShell - BSides Greenville 2019
Fernando Tomlinson, CISSP, MBA
 
InSecure Remote Operations - NullCon 2023 by Yossi Sassi
Yossi Sassi
 
Sunil phani's take on windows powershell
Sunil Phani
 
Hunting Lateral Movement in Windows Infrastructure
Sergey Soldatov
 
The Dark Side of PowerShell by George Dobrea
EC-Council
 
Inventory your network and clients with PowerShell
Concentrated Technology
 
Powering up on PowerShell - BSides Charleston - Nov 2018
Fernando Tomlinson, CISSP, MBA
 
Ad

Recently uploaded (20)

PDF
Human-centred design in online workplace learning and relationship to engagem...
Tracy Tang
 
PDF
Novus-Safe Pro: Brochure-What is Novus Safe Pro?.pdf
Novus Hi-Tech
 
PPTX
Top Managed Service Providers in Los Angeles
Captain IT
 
PPTX
✨Unleashing Collaboration: Salesforce Channels & Community Power in Patna!✨
SanjeetMishra29
 
PDF
TrustArc Webinar - Data Privacy Trends 2025: Mid-Year Insights & Program Stra...
TrustArc
 
PDF
SFWelly Summer 25 Release Highlights July 2025
Anna Loughnan Colquhoun
 
PDF
Upskill to Agentic Automation 2025 - Kickoff Meeting
DianaGray10
 
PDF
CIFDAQ Weekly Market Wrap for 11th July 2025
CIFDAQ
 
PPT
Interview paper part 3, It is based on Interview Prep
SoumyadeepGhosh39
 
PDF
Shuen Mei Parth Sharma Boost Productivity, Innovation and Efficiency wit...
AWS Chicago
 
PPTX
Top iOS App Development Company in the USA for Innovative Apps
SynapseIndia
 
PPTX
Building and Operating a Private Cloud with CloudStack and LINBIT CloudStack ...
ShapeBlue
 
PPTX
Darren Mills The Migration Modernization Balancing Act: Navigating Risks and...
AWS Chicago
 
PDF
Ampere Offers Energy-Efficient Future For AI And Cloud
ShapeBlue
 
PPTX
Building Search Using OpenSearch: Limitations and Workarounds
Sease
 
PDF
Novus Safe Lite- What is Novus Safe Lite.pdf
Novus Hi-Tech
 
PDF
DevBcn - Building 10x Organizations Using Modern Productivity Metrics
Justin Reock
 
PDF
CloudStack GPU Integration - Rohit Yadav
ShapeBlue
 
PPTX
MSP360 Backup Scheduling and Retention Best Practices.pptx
MSP360
 
PDF
SWEBOK Guide and Software Services Engineering Education
Hironori Washizaki
 
Human-centred design in online workplace learning and relationship to engagem...
Tracy Tang
 
Novus-Safe Pro: Brochure-What is Novus Safe Pro?.pdf
Novus Hi-Tech
 
Top Managed Service Providers in Los Angeles
Captain IT
 
✨Unleashing Collaboration: Salesforce Channels & Community Power in Patna!✨
SanjeetMishra29
 
TrustArc Webinar - Data Privacy Trends 2025: Mid-Year Insights & Program Stra...
TrustArc
 
SFWelly Summer 25 Release Highlights July 2025
Anna Loughnan Colquhoun
 
Upskill to Agentic Automation 2025 - Kickoff Meeting
DianaGray10
 
CIFDAQ Weekly Market Wrap for 11th July 2025
CIFDAQ
 
Interview paper part 3, It is based on Interview Prep
SoumyadeepGhosh39
 
Shuen Mei Parth Sharma Boost Productivity, Innovation and Efficiency wit...
AWS Chicago
 
Top iOS App Development Company in the USA for Innovative Apps
SynapseIndia
 
Building and Operating a Private Cloud with CloudStack and LINBIT CloudStack ...
ShapeBlue
 
Darren Mills The Migration Modernization Balancing Act: Navigating Risks and...
AWS Chicago
 
Ampere Offers Energy-Efficient Future For AI And Cloud
ShapeBlue
 
Building Search Using OpenSearch: Limitations and Workarounds
Sease
 
Novus Safe Lite- What is Novus Safe Lite.pdf
Novus Hi-Tech
 
DevBcn - Building 10x Organizations Using Modern Productivity Metrics
Justin Reock
 
CloudStack GPU Integration - Rohit Yadav
ShapeBlue
 
MSP360 Backup Scheduling and Retention Best Practices.pptx
MSP360
 
SWEBOK Guide and Software Services Engineering Education
Hironori Washizaki
 

Feb 2010 Intro To Remoteing Part1

  • 1. Introduction to PowerShell Remoting, Part 1Matt Johnson, GSEC, [email protected]
  • 2. What we are going to cover?An simple intro to remotingRemoting PrerequisitesBasic Remoting using –ComputerNameSetting up Remoting
  • 3. A simple intro to remoting
  • 4. In Version 1.0In version 1.0, the only command available with –ComputerName was Get-WMIObjectThis made managing a remote PC complicated.
  • 5. New in V2!Some cmdlets were updated with the –ComputerName parameter.Get-ProcessGet-ServiceGetWinEventGetEventLogRestart-ComputerStop-ComputerTest-Connection
  • 6. New in V2! Cont….Remote console via PS Sessions.Kinda like SSH but much cooler (since it is PowerShell)You can run ANY command on the remote PC.Can run interactively or via jobs
  • 8. What you needWindows 7 and Windows Server 2008 R2 has the necessary bitsWindows Vista, XP, Server 2003 and Server 2008 you will need the Windows Management FrameworkWindows PowerShell 2.0, Windows Remote Management (WinRM) 2.0, and Background Intelligent Transfer Service (BITS) 4.0
  • 9. What version am I using?To check your PowerShell version, use the variable $PSVersionTable
  • 10. Things to remember beforehandYou MUST be in the Administrators group on the remote PC.Both the remote and local computers must be configured to use remoting. You must have PowerShell and the related bits installed on all machines
  • 11. Things to remember Cont…On current versions of windows. The network type must be work or home. Public will not work. Any policies, ie group policies, on the remote pc are in effect in remote PowerShell sessions. Keep that in mind if something isn’t working as expected.
  • 12. Basic Remoting using –ComputerName
  • 16. Enabling PowerShell RemotingRemember to be an Administrator!Open a PowerShell Prompt on the machine and type Enable-PSRemoting.
  • 17. What is it doing?Runs the Set-WSManQuickConfigcmdlet, which performs the following tasks: Starts the WinRM service. Sets the startup type on the WinRM service to Automatic. Creates a listener to accept requests on any IP address. Enables a firewall exception for WS-Management communications. Enables all registered Windows PowerShell session configurations to receive instructions from a remote computer. Registers the "Microsoft.PowerShell" session configuration, if it is not already registered. Registers the "Microsoft.PowerShell32" session configuration on 64-bit computers, if it is not already registered. Removes the "Deny Everyone" setting from the security descriptor for all the registered session configurations. Restarts the WinRM service to make the preceding changes effective.
  • 18. Running x64?On x64 hardware, a 32-bit listener is installed.
  • 20. Remoting is now enabled!What do you do next?Configure PSRemotingRun Scripts / Commands Remotely
  • 21. In Two Months!Running Interactively with PS RemotingRunning Jobs with PS RemotingWS-MAN Configuration
  • 23. Contact InfoMatt JohnsonPhone: +1 (734) 931-0323Web: http://www.mwjcomputing.com/Blog: http://www.mwjcomputing.com/blog/Twitter: http://twitter.com/mwjcomputingEmail: [email protected]