Module 4: Ps Remoting: Winrm and Wsman
Module 4: Ps Remoting: Winrm and Wsman
PS Remoting Requirements :
• WSMan Introduced With PowerShell 2.0
• Windows Management Framework 3.0 installs a new version of WSMan
• Requires non-public client network*
• Need domain environment to use Kerberos Or install certificates and use SSL
• Port 5985 (Client to Server)
• Port 5986 (Server to Client)
Enable and Configure Remoting:
• Enable and Configure Remoting
Must run elevated
Run once per machine
• Enable-PSRemoting cmdlet
Runs Set-WSManQuickConfig
Configures WinRM to AutoStart
Configures firewall settings
Registers session configurations and listeners
• Use Group Policy
• Remoting turned off by default in 2.0
• Remoting turned on by default in Windows Server 2012 and Windows 8
PS Session:
• Created for remote machines
• Can specify alternate credentials
• Can specify authentication
• Can specify SSL
• PSSessions do not use PowerShell profile scripts