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

Get Mastering Windows PowerShell Scripting now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.