Question: Hello I need help generating the following. Generate a PowerShell script that accepts any number of command-line arguments up to three command line arguments. The

Hello I need help generating the following. Generate a PowerShell script that accepts any number of command-line arguments up to three command line arguments. The arguments passed will be the names of OUs that the script will create, your script should check if an OU with the given name already exists. There should not be any error if there are less than three. This PowerShell script accepts up to three command line arguments. No error thrown if less than three. The OU's based on the arguments and then create 25 users within the correct OU ([arg] user 1, [arg] user 2, etc). Users should be given a password of Password01 and should be enabled. Groups (global+local) should be created (using the command-line arguments) within the correct OU. The users should be added to the correct group. Use your script to create audit users, training users and branch users. Pre-stage a RODC. The passwords of the branch users (created with above PowerShell script) will be the only passwords saved on the RODC. Install the RODC using the pre-stage that you have set up. Run your system information PowerShell Script that you set up in Milestone 1 and save the output. After running that script delete the RODC & save the affected users information to a file to confirm the password resets. Also include the text file containing all the system information.

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!