Question: (POWERSHELL) Create a Script named Manage-Users.ps1 that performs the following functions Allow user to input a filename to process. Create a required string parameter named
(POWERSHELL)
Create a Script named Manage-Users.ps1 that performs the following functions
Allow user to input a filename to process.
Create a required string parameter named filepath that accepts the name of the xml file to process. Provide an appropriate help message when parameter is not submitted.
Read the xml file and perform the following tasks.
Create the users. The users are listed in the
Create the user account in the organizational unit defined by the
Set the users name to the value in
Set the other information as listed
Make sure each account is not disabled
Require the user to change their password next time they log in
Add the user to the domain security groups listed in the
Process the items in the
Find all non-domain controller computers in the domain
Add the domain global group specified in the
Assumptions
The computer the script is running on will be in the domain that you wish to manage.
The computer running the script will have the Active Directory PowerShell module installed.
The user running the script will have rights to do all required tasks
Adolph
sang
WWII
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
