Book Image

Mastering Windows PowerShell Scripting

By : Brenton J.W. Blawat
Book Image

Mastering Windows PowerShell Scripting

By: Brenton J.W. Blawat

Overview of this book

Table of Contents (22 chapters)
Mastering Windows PowerShell Scripting
Credits
Foreword
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

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...