Summary
This chapter explained how to properly manage systems by utilizing sessions. The chapter started by explaining the prerequisites to enable the use of Windows Remote Management in your environment. This includes port numbers, security permissions, and services. The chapter also explained that you can use the quick configuration on systems, though it can be less secure than the manual configuration of WinRm.
The chapter then proceeded to explain how to create sessions through the use of the new-cimsession
cmdlet. It also explained that you can create session options to change the connection parameters to remote systems with the new-cimsessionoption
cmdlet. It explained that the most popular session options are Protocol
, ProxyAuthentication
, ProxyCredential
, UseSSL
, and NoEncryption
. The chapter then highlighted that you have to set the session options object a variable prior to using them with a new CIM session.
This chapter also showed how to set a session to an object using the get...