SlideShare ist ein Scribd-Unternehmen logo
1 von 24
Introduction to PowerShell Remoting, Part 1 Matt Johnson, GSEC, MCSE matt@michiganpowershell.com
What we are going to cover? An simple intro to remoting Remoting Prerequisites Basic Remoting using –ComputerName Setting up Remoting
A simple intro to remoting
In Version 1.0 In version 1.0, the only command available with –ComputerName was Get-WMIObject This made managing a remote PC complicated.
New in V2! Some cmdlets were updated with the –ComputerName parameter. Get-Process Get-Service GetWinEvent GetEventLog Restart-Computer Stop-Computer Test-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 need Windows 7 and Windows Server 2008 R2 has the necessary bits Windows Vista, XP, Server 2003 and Server 2008 you will need the Windows Management Framework Windows 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 beforehand You 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 -ComputerName Get-Process Get-Service GetWinEvent GetEventLog Restart-Computer Stop-Computer Test-Connection
Demo Time! Get-EventLog Get-Process
Setting Up Remoting
Enabling PowerShell Remoting Remember 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 PSRemoting Run Scripts / Commands Remotely
In Two Months! Running Interactively with PS Remoting Running Jobs with PS Remoting WS-MAN Configuration
Questions?
Contact Info Matt Johnson Phone: +1 (734) 931-0323 Web: http://www.mwjcomputing.com/ Blog: http://www.mwjcomputing.com/blog/ Twitter: http://twitter.com/mwjcomputing Email: matt@michiganpowershell.com
Thanks!

Weitere ähnliche Inhalte

Was ist angesagt?

Was ist angesagt? (20)

NSClient++ Workshop: 06 Scripting
NSClient++ Workshop: 06 ScriptingNSClient++ Workshop: 06 Scripting
NSClient++ Workshop: 06 Scripting
 
Configuration of BIND DNS Server On CentOS 8
Configuration of BIND DNS Server On CentOS 8Configuration of BIND DNS Server On CentOS 8
Configuration of BIND DNS Server On CentOS 8
 
Configuration Firewalld On CentOS 8
Configuration Firewalld On CentOS 8Configuration Firewalld On CentOS 8
Configuration Firewalld On CentOS 8
 
Replica Sets (NYC NoSQL Meetup)
Replica Sets (NYC NoSQL Meetup)Replica Sets (NYC NoSQL Meetup)
Replica Sets (NYC NoSQL Meetup)
 
Zimbra Troubleshooting - Mails not being Delivered or Deferred or Connection ...
Zimbra Troubleshooting - Mails not being Delivered or Deferred or Connection ...Zimbra Troubleshooting - Mails not being Delivered or Deferred or Connection ...
Zimbra Troubleshooting - Mails not being Delivered or Deferred or Connection ...
 
Talk about Ansible and Infrastructure as Code
Talk about Ansible and Infrastructure as CodeTalk about Ansible and Infrastructure as Code
Talk about Ansible and Infrastructure as Code
 
Install PostgreSQL on CentOS
Install PostgreSQL on CentOSInstall PostgreSQL on CentOS
Install PostgreSQL on CentOS
 
Plesk CLI Wrapper
Plesk CLI WrapperPlesk CLI Wrapper
Plesk CLI Wrapper
 
How to Fix Duplicate Packages in YUM on CentOS 7
How to Fix Duplicate Packages in YUM on CentOS 7How to Fix Duplicate Packages in YUM on CentOS 7
How to Fix Duplicate Packages in YUM on CentOS 7
 
How To Configure Nginx Load Balancer on CentOS 7
How To Configure Nginx Load Balancer on CentOS 7How To Configure Nginx Load Balancer on CentOS 7
How To Configure Nginx Load Balancer on CentOS 7
 
How To Configure VNC Server on CentOS 7
How To Configure VNC Server on CentOS 7How To Configure VNC Server on CentOS 7
How To Configure VNC Server on CentOS 7
 
3PAR: HOW TO CHANGE THE IP ADDRESS OF HP 3PAR SAN
3PAR: HOW TO CHANGE THE IP ADDRESS OF HP 3PAR SAN3PAR: HOW TO CHANGE THE IP ADDRESS OF HP 3PAR SAN
3PAR: HOW TO CHANGE THE IP ADDRESS OF HP 3PAR SAN
 
Firewalld LAB
Firewalld LABFirewalld LAB
Firewalld LAB
 
Slow system troubleshooting
Slow system troubleshootingSlow system troubleshooting
Slow system troubleshooting
 
Deploying systemd at scale
Deploying systemd at scaleDeploying systemd at scale
Deploying systemd at scale
 
How To Install and Configure Screen on CentOS 7
How To Install and Configure Screen on CentOS 7How To Install and Configure Screen on CentOS 7
How To Install and Configure Screen on CentOS 7
 
Configuration of NTP Server on CentOS 8
Configuration of NTP Server on CentOS 8Configuration of NTP Server on CentOS 8
Configuration of NTP Server on CentOS 8
 
GCP Deployment Manager Demo
GCP Deployment Manager DemoGCP Deployment Manager Demo
GCP Deployment Manager Demo
 
OSDC 2014: Jan-Piet Mens - Configuration Management with Ansible
OSDC 2014: Jan-Piet Mens - Configuration Management with Ansible OSDC 2014: Jan-Piet Mens - Configuration Management with Ansible
OSDC 2014: Jan-Piet Mens - Configuration Management with Ansible
 
Install Active Directory PowerShell Module on Windows 10
Install Active Directory PowerShell Module on Windows 10Install Active Directory PowerShell Module on Windows 10
Install Active Directory PowerShell Module on Windows 10
 

Andere mochten auch

dotnet_remoting
dotnet_remotingdotnet_remoting
dotnet_remoting
OPENLANE
 
The .net remote systems
The .net remote systemsThe .net remote systems
The .net remote systems
Raghu nath
 
Nakov - .NET Framework Overview - English
Nakov - .NET Framework Overview - EnglishNakov - .NET Framework Overview - English
Nakov - .NET Framework Overview - English
Svetlin Nakov
 
Seminari practic modelnegoci_ajsfl2003
Seminari practic modelnegoci_ajsfl2003Seminari practic modelnegoci_ajsfl2003
Seminari practic modelnegoci_ajsfl2003
Mercaconsult
 
Press Release 4 Q02 Tele Nordeste Celular En
Press Release 4 Q02   Tele Nordeste Celular EnPress Release 4 Q02   Tele Nordeste Celular En
Press Release 4 Q02 Tele Nordeste Celular En
TIM RI
 
Binder20aceh
Binder20acehBinder20aceh
Binder20aceh
epaper
 

Andere mochten auch (20)

dotnet_remoting
dotnet_remotingdotnet_remoting
dotnet_remoting
 
14 Programación Web con .NET y C#
14 Programación Web con .NET y C#14 Programación Web con .NET y C#
14 Programación Web con .NET y C#
 
Session 9
Session 9Session 9
Session 9
 
Top 9 Features Of a Successful Android Application
Top 9 Features Of a Successful Android ApplicationTop 9 Features Of a Successful Android Application
Top 9 Features Of a Successful Android Application
 
Serialization in .NET
Serialization in .NETSerialization in .NET
Serialization in .NET
 
Session 6
Session 6Session 6
Session 6
 
Dot NET Remoting
Dot NET RemotingDot NET Remoting
Dot NET Remoting
 
Net remoting
Net remotingNet remoting
Net remoting
 
The .net remote systems
The .net remote systemsThe .net remote systems
The .net remote systems
 
Overview of Microsoft .Net Remoting technology
Overview of Microsoft .Net Remoting technologyOverview of Microsoft .Net Remoting technology
Overview of Microsoft .Net Remoting technology
 
C sharp
C sharpC sharp
C sharp
 
.Net framework
.Net framework.Net framework
.Net framework
 
Net remoting
Net remotingNet remoting
Net remoting
 
Nakov - .NET Framework Overview - English
Nakov - .NET Framework Overview - EnglishNakov - .NET Framework Overview - English
Nakov - .NET Framework Overview - English
 
Evolution of wcf
Evolution of wcfEvolution of wcf
Evolution of wcf
 
Using Docker for Testing
Using Docker for TestingUsing Docker for Testing
Using Docker for Testing
 
Seminari practic modelnegoci_ajsfl2003
Seminari practic modelnegoci_ajsfl2003Seminari practic modelnegoci_ajsfl2003
Seminari practic modelnegoci_ajsfl2003
 
Press Release 4 Q02 Tele Nordeste Celular En
Press Release 4 Q02   Tele Nordeste Celular EnPress Release 4 Q02   Tele Nordeste Celular En
Press Release 4 Q02 Tele Nordeste Celular En
 
Binder20aceh
Binder20acehBinder20aceh
Binder20aceh
 
2011 Fort Lauderdale 4th Annual Surety Presentation
2011 Fort Lauderdale 4th Annual Surety Presentation2011 Fort Lauderdale 4th Annual Surety Presentation
2011 Fort Lauderdale 4th Annual Surety Presentation
 

Ähnlich wie Feb 2010 Intro To Remoteing Part1

IT109 Microsoft Windows 7 Operating Systems Unit 08 lesson 11
IT109 Microsoft Windows 7 Operating Systems Unit 08 lesson 11IT109 Microsoft Windows 7 Operating Systems Unit 08 lesson 11
IT109 Microsoft Windows 7 Operating Systems Unit 08 lesson 11
blusmurfydot1
 
Automating Active Directory mgmt in PowerShell
Automating Active Directory mgmt in PowerShellAutomating Active Directory mgmt in PowerShell
Automating Active Directory mgmt in PowerShell
Concentrated Technology
 
Tech Ed 2008 Israel Server Management 360
Tech Ed 2008 Israel   Server Management 360Tech Ed 2008 Israel   Server Management 360
Tech Ed 2008 Israel Server Management 360
Amit Gatenyo
 

Ähnlich wie Feb 2010 Intro To Remoteing Part1 (20)

PowerShell Remoting
PowerShell RemotingPowerShell Remoting
PowerShell Remoting
 
Controlling multiple VMs with the power of Python
Controlling multiple VMs with the power of PythonControlling multiple VMs with the power of Python
Controlling multiple VMs with the power of Python
 
IT109 Microsoft Windows 7 Operating Systems Unit 08 lesson 11
IT109 Microsoft Windows 7 Operating Systems Unit 08 lesson 11IT109 Microsoft Windows 7 Operating Systems Unit 08 lesson 11
IT109 Microsoft Windows 7 Operating Systems Unit 08 lesson 11
 
Automating Active Directory mgmt in PowerShell
Automating Active Directory mgmt in PowerShellAutomating Active Directory mgmt in PowerShell
Automating Active Directory mgmt in PowerShell
 
Microsoft Exchange Server 2010 Installation
Microsoft Exchange Server 2010 InstallationMicrosoft Exchange Server 2010 Installation
Microsoft Exchange Server 2010 Installation
 
Windows PowerShell
Windows PowerShellWindows PowerShell
Windows PowerShell
 
PowerShell 2.0 remoting
PowerShell 2.0 remotingPowerShell 2.0 remoting
PowerShell 2.0 remoting
 
Tech Ed 2008 Israel Server Management 360
Tech Ed 2008 Israel   Server Management 360Tech Ed 2008 Israel   Server Management 360
Tech Ed 2008 Israel Server Management 360
 
Windows guest debugging presentation from KVM Forum 2012
Windows guest debugging presentation from KVM Forum 2012Windows guest debugging presentation from KVM Forum 2012
Windows guest debugging presentation from KVM Forum 2012
 
Windows Server Core
Windows Server CoreWindows Server Core
Windows Server Core
 
Enterprise PowerShell for Remote Security Assessments
Enterprise PowerShell for Remote Security AssessmentsEnterprise PowerShell for Remote Security Assessments
Enterprise PowerShell for Remote Security Assessments
 
Automating That "Other" OS
Automating That "Other" OSAutomating That "Other" OS
Automating That "Other" OS
 
Windows Attacks AT is the new black
Windows Attacks   AT is the new blackWindows Attacks   AT is the new black
Windows Attacks AT is the new black
 
Windows attacks - AT is the new black
Windows attacks - AT is the new blackWindows attacks - AT is the new black
Windows attacks - AT is the new black
 
Automating Post Exploitation with PowerShell
Automating Post Exploitation with PowerShellAutomating Post Exploitation with PowerShell
Automating Post Exploitation with PowerShell
 
Windows Server 2008 Management
Windows Server 2008 ManagementWindows Server 2008 Management
Windows Server 2008 Management
 
Windows Server 2008 Management
Windows Server 2008 ManagementWindows Server 2008 Management
Windows Server 2008 Management
 
Smart pos stepbystep-v2-0
Smart pos stepbystep-v2-0Smart pos stepbystep-v2-0
Smart pos stepbystep-v2-0
 
Introduction To Windows Power Shell
Introduction To Windows Power ShellIntroduction To Windows Power Shell
Introduction To Windows Power Shell
 
Magento Testing on all fronts
Magento Testing on all frontsMagento Testing on all fronts
Magento Testing on all fronts
 

Kürzlich hochgeladen

Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slide
vu2urc
 

Kürzlich hochgeladen (20)

The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdfThe Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
 
Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreterPresentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreter
 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
 
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdf
 
Real Time Object Detection Using Open CV
Real Time Object Detection Using Open CVReal Time Object Detection Using Open CV
Real Time Object Detection Using Open CV
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
 
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf
 
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivity
 
Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slide
 
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdfUnderstanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
 
Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...
 
Slack Application Development 101 Slides
Slack Application Development 101 SlidesSlack Application Development 101 Slides
Slack Application Development 101 Slides
 
The Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxThe Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptx
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt Robison
 
Advantages of Hiring UIUX Design Service Providers for Your Business
Advantages of Hiring UIUX Design Service Providers for Your BusinessAdvantages of Hiring UIUX Design Service Providers for Your Business
Advantages of Hiring UIUX Design Service Providers for Your Business
 
Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024
 

Feb 2010 Intro To Remoteing Part1

  • 1. Introduction to PowerShell Remoting, Part 1 Matt Johnson, GSEC, MCSE matt@michiganpowershell.com
  • 2. What we are going to cover? An simple intro to remoting Remoting Prerequisites Basic Remoting using –ComputerName Setting up Remoting
  • 3. A simple intro to remoting
  • 4. In Version 1.0 In version 1.0, the only command available with –ComputerName was Get-WMIObject This made managing a remote PC complicated.
  • 5. New in V2! Some cmdlets were updated with the –ComputerName parameter. Get-Process Get-Service GetWinEvent GetEventLog Restart-Computer Stop-Computer Test-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 need Windows 7 and Windows Server 2008 R2 has the necessary bits Windows Vista, XP, Server 2003 and Server 2008 you will need the Windows Management Framework Windows 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 beforehand You 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
  • 13. Commands with -ComputerName Get-Process Get-Service GetWinEvent GetEventLog Restart-Computer Stop-Computer Test-Connection
  • 14. Demo Time! Get-EventLog Get-Process
  • 16. Enabling PowerShell Remoting Remember 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 PSRemoting Run Scripts / Commands Remotely
  • 21. In Two Months! Running Interactively with PS Remoting Running Jobs with PS Remoting WS-MAN Configuration
  • 23. Contact Info Matt Johnson Phone: +1 (734) 931-0323 Web: http://www.mwjcomputing.com/ Blog: http://www.mwjcomputing.com/blog/ Twitter: http://twitter.com/mwjcomputing Email: matt@michiganpowershell.com