PowerShell: Automating Administrative Tasks
by Michael Shepard, Chendrayan Venkatesan, Sherif Talaat, Brenton J.W. Blawat
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. ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access