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 provided a good view of how to manage the basic functions of Microsoft systems. You first learned how to leverage the active directory services interface (ADSI) adapter to make a connection to the local system. You learned how to use the ADSI adapter to create an ADSI adapter variable. You now understand how to leverage the .Create() method to create new users and groups and how to use the .Delete() method to delete users and groups. You also got to know how to set a password by leveraging the .Description () method and how to set the data into the SAM using the .setinfo() method. You then learned how to search a system using the ADSI adapter, by leveraging the ::Exists argument, to search for users and groups on a system.

The next section of the chapter explored windows services and processes. You started by learning about Windows Services and how to use the get-service, set-service, stop-service, and start-service cmdlets. You learnt how to change the description and...