Your SlideShare is downloading. ×
  • Like
Feb 2010 Intro To Remoteing Part1
Upcoming SlideShare
Loading in...5
×

Thanks for flagging this SlideShare!

Oops! An error has occurred.

×

Now you can save presentations on your phone or tablet

Available for both IPhone and Android

Text the download link to your phone

Standard text messaging rates apply
Published

 

Published in Technology
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Be the first to comment
    Be the first to like this
No Downloads

Views

Total Views
935
On SlideShare
0
From Embeds
0
Number of Embeds
0

Actions

Shares
Downloads
13
Comments
0
Likes
0

Embeds 0

No embeds

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
    No notes for slide

Transcript

  • 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
  • 7. Remoting Prerequisites
  • 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
  • 15. Setting Up Remoting
  • 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.
  • 19. Firewall Exception
  • 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
  • 22. Questions?
  • 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
  • 24. Thanks!