Question: Requirements 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

Requirements

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 node of the xml file. The node will have an arbitrary number of nodes that contain user information.

Create the user account in the organizational unit defined by the data. Create the OU (off the domain root) if it does not exist.

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 node. If the group does not exists create it.

Process the items in the node.

Find all non-domain controller computers in the domain

Add the domain global group specified in the node(s) to each discovered computers local group specified by the node. Assume the group does not exist.

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

Here is the data that should be used

-

-

-

Chico

Leonard

Marx

Pianist

Password1

comedians

-

Marx Brothers

GGMusicians

+

-

Groucho

Julius Heney

Marx

Played guitar and sang

Password3

Chico

comedians

-

Marx Brothers

GGMusicians

-

Gummo

Milton

Marx

Left the troop to serve in WWII

Password4

Chico

comedians

-

Marx Brothers

-

Zeppo

Herbert

Marx

Vocalist

Password5

Chico

comedians

-

Marx Brothers

-

Manfred

Manfred

Marx

Died as an infant

Password6

Chico

comedians

-

Marx Brothers

-

-

Power Users

-

Marx Brothers

-

Musicians

-

GGMusicians

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!